From f6415990b705845d6f59fe57a563b7e3b8a0c0fd Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Thu, 3 Jun 2021 11:27:24 +0200 Subject: [PATCH] MOBILE-3320 messages: swap block/unblock icons --- src/addons/messages/pages/discussion/discussion.page.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/addons/messages/pages/discussion/discussion.page.ts b/src/addons/messages/pages/discussion/discussion.page.ts index b107bfd10..41f353973 100644 --- a/src/addons/messages/pages/discussion/discussion.page.ts +++ b/src/addons/messages/pages/discussion/discussion.page.ts @@ -288,7 +288,7 @@ export class AddonMessagesDiscussionPage implements OnInit, OnDestroy, AfterView this.conversationImage = this.otherMember.profileimageurl; this.title = this.otherMember.fullname; } - this.blockIcon = this.otherMember.isblocked ? 'fas-user-lock' : 'fas-user-check'; + this.blockIcon = this.otherMember.isblocked ? 'fas-user-check' : 'fas-user-lock'; return; })); @@ -317,7 +317,7 @@ export class AddonMessagesDiscussionPage implements OnInit, OnDestroy, AfterView }; this.otherMember.isblocked = await AddonMessages.isBlocked(this.userId!); this.otherMember.iscontact = await AddonMessages.isContact(this.userId!); - this.blockIcon = this.otherMember.isblocked ? 'fas-user-lock' : 'fas-user-check'; + this.blockIcon = this.otherMember.isblocked ? 'fas-user-check' : 'fas-user-lock'; return; })); @@ -1466,7 +1466,7 @@ export class AddonMessagesDiscussionPage implements OnInit, OnDestroy, AfterView } catch (error) { CoreDomUtils.showErrorModalDefault(error, 'core.error', true); } finally { - this.blockIcon = this.otherMember.isblocked ? 'fas-user-lock' : 'fas-user-check'; + this.blockIcon = this.otherMember.isblocked ? 'fas-user-check' : 'fas-user-lock'; } } catch { // User cancelled. @@ -1548,7 +1548,7 @@ export class AddonMessagesDiscussionPage implements OnInit, OnDestroy, AfterView } catch (error) { CoreDomUtils.showErrorModalDefault(error, 'core.error', true); } finally { - this.blockIcon = this.otherMember.isblocked ? 'fas-user-lock' : 'fas-user-check'; + this.blockIcon = this.otherMember.isblocked ? 'fas-user-check' : 'fas-user-lock'; } } catch { // User cancelled.