mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-17 18:58:26 +00:00
Clean
This commit is contained in:
parent
557eecffd1
commit
518e88bd0a
@ -111,9 +111,8 @@ object LokiPushNotificationManager {
|
||||
|
||||
@JvmStatic
|
||||
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 }
|
||||
val parameters = mapOf("closedGroupPublicKey" to closedGroupPublicKey, "pubKey" to publicKey)
|
||||
val parameters = mapOf( "closedGroupPublicKey" to closedGroupPublicKey, "pubKey" to publicKey )
|
||||
val url = "$server/${operation.rawValue}"
|
||||
val body = RequestBody.create(MediaType.get("application/json"), JsonUtil.toJson(parameters))
|
||||
val request = Request.Builder().url(url).post(body).build()
|
||||
|
Loading…
x
Reference in New Issue
Block a user