mirror of
https://github.com/danog/telegram-tt.git
synced 2025-01-22 05:11:55 +01:00
Message List: Fix flickering when sending message to an empty channel
This commit is contained in:
parent
a31aa31b6b
commit
c876400014
@ -275,8 +275,8 @@ const MessageList: FC<OwnProps & StateProps & DispatchProps> = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Loading history while sending a message can return the same message and cause ambiguity
|
// Loading history while sending a message can return the same message and cause ambiguity
|
||||||
const isFirstMessageLocal = messageIds && messageIds[0] >= LOCAL_MESSAGE_ID_BASE;
|
const isLastMessageLocal = messageIds && messageIds[messageIds.length - 1] >= LOCAL_MESSAGE_ID_BASE;
|
||||||
if (isFirstMessageLocal) {
|
if (isLastMessageLocal) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user