mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 11:34:45 +00:00
[#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
|
(ns status-im.ui.screens.profile.db
|
||||||
(:require [clojure.string :as string]
|
(: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]
|
(defn correct-name? [username]
|
||||||
(when-let [username (some-> username (string/trim))]
|
(when-let [username (some-> username (string/trim))]
|
||||||
@ -16,4 +17,6 @@
|
|||||||
|
|
||||||
(defn base64-encoded-image-path? [photo-path]
|
(defn base64-encoded-image-path? [photo-path]
|
||||||
(or (base64-png? photo-path)
|
(or (base64-png? photo-path)
|
||||||
(base64-jpeg? photo-path)))
|
(base64-jpeg? photo-path)))
|
||||||
|
|
||||||
|
(spec/def :profile/name correct-name?)
|
Loading…
x
Reference in New Issue
Block a user