mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 16:33:27 +00:00
Merge pull request #3086 from carpedkm/bounty-1497-live-chat-broadcast
Fix live stream chat relay fallback
This commit is contained in:
+7
-1
@@ -297,7 +297,13 @@ open class ChannelNewMessageViewModel :
|
||||
val version = draftTag.current
|
||||
cancel()
|
||||
|
||||
accountViewModel.account.signAndSendPrivately(template, channelRelays)
|
||||
if (channel is LiveActivitiesChannel) {
|
||||
accountViewModel.account.signAndSendPrivatelyOrBroadcast(template) {
|
||||
channelRelays.toList()
|
||||
}
|
||||
} else {
|
||||
accountViewModel.account.signAndSendPrivately(template, channelRelays)
|
||||
}
|
||||
accountViewModel.viewModelScope.launch(Dispatchers.IO) {
|
||||
accountViewModel.account.deleteDraftIgnoreErrors(version)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user