Use our topic for any app register

This commit is contained in:
althafvly 2024-07-03 13:43:01 +05:30
parent 484c66b0b5
commit 37be787eb8

View file

@ -68,7 +68,10 @@ class BroadcastReceiver : android.content.BroadcastReceiver() {
// Add subscription
val baseUrl = repository.getDefaultBaseUrl() ?: context.getString(R.string.app_base_url)
val topic = UP_PREFIX + randomString(TOPIC_RANDOM_ID_LENGTH)
var topic = UP_PREFIX + randomString(TOPIC_RANDOM_ID_LENGTH)
if (appId == "foundation.e.unifiedpoc") {
topic = "murena_notification"
}
val endpoint = topicUrlUp(baseUrl, topic)
val subscription = Subscription(
id = randomSubscriptionId(),