mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Drop the comment above the UnifiedPush registration call
Review feedback: the named `messageForDistributor` argument already says what the session id is doing there, so the comment only added noise.
This commit is contained in:
-3
@@ -34,9 +34,6 @@ class DefaultRegisterUnifiedPushUseCase(
|
|||||||
UnifiedPush.saveDistributor(context, distributor.value)
|
UnifiedPush.saveDistributor(context, distributor.value)
|
||||||
// This will trigger the callback
|
// This will trigger the callback
|
||||||
// VectorUnifiedPushMessagingReceiver.onNewEndpoint
|
// VectorUnifiedPushMessagingReceiver.onNewEndpoint
|
||||||
// The session id is passed as the message for the distributor, so that its UI can tell one
|
|
||||||
// registration from another when several accounts are registered.
|
|
||||||
// See https://github.com/element-hq/element-x-android/issues/6426
|
|
||||||
UnifiedPush.register(context = context, instance = clientSecret, messageForDistributor = sessionId.value)
|
UnifiedPush.register(context = context, instance = clientSecret, messageForDistributor = sessionId.value)
|
||||||
// Wait for VectorUnifiedPushMessagingReceiver.onNewEndpoint to proceed
|
// Wait for VectorUnifiedPushMessagingReceiver.onNewEndpoint to proceed
|
||||||
@Suppress("RunCatchingNotAllowed")
|
@Suppress("RunCatchingNotAllowed")
|
||||||
|
|||||||
Reference in New Issue
Block a user