MOBILE-2795 messages: Fix contact opened automatically when it shouldn't

main
Dani Palou 2019-01-07 13:51:14 +01:00
parent 49d283c22d
commit eed3e95a9a
1 changed files with 5 additions and 0 deletions

View File

@ -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();
}