From 8457105d6a1ff7e169aebae8d413abf0fd34fdf6 Mon Sep 17 00:00:00 2001 From: Louis Date: Tue, 27 Aug 2024 18:01:40 +0200 Subject: [PATCH] Take the user back to wherever the conversation was restored "to" Linked to #315 --- components/ConversationListItem.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/ConversationListItem.tsx b/components/ConversationListItem.tsx index 3d1fdddaf..faa090f5d 100644 --- a/components/ConversationListItem.tsx +++ b/components/ConversationListItem.tsx @@ -121,10 +121,11 @@ const ConversationListItem = memo(function ConversationListItem({ includeCreator: false, includeAddedBy: false, }); + // Take the user back to wherever the conversation was restored "to" + // https://github.com/ephemeraHQ/converse-app/issues/315#issuecomment-2312903441 + navigation.pop(2); }, - [translate("cancel")]: () => { - return null; - }, + [translate("cancel")]: () => {}, }; const options = Object.keys(methods);