ui: update member support chats list from delete responses

This commit is contained in:
Narasimha-sc committed 2026-09-27 21:21:18 +00:00
1 parent 74399a833e
commit 67422bbbc3
3 files changed
+7 -1

No files matched your search

@@ -573,6 +573,7 @@ fun ChatView(
chatModel.chatsContext.decreaseGroupReportsCounter(chatRh, chatInfo.id)
}
chatModel.chatsContext.updateChatInfo(chatRh, deleted.deletedChatItem.chatInfo)
chatModel.upsertSupportChatMember(chatRh, deleted.deletedChatItem.chatInfo)
}
withContext(Dispatchers.Main) {
if (toChatItem != null) {
@@ -3404,6 +3405,7 @@ private fun deleteMessages(chatRh: Long?, chatInfo: ChatInfo, itemIds: List<Long
}
deleted.lastOrNull()?.deletedChatItem?.chatInfo?.let { updatedChatInfo ->
chatModel.chatsContext.updateChatInfo(chatRh, updatedChatInfo)
chatModel.upsertSupportChatMember(chatRh, updatedChatInfo)
}
}
withContext(Dispatchers.Main) {
@@ -3441,6 +3443,7 @@ private fun archiveReports(chatRh: Long?, chatInfo: ChatInfo, itemIds: List<Long
}
deleted.lastOrNull()?.deletedChatItem?.chatInfo?.let { updatedChatInfo ->
chatModel.chatsContext.updateChatInfo(chatRh, updatedChatInfo)
chatModel.upsertSupportChatMember(chatRh, updatedChatInfo)
}
}
withContext(Dispatchers.Main) {