Skip to content

Commit

Permalink
Merge branch 'develop' into bugfix/fix-course-overview-sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
raffifasaro authored Oct 27, 2024
2 parents 7dc0f5e + 27f4f60 commit 0d469f9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ export class ConversationMessagesComponent implements OnInit, AfterViewInit, OnD

private subscribeToActiveConversation() {
this.metisConversationService.activeConversation$.pipe(takeUntil(this.ngUnsubscribe)).subscribe((conversation: ConversationDTO) => {
// This statement avoids a bug that reloads the messages when the conversation is already displayed
if (this._activeConversation?.id === conversation.id) {
return;
}
this._activeConversation = conversation;
this.onActiveConversationChange();
});
Expand Down

0 comments on commit 0d469f9

Please sign in to comment.