Handle keepMutedChatsArchived more generically, also apply it to sends.

Fixes #12788
This commit is contained in:
Greyson Parrelli
2023-02-22 12:24:16 -05:00
parent 3f93d4b9fc
commit 17aa0365d6
6 changed files with 50 additions and 25 deletions

View File

@@ -126,8 +126,7 @@ public final class IdentityUtil {
} catch (MmsException e) {
throw new AssertionError();
}
boolean keepThreadArchived = SignalStore.settings().shouldKeepMutedChatsArchived() && recipient.isMuted();
SignalDatabase.threads().update(threadId, !keepThreadArchived);
SignalDatabase.threads().update(threadId, true);
}
}