From 26c4a736ad0d6928cf5d3c4eefca4f45b9c9d2ee Mon Sep 17 00:00:00 2001 From: Parvesh Monu Date: Thu, 13 Jun 2024 20:31:24 +0530 Subject: [PATCH] fix group Image can't be set up during group creation (#20451) --- src/status_im/contexts/chat/group_create/events.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/status_im/contexts/chat/group_create/events.cljs b/src/status_im/contexts/chat/group_create/events.cljs index a69397e36b..6dff6f4c68 100644 --- a/src/status_im/contexts/chat/group_create/events.cljs +++ b/src/status_im/contexts/chat/group_create/events.cljs @@ -1,5 +1,6 @@ (ns status-im.contexts.chat.group-create.events - (:require [legacy.status-im.data-store.chats :as data-store.chats] + (:require [clojure.string :as string] + [legacy.status-im.data-store.chats :as data-store.chats] [oops.core :as oops] [re-frame.core :as rf] [status-im.common.avatar-picture-picker.view :as avatar-picture-picker])) @@ -30,7 +31,7 @@ (fn [_ [{:keys [chat-id group-name color image]}]] {:json-rpc/call [{:method "chat_editChat" :params ["" chat-id group-name (name color) - {:imagePath image + {:imagePath (when image (string/replace-first image #"file://" "")) :x 0 :y 0 :width avatar-picture-picker/crop-size