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

Merged
klaus merged 1 commits from test into main 2023-08-20 15:46:31 +00:00
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 -> {