캔 사용내역 - 후원을 콘텐츠 후원, 라이브 후원으로 분리

This commit is contained in:
Klaus 2023-08-21 00:40:06 +09:00
parent 2a24c376b3
commit a8c3f05ffa
1 changed files with 7 additions and 1 deletions

View File

@ -54,7 +54,13 @@ class CanService(private val repository: CanRepository) {
.map {
val title: String = when (it.canUsage) {
CanUsage.DONATION -> {
"[후원] ${it.room!!.member!!.nickname}"
if (it.room != null) {
"[라이브 후원] ${it.room!!.member!!.nickname}"
} else if (it.audioContent != null) {
"[콘텐츠 후원] ${it.audioContent!!.member!!.nickname}"
} else {
"[후원]"
}
}
CanUsage.LIVE -> {