[#10587] `Unable to resolve spec` at attempt to rename group chat

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
Andrey Shovkoplyas 2020-05-07 09:36:05 +02:00
parent 8fe279b9b0
commit a7c8f27b51
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
1 changed files with 5 additions and 2 deletions

View File

@ -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?)