Remove debug code

This commit is contained in:
Tainan Felipe 2021-03-31 08:14:03 -03:00
parent 4db0fb64c6
commit 9def3f3785
2 changed files with 16 additions and 17 deletions

View File

@ -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) {

View File

@ -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