(apps/chat) Reset the current selected chat when component destroyed

This commit is contained in:
Sercan Yemen 2023-09-04 13:08:22 +03:00
parent 4af04eab4d
commit 42a3dda2f5

View File

@ -92,6 +92,9 @@ export class ChatsComponent implements OnInit, OnDestroy
// Unsubscribe from all subscriptions
this._unsubscribeAll.next(null);
this._unsubscribeAll.complete();
// Reset the chat
this._chatService.resetChat();
}
// -----------------------------------------------------------------------------------------------------