don't throttle own messages on desktop

This commit is contained in:
Avently 2024-08-10 12:44:36 +09:00
parent 2e78e8acf5
commit d1b48e583e

View file

@ -305,7 +305,12 @@ object ChatModel {
else
chat.chatStats
)
popChatCollector.addChat(chat.remoteHostId, chat.id)
if (appPlatform.isDesktop && cItem.chatDir.sent) {
chat.popTs = Clock.System.now()
chats.add(0, chats.removeAt(i))
} else {
popChatCollector.addChat(chat.remoteHostId, chat.id)
}
} else {
addChat(Chat(remoteHostId = rhId, chatInfo = cInfo, chatItems = arrayListOf(cItem)))
}