increase/clear min-height on timeline on new message(s)
depending on whether the typing bar is visible
This commit is contained in:
parent
018f3d2a5c
commit
25aa58f29f
3 changed files with 27 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue