|
|
@ -111,7 +111,6 @@ object LokiPushNotificationManager {
|
|
|
|
|
|
|
|
|
|
|
|
@JvmStatic
|
|
|
|
@JvmStatic
|
|
|
|
fun performOperation(context: Context, operation: ClosedGroupOperation, closedGroupPublicKey: String, publicKey: String) {
|
|
|
|
fun performOperation(context: Context, operation: ClosedGroupOperation, closedGroupPublicKey: String, publicKey: String) {
|
|
|
|
Log.d("Loki", "Start to notify PN server of closed group.")
|
|
|
|
|
|
|
|
if (!TextSecurePreferences.isUsingFCM(context)) { return }
|
|
|
|
if (!TextSecurePreferences.isUsingFCM(context)) { return }
|
|
|
|
val parameters = mapOf( "closedGroupPublicKey" to closedGroupPublicKey, "pubKey" to publicKey )
|
|
|
|
val parameters = mapOf( "closedGroupPublicKey" to closedGroupPublicKey, "pubKey" to publicKey )
|
|
|
|
val url = "$server/${operation.rawValue}"
|
|
|
|
val url = "$server/${operation.rawValue}"
|
|
|
|