pass viewport to call panel

This commit is contained in:
or-else
2023-06-15 13:11:23 -07:00
parent 3bf822170c
commit 94575b5a07
+2 -1
View File
@@ -1484,6 +1484,7 @@ class MessagesView extends React.Component {
title={this.state.title} title={this.state.title}
avatar={this.state.avatar || true} avatar={this.state.avatar || true}
myUid={this.props.myUserId} myUid={this.props.myUserId}
viewportWidth={this.props.viewportWidth}
onError={this.props.onError} onError={this.props.onError}
onHangup={this.handleCallHangup} onHangup={this.handleCallHangup}
@@ -1630,7 +1631,7 @@ class MessagesView extends React.Component {
let messagesComponent = ( let messagesComponent = (
<> <>
<div id="messages-container"> <div id="messages-container">
<button className={'action-button' + (this.state.showGoToLastButton ? '' : ' hidden')} <button id="go-to-latest" className={'action-button' + (this.state.showGoToLastButton ? '' : ' hidden')}
onClick={this.goToLatestMessage}> onClick={this.goToLatestMessage}>
<i className="material-icons">arrow_downward</i> <i className="material-icons">arrow_downward</i>
</button> </button>