mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-22 04:55:29 +03:00
Fix an issue with duplicate calls
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
2f818eef61
commit
0bd9fc8abc
2 changed files with 6 additions and 6 deletions
|
@ -1,8 +1,4 @@
|
|||
ext {
|
||||
googleLibraryVersion = '9.6.1'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation "com.google.android.gms:play-services-gcm:${googleLibraryVersion}"
|
||||
implementation "com.google.firebase:firebase-messaging:${googleLibraryVersion}"
|
||||
implementation "com.google.android.gms:play-services-gcm:15.0.1"
|
||||
implementation "com.google.firebase:firebase-messaging:17.1.0"
|
||||
}
|
||||
|
|
|
@ -34,6 +34,10 @@ public class MagicFirebaseMessagingService extends FirebaseMessagingService {
|
|||
@SuppressLint("LongLogTag")
|
||||
@Override
|
||||
public void onMessageReceived(RemoteMessage remoteMessage) {
|
||||
if (remoteMessage == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (remoteMessage.getData() != null) {
|
||||
PersistableBundleCompat persistableBundleCompat = new PersistableBundleCompat();
|
||||
persistableBundleCompat.putString(BundleKeys.KEY_NOTIFICATION_SUBJECT, remoteMessage.getData().get
|
||||
|
|
Loading…
Reference in a new issue