mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 04:08:44 +03:00
using verb prefix for http pusher creation function
This commit is contained in:
parent
bdec6a3580
commit
1c1424eafc
1 changed files with 3 additions and 3 deletions
|
@ -47,15 +47,15 @@ class PushersManager @Inject constructor(
|
|||
|
||||
fun enqueueRegisterPusherWithFcmKey(pushKey: String): UUID {
|
||||
val currentSession = activeSessionHolder.getActiveSession()
|
||||
return currentSession.enqueueAddHttpPusher(httpPusher(pushKey))
|
||||
return currentSession.enqueueAddHttpPusher(createHttpPusher(pushKey))
|
||||
}
|
||||
|
||||
suspend fun registerPusherWithFcmKey(pushKey: String) {
|
||||
val currentSession = activeSessionHolder.getActiveSession()
|
||||
currentSession.addHttpPusher(httpPusher(pushKey))
|
||||
currentSession.addHttpPusher(createHttpPusher(pushKey))
|
||||
}
|
||||
|
||||
private fun httpPusher(pushKey: String) = PushersService.HttpPusher(
|
||||
private fun createHttpPusher(pushKey: String) = PushersService.HttpPusher(
|
||||
pushKey,
|
||||
stringProvider.getString(R.string.pusher_app_id),
|
||||
profileTag = DEFAULT_PUSHER_FILE_TAG + "_" + abs(activeSessionHolder.getActiveSession().myUserId.hashCode()),
|
||||
|
|
Loading…
Add table
Reference in a new issue