mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 00:37:47 +00:00
WIP
This commit is contained in:
parent
0ab0ecbb55
commit
26fb268c76
@ -634,7 +634,7 @@ public class SmsDatabase extends MessagingDatabase {
|
||||
long threadId = getThreadIdForMessage(messageId);
|
||||
db.delete(TABLE_NAME, ID_WHERE, new String[] {messageId+""});
|
||||
notifyConversationListeners(threadId);
|
||||
boolean threadDeleted = DatabaseComponent.get(context).threadDatabase().update(threadId, false, true);
|
||||
boolean threadDeleted = DatabaseComponent.get(context).threadDatabase().update(threadId, false, false);
|
||||
return threadDeleted;
|
||||
}
|
||||
|
||||
|
@ -1371,7 +1371,12 @@ open class Storage(
|
||||
val threadDB = DatabaseComponent.get(context).threadDatabase()
|
||||
val groupDB = DatabaseComponent.get(context).groupDatabase()
|
||||
threadDB.deleteConversation(threadID)
|
||||
val recipient = getRecipientForThread(threadID) ?: return
|
||||
|
||||
val recipient = getRecipientForThread(threadID)
|
||||
if (recipient == null) { Log.w(TAG, "Got null recipient when deleting conversation - aborting."); return }
|
||||
|
||||
Log.w("[ACL]", "When deleting conversation, recipient is: ${recipient.name}")
|
||||
|
||||
when {
|
||||
recipient.isContactRecipient -> {
|
||||
if (recipient.isLocalNumber) return
|
||||
|
Loading…
x
Reference in New Issue
Block a user