fix: newly arrived messages dont show
Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
parent
f01074b126
commit
922ca6b874
|
|
@ -489,6 +489,10 @@ class ChannelScreenViewModel @Inject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
updateItems(newItemsWithPosition)
|
updateItems(newItemsWithPosition)
|
||||||
|
|
||||||
|
if (!didInitialChannelFetch) {
|
||||||
|
didInitialChannelFetch = true
|
||||||
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Log.e("ChannelScreenViewModel", "Failed to fetch messages", e)
|
Log.e("ChannelScreenViewModel", "Failed to fetch messages", e)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue