Skip to content
Snippets Groups Projects
Unverified Commit cce5efe6 authored by Djorkaeff Alexandre's avatar Djorkaeff Alexandre Committed by GitHub
Browse files

[FIX] Prevent crash when thread is not found (#2080)

parent e3cfcf7f
No related branches found
No related tags found
No related merge requests found
......@@ -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']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment