Skip to content

Commit 6ad6b28

Browse files
committed
fix(services/fc): temp set formatted room name after successful changes
match the incoming name change that will propagate across the wire Signed-off-by: Brandon McAnsh <[email protected]>
1 parent ce35db5 commit 6ad6b28

File tree

1 file changed

+3
-1
lines changed
  • services/flipchat/chat/src/main/kotlin/xyz/flipchat/services/internal/db

1 file changed

+3
-1
lines changed

services/flipchat/chat/src/main/kotlin/xyz/flipchat/services/internal/db/ConversationDao.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ interface ConversationDao {
113113

114114
suspend fun setDisplayName(id: String, displayName: String) {
115115
val conversation = findConversation(id)?.conversation ?: return
116-
upsertConversations(conversation.copy(title = displayName))
116+
val roomNumber = conversation.roomNumber
117+
val name = "#$roomNumber: $displayName"
118+
upsertConversations(conversation.copy(title = name))
117119
}
118120

119121
suspend fun setDisplayName(id: ID, displayName: String) {

0 commit comments

Comments
 (0)