commit f29e3f37cdb473a804acc5872fd93a6c2db34760 parent a6d3c398c7462d4d58c9901b50b7614566f6c33a Author: rhunk <101876869+rhunk@users.noreply.github.com> Date: Sun, 9 Jun 2024 23:16:49 +0200 refactor(ff_menu): remove toast Signed-off-by: rhunk <101876869+rhunk@users.noreply.github.com> Diffstat:
M | core/src/main/kotlin/me/rhunk/snapenhance/core/ui/menu/impl/FriendFeedInfoMenu.kt | | | 5 | +---- |
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/ui/menu/impl/FriendFeedInfoMenu.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/ui/menu/impl/FriendFeedInfoMenu.kt @@ -227,10 +227,7 @@ class FriendFeedInfoMenu : AbstractMenu() { if (friendFeedMenuOptions.isEmpty()) return val messaging = context.feature(Messaging::class) - val conversationId = messaging.lastFocusedConversationId ?: run { - context.shortToast("No conversation focused!") - return - } + val conversationId = messaging.lastFocusedConversationId ?: return val targetUser = context.database.getDMOtherParticipant(conversationId) messaging.resetLastFocusedConversation()