increase/clear min-height on timeline on new message(s)
depending on whether the typing bar is visible
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user