mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-24 23:45:19 +00:00
fix: clear channel messages on reset (#446)
When `clearMessages` is called, it now also clears the `channelMessages` in the state, ensuring that messages from specific channels are also removed. Co-authored-by: elian.kumaraku <elian.kumaraku@creactives.com>
This commit is contained in:
co-authored by
elian.kumaraku
parent
7e65450eac
commit
4030396203
@@ -37,6 +37,7 @@ class MessageManager(private val state: ChatState) {
|
||||
|
||||
fun clearMessages() {
|
||||
state.setMessages(emptyList())
|
||||
state.setChannelMessages(emptyMap())
|
||||
}
|
||||
|
||||
// MARK: - Channel Message Management
|
||||
|
||||
Reference in New Issue
Block a user