|
|
@ -150,10 +150,11 @@ class PublicChatManager(private val context: Context) {
|
|
|
|
val groupId = "$server.$room"
|
|
|
|
val groupId = "$server.$room"
|
|
|
|
val threadId = GroupManager.getOpenGroupThreadID(groupId, context)
|
|
|
|
val threadId = GroupManager.getOpenGroupThreadID(groupId, context)
|
|
|
|
val groupAddress = threadDB.getRecipientForThreadId(threadId)!!.address.serialize()
|
|
|
|
val groupAddress = threadDB.getRecipientForThreadId(threadId)!!.address.serialize()
|
|
|
|
GroupManager.deleteGroup(groupAddress, context)
|
|
|
|
ThreadUtils.queue {
|
|
|
|
|
|
|
|
GroupManager.deleteGroup(groupAddress, context) // Must be invoked on a background thread
|
|
|
|
Util.runOnMain { startPollersIfNeeded() }
|
|
|
|
Util.runOnMain { startPollersIfNeeded() }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private fun refreshChatsAndPollers() {
|
|
|
|
private fun refreshChatsAndPollers() {
|
|
|
|
val storage = MessagingModuleConfiguration.shared.storage
|
|
|
|
val storage = MessagingModuleConfiguration.shared.storage
|
|
|
|