Allow 1:1 replies to increment thread unread counter.
This commit is contained in:
parent
97b5a49e36
commit
893be51810
2 changed files with 2 additions and 1 deletions
|
@ -1715,7 +1715,7 @@ public class MmsDatabase extends MessageDatabase {
|
|||
|
||||
long messageId = insertMediaMessage(threadId, retrieved.getBody(), retrieved.getAttachments(), quoteAttachments, retrieved.getSharedContacts(), retrieved.getLinkPreviews(), retrieved.getMentions(), retrieved.getMessageRanges(), contentValues, null, true);
|
||||
|
||||
if (!Types.isExpirationTimerUpdate(mailbox) && !retrieved.getStoryType().isStory() && retrieved.getParentStoryId() == null) {
|
||||
if (!Types.isExpirationTimerUpdate(mailbox) && !retrieved.getStoryType().isStory() && !retrieved.getParentStoryId().isGroupReply()) {
|
||||
SignalDatabase.threads().incrementUnread(threadId, 1);
|
||||
SignalDatabase.threads().update(threadId, true);
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@ sealed class ParentStoryId(protected val id: Long) {
|
|||
abstract fun serialize(): Long
|
||||
|
||||
fun asMessageId(): MessageId = MessageId(abs(id), true)
|
||||
fun isGroupReply() = serialize() > 0
|
||||
|
||||
/**
|
||||
* A parent story who's child should be displayed in a group reply thread.
|
||||
|
|
Loading…
Add table
Reference in a new issue