bug fix(geohash): enable /clear command to properly clear messages

This commit is contained in:
Renz 2025-10-10 13:34:11 +07:00 committed by GitHub
parent 7e65450eac
commit 29187cbb40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()