Signed-off-by: Ajay Bura <ajbura@gmail.com>
}
}
- unreadDivider = (readEvent && !unreadDivider
- && prevMEvent?.getTs() <= readEvent.getTs()
- && readEvent.getTs() < mEvent.getTs());
+ if (!unreadDivider) {
+ unreadDivider = (readEvent
+ && prevMEvent?.getTs() <= readEvent.getTs()
+ && readEvent.getTs() < mEvent.getTs());
+ }
if (unreadDivider) {
tl.push(<Divider key={`new-${mEvent.getId()}`} variant="positive" text="New messages" />);
itemCountIndex += 1;
if (textAreaRef?.current === null) return;
const msg = textAreaRef.current.value;
+ textAreaRef.current.style.height = 'unset';
inputBaseRef.current.style.backgroundImage = 'unset';
if (msg.trim() === '') {
roomsInput.setMessage(roomId, '');
}
if (!event.ctrlKey && !event.altKey) {
if (navigation.isRawModalVisible) return;
- if (['input', 'textarea'].includes(document.activeElement.type)) {
+ if (['text', 'textarea'].includes(document.activeElement.type)) {
return;
}
if (event.keyCode < 48