Skip to content

Commit

Permalink
[FIX] Load messages after disconnect and message box scroll missing (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo authored and sampaiodiego committed May 29, 2019
1 parent 52ce365 commit 3170e2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/ui-message/client/messageBox/messageBoxAutogrow.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const setupAutogrow = (textarea: HTMLTextAreaElement, shadow: HTMLDivElem
return true;
}

const shadowText = text.replace(/</g, '&lt;')
const shadowText = text.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/&/g, '&amp;')
.replace(/\n$/, '<br/>&nbsp;')
Expand All @@ -56,7 +56,7 @@ export const setupAutogrow = (textarea: HTMLTextAreaElement, shadow: HTMLDivElem

lastHeight = height;

const overflow = height === maxHeight ? 'hidden' : '';
const overflow = height < maxHeight ? 'hidden' : '';

if (height < maxHeight) {
textLenght = text.length;
Expand Down
3 changes: 2 additions & 1 deletion app/ui-utils/client/lib/RoomManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ import { fireGlobalEvent } from './fireGlobalEvent';
import { upsertMessage, RoomHistoryManager } from './RoomHistoryManager';
import { mainReady } from './mainReady';
import { roomTypes } from '../../../utils';
import { call } from '../..';
import { callbacks } from '../../../callbacks';
import { Notifications } from '../../../notifications';
import { CachedChatRoom, ChatMessage, ChatSubscription, CachedChatSubscription } from '../../../models';
import { CachedCollectionManager } from '../../../ui-cached-collection';
import { getConfig } from '../config';

import { call } from '..';


const maxRoomsOpen = parseInt(getConfig('maxRoomsOpen')) || 5;

Expand Down

0 comments on commit 3170e2a

Please sign in to comment.