mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 16:49:40 +01:00
Mark all call events as read whenever we enter the calls tab.
This commit is contained in:
committed by
Greyson Parrelli
parent
ee89629738
commit
2a16d8baed
@@ -1307,6 +1307,13 @@ open class MessageTable(context: Context?, databaseHelper: SignalDatabase) : Dat
|
||||
return markedMessageInfos
|
||||
}
|
||||
|
||||
fun markAllCallEventsRead(): List<MarkedMessageInfo> {
|
||||
val where = "$IS_CALL_TYPE_CLAUSE AND $READ = 0"
|
||||
val markedMessageInfos = setMessagesRead(where, null)
|
||||
notifyConversationListListeners()
|
||||
return markedMessageInfos
|
||||
}
|
||||
|
||||
fun markAllFailedStoriesNotified() {
|
||||
val where = "$IS_STORY_CLAUSE AND (${getOutgoingTypeClause()}) AND $NOTIFIED = 0 AND ($TYPE & ${MessageTypes.BASE_TYPE_MASK}) = ${MessageTypes.BASE_SENT_FAILED_TYPE}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user