mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-24 00:00:10 +00:00
Proper SMS support for KitKat.
This commit is contained in:
committed by
Moxie Marlinspike
parent
f9c7687ce2
commit
e81756f443
@@ -48,6 +48,7 @@ import org.thoughtcrime.securesms.database.MmsSmsDatabase;
|
||||
import org.thoughtcrime.securesms.database.model.MessageRecord;
|
||||
import org.thoughtcrime.securesms.recipients.Recipient;
|
||||
import org.thoughtcrime.securesms.recipients.Recipients;
|
||||
import org.thoughtcrime.securesms.util.Util;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
@@ -103,6 +104,10 @@ public class MessageNotifier {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Util.isDefaultSmsProvider(context)) {
|
||||
return;
|
||||
}
|
||||
|
||||
updateNotification(context, masterSecret, false);
|
||||
}
|
||||
|
||||
@@ -113,6 +118,10 @@ public class MessageNotifier {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Util.isDefaultSmsProvider(context)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (visibleThread == threadId) {
|
||||
DatabaseFactory.getThreadDatabase(context).setRead(threadId);
|
||||
sendInThreadNotification(context);
|
||||
|
||||
Reference in New Issue
Block a user