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()) {
|
if (!sessionId.isNullOrBlank()) {
|
||||||
putExtra(NotificationReplyReceiver.EXTRA_SESSION_ID, sessionId)
|
putExtra(NotificationReplyReceiver.EXTRA_SESSION_ID, sessionId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return PendingIntent.getActivity(
|
return PendingIntent.getActivity(
|
||||||
this,
|
this,
|
||||||
sessionId?.hashCode() ?: 0,
|
sessionId?.hashCode() ?: 0,
|
||||||
|
|||||||
@@ -62,10 +62,11 @@ class ChannelsViewModel : ViewModel() {
|
|||||||
}
|
}
|
||||||
when (result) {
|
when (result) {
|
||||||
is NetworkResult.Success -> {
|
is NetworkResult.Success -> {
|
||||||
|
val message = "$platformId configured successfully — restart the gateway for changes to take effect"
|
||||||
_uiState.update {
|
_uiState.update {
|
||||||
it.copy(
|
it.copy(
|
||||||
isLoading = false,
|
isLoading = false,
|
||||||
toastMessage = "$platformId configured successfully — restart the gateway for changes to take effect",
|
toastMessage = message,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
loadPlatforms()
|
loadPlatforms()
|
||||||
|
|||||||
Reference in new issue
Block a user