mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-12 09:03:39 +00:00
parent
9b82411c3d
commit
8713a85beb
@ -126,8 +126,10 @@ public class PushReceiver {
|
|||||||
String encoded = Base64.encodeBytes(message.getBody());
|
String encoded = Base64.encodeBytes(message.getBody());
|
||||||
IncomingTextMessage textMessage = new IncomingTextMessage(message, encoded, null);
|
IncomingTextMessage textMessage = new IncomingTextMessage(message, encoded, null);
|
||||||
IncomingPreKeyBundleMessage bundleMessage = new IncomingPreKeyBundleMessage(textMessage, encoded);
|
IncomingPreKeyBundleMessage bundleMessage = new IncomingPreKeyBundleMessage(textMessage, encoded);
|
||||||
|
EncryptingSmsDatabase database = DatabaseFactory.getEncryptingSmsDatabase(context);
|
||||||
|
Pair<Long, Long> messageAndThreadId = database.insertMessageInbox(masterSecret, bundleMessage);
|
||||||
|
|
||||||
DatabaseFactory.getEncryptingSmsDatabase(context).insertMessageInbox(masterSecret, bundleMessage);
|
MessageNotifier.updateNotification(context, masterSecret, messageAndThreadId.second);
|
||||||
}
|
}
|
||||||
} catch (InvalidKeyException e) {
|
} catch (InvalidKeyException e) {
|
||||||
Log.w("PushReceiver", e);
|
Log.w("PushReceiver", e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user