merge next
This commit is contained in:
@@ -672,6 +672,9 @@ class MessagesView extends React.Component {
|
|||||||
|
|
||||||
// The 'msg' could be false-ish if some message ranges were deleted.
|
// The 'msg' could be false-ish if some message ranges were deleted.
|
||||||
handleMessageUpdate(msg) {
|
handleMessageUpdate(msg) {
|
||||||
|
if (!this.state.topic) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const topic = this.props.tinode.getTopic(this.state.topic);
|
const topic = this.props.tinode.getTopic(this.state.topic);
|
||||||
if (!msg) {
|
if (!msg) {
|
||||||
// msg could be null if one or more messages were deleted.
|
// msg could be null if one or more messages were deleted.
|
||||||
|
|||||||
@@ -5644,6 +5644,9 @@ class MessagesView extends (react__WEBPACK_IMPORTED_MODULE_0___default().Compone
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
handleMessageUpdate(msg) {
|
handleMessageUpdate(msg) {
|
||||||
|
if (!this.state.topic) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const topic = this.props.tinode.getTopic(this.state.topic);
|
const topic = this.props.tinode.getTopic(this.state.topic);
|
||||||
if (!msg) {
|
if (!msg) {
|
||||||
this.setState({
|
this.setState({
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user