From 0df8dcad32e7176abbb9827c942446ac9b34aa43 Mon Sep 17 00:00:00 2001 From: angusiguess Date: Thu, 24 Aug 2017 12:49:22 -0300 Subject: [PATCH] [FIX #1474] Fix copy/paste of coordinates, address, and map viewing --- src/status_im/chat/views/message/message.cljs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/status_im/chat/views/message/message.cljs b/src/status_im/chat/views/message/message.cljs index ea282eb379..d689be1782 100644 --- a/src/status_im/chat/views/message/message.cljs +++ b/src/status_im/chat/views/message/message.cljs @@ -412,9 +412,9 @@ :on-long-press #(cond (= content-type text-content-type) (share content (label :t/message)) (and (= content-type content-type-command) (= "location" (:content-command content))) - (let [params (str/split (get-in content [:params "address"]) #"&") - latlong (rest params)] - (share-or-open-map (first params) (first latlong) (second latlong))))} + (let [address (get-in content [:params :address]) + [location lat long] (str/split address #"&")] + (share-or-open-map location lat long)))} [view (let [incoming-group (and group-chat (not outgoing))] [message-content message-body (merge message