Skip to content

Commit

Permalink
[status-im#10587] Unable to resolve spec at attempt to rename group…
Browse files Browse the repository at this point in the history
… chat

Signed-off-by: Andrey Shovkoplyas <[email protected]>
  • Loading branch information
flexsurfer committed May 7, 2020
1 parent 8fe279b commit a7c8f27
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/status_im/ui/screens/profile/db.cljs
Original file line number Diff line number Diff line change
@@ -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))]
Expand All @@ -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?)

0 comments on commit a7c8f27

Please sign in to comment.