From 7233a5f97d82b0ad289f85d309a39834ece4f175 Mon Sep 17 00:00:00 2001 From: psdp <4315882+psdp@users.noreply.github.com> Date: Tue, 8 May 2018 06:20:47 +0000 Subject: [PATCH] [#4075] Clear invalid contact code error message when returning to the "Start new chat" Signed-off-by: Julien Eluard --- src/status_im/ui/screens/add_new/new_chat/navigation.cljs | 6 ++++++ src/status_im/ui/screens/events.cljs | 1 + 2 files changed, 7 insertions(+) create mode 100644 src/status_im/ui/screens/add_new/new_chat/navigation.cljs diff --git a/src/status_im/ui/screens/add_new/new_chat/navigation.cljs b/src/status_im/ui/screens/add_new/new_chat/navigation.cljs new file mode 100644 index 0000000000..39d5175b25 --- /dev/null +++ b/src/status_im/ui/screens/add_new/new_chat/navigation.cljs @@ -0,0 +1,6 @@ +(ns status-im.ui.screens.add-new.new-chat.navigation + (:require [status-im.ui.screens.navigation :as navigation])) + +(defmethod navigation/preload-data! :new-chat + [db _] + (assoc db :contacts/new-identity nil)) diff --git a/src/status_im/ui/screens/events.cljs b/src/status_im/ui/screens/events.cljs index f840819ed8..77c8ee9230 100644 --- a/src/status_im/ui/screens/events.cljs +++ b/src/status_im/ui/screens/events.cljs @@ -14,6 +14,7 @@ status-im.ui.screens.group.chat-settings.events status-im.ui.screens.group.events status-im.ui.screens.navigation + status-im.ui.screens.add-new.new-chat.navigation status-im.ui.screens.network-settings.events status-im.ui.screens.profile.events status-im.ui.screens.qr-scanner.events