fix group Image can't be set up during group creation (#20451)

This commit is contained in:
Parvesh Monu 2024-06-13 20:31:24 +05:30 committed by GitHub
parent aff4eb89cd
commit 26c4a736ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
(ns status-im.contexts.chat.group-create.events (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] [oops.core :as oops]
[re-frame.core :as rf] [re-frame.core :as rf]
[status-im.common.avatar-picture-picker.view :as avatar-picture-picker])) [status-im.common.avatar-picture-picker.view :as avatar-picture-picker]))
@ -30,7 +31,7 @@
(fn [_ [{:keys [chat-id group-name color image]}]] (fn [_ [{:keys [chat-id group-name color image]}]]
{:json-rpc/call [{:method "chat_editChat" {:json-rpc/call [{:method "chat_editChat"
:params ["" chat-id group-name (name color) :params ["" chat-id group-name (name color)
{:imagePath image {:imagePath (when image (string/replace-first image #"file://" ""))
:x 0 :x 0
:y 0 :y 0
:width avatar-picture-picker/crop-size :width avatar-picture-picker/crop-size