Fix broken account following, muting, blocking.

This commit is contained in:
Nicolas Perriault 2017-05-29 23:41:03 +02:00
parent f717b6857f
commit 2f6b43779f
No known key found for this signature in database
GPG Key ID: DA5E4C83904F7A2A

View File

@ -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