mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-26 17:52:29 +01:00
Set account to avoid lateinit property account has not been initialized
This commit is contained in:
parent
e59f676d47
commit
1ac990b67c
@ -580,7 +580,7 @@ fun BechLink(
|
||||
)
|
||||
}
|
||||
} else if (loadedLink?.nip19 != null) {
|
||||
Row { ClickableRoute(loadedLink?.nip19!!, accountViewModel, nav) }
|
||||
ClickableRoute(loadedLink?.nip19!!, accountViewModel, nav)
|
||||
} else {
|
||||
val text =
|
||||
remember(word) {
|
||||
|
@ -225,6 +225,7 @@ fun ChatroomListScreenOnlyList(
|
||||
val observer =
|
||||
LifecycleEventObserver { _, event ->
|
||||
if (event == Lifecycle.Event.ON_RESUME) {
|
||||
NostrChatroomListDataSource.account = accountViewModel.account
|
||||
NostrChatroomListDataSource.start()
|
||||
}
|
||||
}
|
||||
@ -303,6 +304,7 @@ fun WatchAccountForListScreen(
|
||||
) {
|
||||
LaunchedEffect(accountViewModel) {
|
||||
launch(Dispatchers.IO) {
|
||||
NostrChatroomListDataSource.account = accountViewModel.account
|
||||
NostrChatroomListDataSource.start()
|
||||
knownFeedViewModel.invalidateData(true)
|
||||
newFeedViewModel.invalidateData(true)
|
||||
|
Loading…
x
Reference in New Issue
Block a user