mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-30 21:08:40 +03:00
lint
This commit is contained in:
parent
dbfa5e1fd5
commit
ff0c98e8fa
1 changed files with 2 additions and 2 deletions
|
@ -158,8 +158,8 @@ val upHandler = object: MessagingReceiverHandler {
|
||||||
Timber.i("onNewEndpoint: adding $endpoint")
|
Timber.i("onNewEndpoint: adding $endpoint")
|
||||||
if (vectorPreferences.areNotificationEnabledForDevice() && activeSessionHolder.hasActiveSession()) {
|
if (vectorPreferences.areNotificationEnabledForDevice() && activeSessionHolder.hasActiveSession()) {
|
||||||
val gateway = UPHelper.customOrDefaultGateway(context, endpoint)
|
val gateway = UPHelper.customOrDefaultGateway(context, endpoint)
|
||||||
if (UPHelper.getUpEndpoint(context) != endpoint ||
|
if (UPHelper.getUpEndpoint(context) != endpoint
|
||||||
UPHelper.getPushGateway(context) != gateway) {
|
|| UPHelper.getPushGateway(context) != gateway) {
|
||||||
UPHelper.storePushGateway(context, gateway)
|
UPHelper.storePushGateway(context, gateway)
|
||||||
UPHelper.storeUpEndpoint(context, endpoint)
|
UPHelper.storeUpEndpoint(context, endpoint)
|
||||||
pusherManager.registerPusher(context, endpoint, gateway)
|
pusherManager.registerPusher(context, endpoint, gateway)
|
||||||
|
|
Loading…
Reference in a new issue