fix: extract long toast string to val, fix indentation
This commit is contained in:
1 parent
ab92b31d2e
commit
fea7820740
2 files changed
+3
-2
No files matched your search
@@ -159,7 +159,7 @@ class ChatNotificationService : Service() {
|
||||
if (!sessionId.isNullOrBlank()) {
|
||||
putExtra(NotificationReplyReceiver.EXTRA_SESSION_ID, sessionId)
|
||||
}
|
||||
}
|
||||
}
|
||||
return PendingIntent.getActivity(
|
||||
this,
|
||||
sessionId?.hashCode() ?: 0,
|
||||
|
||||
@@ -62,10 +62,11 @@ class ChannelsViewModel : ViewModel() {
|
||||
}
|
||||
when (result) {
|
||||
is NetworkResult.Success -> {
|
||||
val message = "$platformId configured successfully — restart the gateway for changes to take effect"
|
||||
_uiState.update {
|
||||
it.copy(
|
||||
isLoading = false,
|
||||
toastMessage = "$platformId configured successfully — restart the gateway for changes to take effect",
|
||||
toastMessage = message,
|
||||
)
|
||||
}
|
||||
loadPlatforms()
|
||||
|
||||
Reference in new issue
Block a user