kopia lustrzana https://github.com/ryukoposting/Signal-Android
Try to check group mute status for keeping archived.
rodzic
418b486776
commit
3b40b10a77
|
@ -2495,7 +2495,13 @@ public class MessageTable extends DatabaseTable implements MessageTypes, Recipie
|
|||
}
|
||||
|
||||
boolean updateThread = retrieved.getStoryType() == StoryType.NONE;
|
||||
boolean keepThreadArchived = SignalStore.settings().shouldKeepMutedChatsArchived() && Recipient.resolved(retrieved.getFrom()).isMuted();
|
||||
|
||||
RecipientId threadRecipientId = SignalDatabase.threads().getRecipientIdForThreadId(threadId);
|
||||
if (threadRecipientId == null) {
|
||||
threadRecipientId = retrieved.getFrom();
|
||||
}
|
||||
boolean keepThreadArchived = threadRecipientId != null && SignalStore.settings().shouldKeepMutedChatsArchived() && Recipient.resolved(threadRecipientId).isMuted();
|
||||
|
||||
long messageId = insertMediaMessage(threadId,
|
||||
retrieved.getBody(),
|
||||
retrieved.getAttachments(),
|
||||
|
|
Ładowanie…
Reference in New Issue