mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-08-15 06:56:30 +00:00
bug fix(geohash): enable /clear command to properly clear messages
This commit is contained in:
parent
7e65450eac
commit
29187cbb40
@ -195,6 +195,11 @@ class CommandProcessor(
|
||||
val channel = state.getCurrentChannelValue()!!
|
||||
messageManager.clearChannelMessages(channel)
|
||||
}
|
||||
state.selectedLocationChannel.value is com.bitchat.android.geohash.ChannelID.Location -> {
|
||||
// Clear geohash channel messages
|
||||
val geohashChannel = (state.selectedLocationChannel.value as com.bitchat.android.geohash.ChannelID.Location).channel
|
||||
messageManager.clearChannelMessages("geo:${geohashChannel.geohash}")
|
||||
}
|
||||
else -> {
|
||||
// Clear main messages
|
||||
messageManager.clearMessages()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user