Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60b2eaec authored by Marvin W.'s avatar Marvin W. 🐿️
Browse files

Add support for collapse_key

related to #104
parent 2a394f98
Loading
Loading
Loading
Loading
Compare 6aa11065 to 5e58a66a
Original line number Diff line number Diff line
Subproject commit 6aa110657beec0b3e6c26d1030943e0b97683335
Subproject commit 5e58a66a1eab3c9f01de60bfd937a09225ef5648
+2 −0
Original line number Diff line number Diff line
@@ -56,6 +56,7 @@ import javax.net.ssl.SSLContext;

import static android.os.Build.VERSION.SDK_INT;
import static org.microg.gms.gcm.GcmConstants.ACTION_C2DM_RECEIVE;
import static org.microg.gms.gcm.GcmConstants.EXTRA_COLLAPSE_KEY;
import static org.microg.gms.gcm.GcmConstants.EXTRA_FROM;
import static org.microg.gms.gcm.GcmConstants.EXTRA_MESSAGE_TYPE;
import static org.microg.gms.gcm.GcmConstants.MESSAGE_TYPE_GCM;
@@ -307,6 +308,7 @@ public class McsService extends Service implements Handler.Callback {
        intent.setPackage(msg.category);
        intent.putExtra(EXTRA_MESSAGE_TYPE, MESSAGE_TYPE_GCM);
        intent.putExtra(EXTRA_FROM, msg.from);
        if (msg.token != null) intent.putExtra(EXTRA_COLLAPSE_KEY, msg.token);
        for (AppData appData : msg.app_data) {
            intent.putExtra(appData.key, appData.value);
        }