mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-31 04:46:15 +00:00
Check DND settings before show activity or play ring or vibrate.
This commit is contained in:
committed by
Greyson Parrelli
parent
c247935f1a
commit
a135e7efa2
@@ -285,6 +285,10 @@ public class ThreadDatabase extends Database {
|
||||
}};
|
||||
}
|
||||
|
||||
public boolean hasCalledSince(@NonNull Recipient recipient, long timestamp) {
|
||||
return DatabaseFactory.getMmsSmsDatabase(context).hasReceivedAnyCallsSince(getThreadIdFor(recipient), timestamp);
|
||||
}
|
||||
|
||||
public List<MarkedMessageInfo> setRead(long threadId, boolean lastSeen) {
|
||||
ContentValues contentValues = new ContentValues(1);
|
||||
contentValues.put(READ, 1);
|
||||
|
||||
Reference in New Issue
Block a user