Message Context Menu: Hide "Seen By" in scheduled messages (#1654)

This commit is contained in:
Alexander Zinchuk 2022-01-21 17:29:40 +01:00
parent e995a514de
commit e7912b1433

View File

@ -428,6 +428,7 @@ export default memo(withGlobal<OwnProps>(
const canShowSeenBy = Boolean(chat
&& isChatGroup(chat)
&& isOwnMessage(message)
&& !isScheduled
&& chat.membersCount
&& chat.membersCount < SEEN_BY_MEMBERS_CHAT_MAX
&& message.date > Date.now() / 1000 - SEEN_BY_MEMBERS_EXPIRE);