[FIX] Prevent crash when thread is not found (#2080)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
e3cfcf7f5b
commit
cce5efe6a9
|
@ -96,7 +96,7 @@ class List extends React.Component {
|
|||
this.messagesSubscription = this.messagesObservable
|
||||
.subscribe((data) => {
|
||||
this.interaction = InteractionManager.runAfterInteractions(() => {
|
||||
if (tmid) {
|
||||
if (tmid && this.thread) {
|
||||
data = [this.thread, ...data];
|
||||
}
|
||||
const messages = orderBy(data, ['ts'], ['desc']);
|
||||
|
|
Loading…
Reference in New Issue