increase/clear min-height on timeline on new message(s)

depending on whether the typing bar is visible
This commit is contained in:
Bruno Windels 2019-01-21 17:35:40 +01:00
parent 018f3d2a5c
commit 25aa58f29f
3 changed files with 27 additions and 4 deletions

View file

@ -77,6 +77,10 @@ module.exports = React.createClass({
Object.values(this.state.delayedStopTypingTimers).forEach((t) => t.abort());
},
isVisible: function() {
return this.state.usersTyping.length !== 0 || Object.keys(this.state.delayedStopTypingTimers) !== 0;
},
onRoomTimeline: function(event, room) {
if (room.roomId === this.props.room.roomId) {
const userId = event.getSender();