fix group Image can't be set up during group creation (#20451)
This commit is contained in:
parent
aff4eb89cd
commit
26c4a736ad
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue