diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/LoadRedirectScreen.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/LoadRedirectScreen.kt index 68e92658b..d48a598c9 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/LoadRedirectScreen.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/LoadRedirectScreen.kt @@ -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) {