mirror of
https://github.com/status-im/status-mobile.git
synced 2025-02-05 13:25:43 +00:00
0b0405d9a5
Signed-off-by: Eric Dvorsak <eric@dvorsak.fr>
22 lines
1.5 KiB
Clojure
22 lines
1.5 KiB
Clojure
(ns status-im.chat.specs
|
|
(:require [cljs.spec.alpha :as s]))
|
|
|
|
(s/def :chat/chats (s/nilable map?)) ; {id (string) chat (map)} active chats on chat's tab
|
|
(s/def :chat/deleted-chats (s/nilable set?)) ; set of deleted chat ids
|
|
(s/def :chat/current-chat-id (s/nilable string?)) ; current or last opened chat-id
|
|
(s/def :chat/chat-id (s/nilable string?)) ; what is the difference ? ^
|
|
(s/def :chat/new-chat-name (s/nilable string?)) ; we have name in the new-chat why do we need this field
|
|
(s/def :chat/chat-animations (s/nilable map?)) ; {id (string) props (map)}
|
|
(s/def :chat/chat-ui-props (s/nilable map?)) ; {id (string) props (map)}
|
|
(s/def :chat/chat-list-ui-props (s/nilable map?))
|
|
(s/def :chat/layout-height (s/nilable number?)) ; height of chat's view layout
|
|
(s/def :chat/expandable-view-height-to-value (s/nilable number?))
|
|
(s/def :chat/selected-participants (s/nilable set?))
|
|
(s/def :chat/chat-loaded-callbacks (s/nilable map?))
|
|
(s/def :chat/public-group-topic (s/nilable string?))
|
|
(s/def :chat/messages (s/nilable map?)) ; messages indexed by message-id
|
|
(s/def :chat/not-loaded-message-ids (s/nilable set?)) ; set of message-ids not yet fully loaded from persisted state
|
|
(s/def :chat/last-clock-value (s/nilable number?)) ; last logical clock value of messages in chat
|
|
(s/def :chat/loaded-chats (s/nilable seq?))
|
|
(s/def :chat/bot-db (s/nilable map?))
|