Remove debug code
This commit is contained in:
parent
4db0fb64c6
commit
9def3f3785
@ -137,22 +137,22 @@ const ChatContainer = (props) => {
|
||||
prevSync = contextChat?.syncing;
|
||||
const timeWindowsValues = isPublicChat
|
||||
? [
|
||||
// ...(
|
||||
// !contextChat?.syncing ? Object.values(contextChat?.preJoinMessages || {}) : [
|
||||
// {
|
||||
// id: sysMessagesIds.syncId,
|
||||
// content: [{
|
||||
// id: 'synced',
|
||||
// text: intl.formatMessage(intlMessages.loading, { 0: contextChat?.syncedPercent}),
|
||||
// time: loginTime + 1,
|
||||
// }],
|
||||
// key: sysMessagesIds.syncId,
|
||||
// time: loginTime + 1,
|
||||
// sender: null,
|
||||
// }
|
||||
// ]
|
||||
// )
|
||||
// , ...systemMessagesIds.map((item) => systemMessages[item]),
|
||||
...(
|
||||
!contextChat?.syncing ? Object.values(contextChat?.preJoinMessages || {}) : [
|
||||
{
|
||||
id: sysMessagesIds.syncId,
|
||||
content: [{
|
||||
id: 'synced',
|
||||
text: intl.formatMessage(intlMessages.loading, { 0: contextChat?.syncedPercent}),
|
||||
time: loginTime + 1,
|
||||
}],
|
||||
key: sysMessagesIds.syncId,
|
||||
time: loginTime + 1,
|
||||
sender: null,
|
||||
}
|
||||
]
|
||||
)
|
||||
, ...systemMessagesIds.map((item) => systemMessages[item]),
|
||||
...Object.values(contextChat?.posJoinMessages || {})]
|
||||
: [...Object.values(contextChat?.messageGroups || {})];
|
||||
if (previousChatId !== chatID) {
|
||||
|
@ -27,7 +27,6 @@ const eventsToBeBound = [
|
||||
const isElementInViewport = (el) => {
|
||||
if (!el) return false;
|
||||
const rect = el.getBoundingClientRect();
|
||||
console.log('rect', rect);
|
||||
|
||||
return (
|
||||
rect.top >= 0
|
||||
|
Loading…
Reference in New Issue
Block a user