From eed3e95a9af1f424560fed97f08bad0896f43df5 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Mon, 7 Jan 2019 13:51:14 +0100 Subject: [PATCH] MOBILE-2795 messages: Fix contact opened automatically when it shouldn't --- src/addon/messages/pages/contacts/contacts.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/addon/messages/pages/contacts/contacts.ts b/src/addon/messages/pages/contacts/contacts.ts index d27dc3662..047961507 100644 --- a/src/addon/messages/pages/contacts/contacts.ts +++ b/src/addon/messages/pages/contacts/contacts.ts @@ -73,6 +73,11 @@ export class AddonMessagesContactsPage implements OnDestroy { * User entered the page. */ ionViewDidEnter(): void { + if (!this.splitviewCtrl.isOn()) { + this.selectedUserId.contacts = null; + this.selectedUserId.requests = null; + } + this.tabsComponent && this.tabsComponent.ionViewDidEnter(); }