Skip to content

Commit

Permalink
Turn off shimmer when empty chat
Browse files Browse the repository at this point in the history
  • Loading branch information
ariel10aguero committed Oct 20, 2023
1 parent b4452b9 commit 9a285f3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,10 @@ abstract class ChatViewModel<ARGS : NavArgs>(
return
}

if (chatId == null) {
shimmerViewState.updateViewState(ShimmerViewState.Off)
}

var isScrollDownButtonSetup = false
messagesLoadJob = viewModelScope.launch(mainImmediate) {
if (isThreadChat()) {
Expand Down

0 comments on commit 9a285f3

Please sign in to comment.