Merge pull request #5278 from pangeachat/5264-restrict-shimmer-to-only-newest-message
chore: only show shimmer on most recent message
This commit is contained in:
commit
342f476545
1 changed files with 1 additions and 0 deletions
|
|
@ -2009,6 +2009,7 @@ class ChatController extends State<ChatPageWithRoom>
|
|||
|
||||
bool showMessageShimmer(Event event) {
|
||||
if (event.type != EventTypes.Message) return false;
|
||||
if (!(event.eventId == buttonEventID)) return false;
|
||||
if (event.messageType == MessageTypes.Text) {
|
||||
return !InstructionsEnum.clickTextMessages.isToggledOff;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue