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

@@ -29,7 +29,6 @@ import org.thoughtcrime.securesms.database.helpers.SQLCipherOpenHelper;
import org.thoughtcrime.securesms.database.model.MessageRecord;
import org.thoughtcrime.securesms.recipients.Recipient;
import org.thoughtcrime.securesms.recipients.RecipientId;
import org.thoughtcrime.securesms.util.Util;
import java.util.HashSet;
import java.util.Set;
@@ -204,6 +203,10 @@ public class MmsSmsDatabase extends Database {
return -1;
}
boolean hasReceivedAnyCallsSince(long threadId, long timestamp) {
return DatabaseFactory.getSmsDatabase(context).hasReceivedAnyCallsSince(threadId, timestamp);
}
/**
* Retrieves the position of the message with the provided timestamp in the query results you'd
* get from calling {@link #getConversation(long)}.