From 2f6b43779f1f9f4ea5593b6c9d2c037b21d9f355 Mon Sep 17 00:00:00 2001 From: Nicolas Perriault Date: Mon, 29 May 2017 23:41:03 +0200 Subject: [PATCH] Fix broken account following, muting, blocking. --- src/Update/Mastodon.elm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Update/Mastodon.elm b/src/Update/Mastodon.elm index b0d4482..402319b 100644 --- a/src/Update/Mastodon.elm +++ b/src/Update/Mastodon.elm @@ -402,8 +402,8 @@ processFollowEvent relationship ({ accountInfo } as model) = accountRelationship = case accountInfo.relationship of - Just relationship -> - if relationship.id == relationship.id then + Just accountRelationship -> + if accountRelationship.id == relationship.id then Just { relationship | following = relationship.following } else accountInfo.relationship @@ -453,8 +453,8 @@ processMuteEvent account relationship ({ accountInfo } as model) = accountRelationship = case accountInfo.relationship of - Just relationship -> - if relationship.id == relationship.id then + Just accountRelationship -> + if accountRelationship.id == relationship.id then Just { relationship | muting = relationship.muting } else accountInfo.relationship @@ -492,8 +492,8 @@ processBlockEvent account relationship ({ accountInfo } as model) = accountRelationship = case accountInfo.relationship of - Just relationship -> - if relationship.id == relationship.id then + Just accountRelationship -> + if accountRelationship.id == relationship.id then Just { relationship | blocking = relationship.blocking } else accountInfo.relationship