Check DND settings before show activity or play ring or vibrate.

This commit is contained in:
alex-signal
2019-10-16 13:26:26 -03:00
committed by Greyson Parrelli
parent c247935f1a
commit a135e7efa2
5 changed files with 122 additions and 3 deletions

View File

@@ -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);