kopia lustrzana https://github.com/ryukoposting/Signal-Android
Try to check group mute status for keeping archived.
rodzic
418b486776
commit
3b40b10a77
|
@ -2494,20 +2494,26 @@ public class MessageTable extends DatabaseTable implements MessageTypes, Recipie
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean updateThread = retrieved.getStoryType() == StoryType.NONE;
|
boolean updateThread = retrieved.getStoryType() == StoryType.NONE;
|
||||||
boolean keepThreadArchived = SignalStore.settings().shouldKeepMutedChatsArchived() && Recipient.resolved(retrieved.getFrom()).isMuted();
|
|
||||||
long messageId = insertMediaMessage(threadId,
|
RecipientId threadRecipientId = SignalDatabase.threads().getRecipientIdForThreadId(threadId);
|
||||||
retrieved.getBody(),
|
if (threadRecipientId == null) {
|
||||||
retrieved.getAttachments(),
|
threadRecipientId = retrieved.getFrom();
|
||||||
quoteAttachments,
|
}
|
||||||
retrieved.getSharedContacts(),
|
boolean keepThreadArchived = threadRecipientId != null && SignalStore.settings().shouldKeepMutedChatsArchived() && Recipient.resolved(threadRecipientId).isMuted();
|
||||||
retrieved.getLinkPreviews(),
|
|
||||||
retrieved.getMentions(),
|
long messageId = insertMediaMessage(threadId,
|
||||||
retrieved.getMessageRanges(),
|
retrieved.getBody(),
|
||||||
contentValues,
|
retrieved.getAttachments(),
|
||||||
null,
|
quoteAttachments,
|
||||||
updateThread,
|
retrieved.getSharedContacts(),
|
||||||
!keepThreadArchived);
|
retrieved.getLinkPreviews(),
|
||||||
|
retrieved.getMentions(),
|
||||||
|
retrieved.getMessageRanges(),
|
||||||
|
contentValues,
|
||||||
|
null,
|
||||||
|
updateThread,
|
||||||
|
!keepThreadArchived);
|
||||||
|
|
||||||
boolean isNotStoryGroupReply = retrieved.getParentStoryId() == null || !retrieved.getParentStoryId().isGroupReply();
|
boolean isNotStoryGroupReply = retrieved.getParentStoryId() == null || !retrieved.getParentStoryId().isGroupReply();
|
||||||
if (!MessageTypes.isPaymentsActivated(mailbox) && !MessageTypes.isPaymentsRequestToActivate(mailbox) && !MessageTypes.isExpirationTimerUpdate(mailbox) && !retrieved.getStoryType().isStory() && isNotStoryGroupReply) {
|
if (!MessageTypes.isPaymentsActivated(mailbox) && !MessageTypes.isPaymentsRequestToActivate(mailbox) && !MessageTypes.isExpirationTimerUpdate(mailbox) && !retrieved.getStoryType().isStory() && isNotStoryGroupReply) {
|
||||||
|
|
Ładowanie…
Reference in New Issue