BugFix for ClassCastException when the event changes

This commit is contained in:
Vitor Pamplona 2023-08-21 18:21:28 -04:00
parent ca9951f9b8
commit 87c19f4232

View File

@ -95,7 +95,7 @@ fun LoadRedirectScreen(baseNote: Note, accountViewModel: AccountViewModel, nav:
nav("Channel/${note.idHex}")
} else if (event is ChatroomKeyable) {
note.author?.let {
val withKey = (note.event as ChatroomKeyable)
val withKey = (event as ChatroomKeyable)
.chatroomKey(accountViewModel.userProfile().pubkeyHex)
withContext(Dispatchers.IO) {