From 25de15e5354e33dbecf54f976de65f5bf861fef3 Mon Sep 17 00:00:00 2001 From: Sjmarf <78750526+Sjmarf@users.noreply.github.com> Date: Thu, 4 Jan 2024 12:32:17 +0000 Subject: [PATCH] Update CommunityModel+SwipeActions.swift --- .../Community/CommunityModel+SwipeActions.swift | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/Mlem/Models/Content/Community/CommunityModel+SwipeActions.swift b/Mlem/Models/Content/Community/CommunityModel+SwipeActions.swift index 90e68ede5..e0785ea83 100644 --- a/Mlem/Models/Content/Community/CommunityModel+SwipeActions.swift +++ b/Mlem/Models/Content/Community/CommunityModel+SwipeActions.swift @@ -76,17 +76,10 @@ extension CommunityModel { let subscribeAction = try? subscribeSwipeAction(callback, confirmDestructive: confirmDestructive) let favoriteAction = favoriteSwipeAction(callback, confirmDestructive: confirmDestructive) - if !self.favorited { - if let subscribeAction { - trailingActions.append(subscribeAction) - } - trailingActions.append(favoriteAction) - } else { - trailingActions.append(favoriteAction) - if let subscribeAction { - trailingActions.append(subscribeAction) - } + if let subscribeAction { + trailingActions.append(subscribeAction) } + trailingActions.append(favoriteAction) return SwipeConfiguration(leadingActions: [], trailingActions: trailingActions) }