OTR & another.im #23

Merged
Sergei Poljanski merged 65 commits from develop into master 2024-12-09 18:42:00 +00:00
Showing only changes of commit 4990ac0a23 - Show all commits

View file

@ -2708,6 +2708,8 @@ public class XmppConnectionService extends Service {
public void destroyConversation(Conversation conversation) { public void destroyConversation(Conversation conversation) {
archiveConversation(conversation); archiveConversation(conversation);
final Runnable runnable = () -> { final Runnable runnable = () -> {
databaseBackend.deleteMessagesInConversation(conversation);
if (!databaseBackend.deleteConversation(conversation.getAccount(), conversation.getContactJid().asBareJid(), conversation.getNextCounterpart())) { if (!databaseBackend.deleteConversation(conversation.getAccount(), conversation.getContactJid().asBareJid(), conversation.getNextCounterpart())) {
Log.d(Config.LOGTAG, conversation.getJid().asBareJid() + ": unable to delete conversation"); Log.d(Config.LOGTAG, conversation.getJid().asBareJid() + ": unable to delete conversation");
} }