mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-06 18:45:08 +00:00
(apps/chat) Reset the current selected chat when component destroyed
This commit is contained in:
parent
4af04eab4d
commit
42a3dda2f5
|
@ -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();
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user