[#10587] `Unable to resolve spec` at attempt to rename group chat
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
8fe279b9b0
commit
a7c8f27b51
|
@ -1,6 +1,7 @@
|
|||
(ns status-im.ui.screens.profile.db
|
||||
(:require [clojure.string :as string]
|
||||
[status-im.chat.constants :as chat.constants]))
|
||||
[status-im.chat.constants :as chat.constants]
|
||||
[cljs.spec.alpha :as spec]))
|
||||
|
||||
(defn correct-name? [username]
|
||||
(when-let [username (some-> username (string/trim))]
|
||||
|
@ -16,4 +17,6 @@
|
|||
|
||||
(defn base64-encoded-image-path? [photo-path]
|
||||
(or (base64-png? photo-path)
|
||||
(base64-jpeg? photo-path)))
|
||||
(base64-jpeg? photo-path)))
|
||||
|
||||
(spec/def :profile/name correct-name?)
|
Loading…
Reference in New Issue