Bugs fixed

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2021-12-13 21:05:37 +05:30
parent 46dd50a744
commit 6d358d4087
3 changed files with 7 additions and 4 deletions

View file

@ -608,9 +608,11 @@ function RoomViewContent({ eventId, roomTimeline }) {
}
}
unreadDivider = (readEvent && !unreadDivider
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;

View file

@ -166,6 +166,7 @@ function RoomViewInput({
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, '');

View file

@ -13,7 +13,7 @@ function listenKeyboard(event) {
}
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