mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2024-09-30 00:40:49 +00:00
BugFix for ClassCastException when the event changes
This commit is contained in:
parent
ca9951f9b8
commit
87c19f4232
@ -95,7 +95,7 @@ fun LoadRedirectScreen(baseNote: Note, accountViewModel: AccountViewModel, nav:
|
|||||||
nav("Channel/${note.idHex}")
|
nav("Channel/${note.idHex}")
|
||||||
} else if (event is ChatroomKeyable) {
|
} else if (event is ChatroomKeyable) {
|
||||||
note.author?.let {
|
note.author?.let {
|
||||||
val withKey = (note.event as ChatroomKeyable)
|
val withKey = (event as ChatroomKeyable)
|
||||||
.chatroomKey(accountViewModel.userProfile().pubkeyHex)
|
.chatroomKey(accountViewModel.userProfile().pubkeyHex)
|
||||||
|
|
||||||
withContext(Dispatchers.IO) {
|
withContext(Dispatchers.IO) {
|
||||||
|
Loading…
Reference in New Issue
Block a user