mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +00:00
parent
c05555c290
commit
a11f6ea1e6
@ -124,10 +124,16 @@ public class MessageNotifier {
|
||||
}
|
||||
|
||||
public static void updateNotification(Context context, MasterSecret masterSecret, long threadId) {
|
||||
if (!TextSecurePreferences.isNotificationsEnabled(context)) {
|
||||
Recipients recipients = DatabaseFactory.getThreadDatabase(context)
|
||||
.getRecipientsForThreadId(threadId);
|
||||
|
||||
if (!TextSecurePreferences.isNotificationsEnabled(context) ||
|
||||
(recipients != null && recipients.isMuted()))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (visibleThread == threadId) {
|
||||
ThreadDatabase threads = DatabaseFactory.getThreadDatabase(context);
|
||||
threads.setRead(threadId);
|
||||
|
Loading…
x
Reference in New Issue
Block a user