mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-20 22:01:30 +00:00
Clean
This commit is contained in:
parent
557eecffd1
commit
518e88bd0a
@ -111,9 +111,8 @@ 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}"
|
||||||
val body = RequestBody.create(MediaType.get("application/json"), JsonUtil.toJson(parameters))
|
val body = RequestBody.create(MediaType.get("application/json"), JsonUtil.toJson(parameters))
|
||||||
val request = Request.Builder().url(url).post(body).build()
|
val request = Request.Builder().url(url).post(body).build()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user