Fixes UpgradeRoom command not working
This commit is contained in:
parent
b9b0e84704
commit
f831252e35
@ -472,14 +472,16 @@ class MessageComposerViewModel @AssistedInject constructor(
|
|||||||
Unit
|
Unit
|
||||||
}
|
}
|
||||||
is ParsedCommand.UpgradeRoom -> {
|
is ParsedCommand.UpgradeRoom -> {
|
||||||
_viewEvents.post(
|
viewModelScope.launch {
|
||||||
MessageComposerViewEvents.ShowRoomUpgradeDialog(
|
_viewEvents.set(
|
||||||
parsedCommand.newVersion,
|
MessageComposerViewEvents.ShowRoomUpgradeDialog(
|
||||||
room.roomSummary()?.isPublic ?: false
|
parsedCommand.newVersion,
|
||||||
)
|
room.roomSummary()?.isPublic ?: false
|
||||||
)
|
)
|
||||||
_viewEvents.post(MessageComposerViewEvents.SlashCommandResultOk(parsedCommand))
|
)
|
||||||
popDraft()
|
_viewEvents.set(MessageComposerViewEvents.SlashCommandResultOk(parsedCommand))
|
||||||
|
popDraft()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user