diff --git a/src/main/frontend/components/settings.cljs b/src/main/frontend/components/settings.cljs index 1b412df04..0b49f7a92 100644 --- a/src/main/frontend/components/settings.cljs +++ b/src/main/frontend/components/settings.cljs @@ -1146,7 +1146,7 @@ [:div.flex.flex-row.items-center.gap-2 {:key (str "user-" user-name)} [:div user-name] (when user-email [:div.opacity-50.text-sm user-email]) - (when graph<->user-user-type [:div.opacity-50.text-sm graph<->user-user-type])])] + (when graph<->user-user-type [:div.opacity-50.text-sm (name graph<->user-user-type)])])] [:div.flex.flex-col.gap-4.mt-4 (shui/input {:placeholder "Email address" diff --git a/src/main/frontend/worker/rtc/const.cljs b/src/main/frontend/worker/rtc/const.cljs index cbff893fb..4af911dae 100644 --- a/src/main/frontend/worker/rtc/const.cljs +++ b/src/main/frontend/worker/rtc/const.cljs @@ -78,10 +78,20 @@ [:failed-ops {:optional true} [:sequential to-ws-op-schema]] [:s3-presign-url {:optional true} :string] [:diff-data {:optional true} [:map-of :keyword :any]] - [:online-users {:optional true} [:sequential [:map - [:user/uuid :uuid] - [:user/name :string] - [:user/email :string]]]] + [:users {:optional true} [:sequential + [:map {:closed true} + [:user/uuid :uuid] + [:user/name :string] + [:user/email :string] + [:user/online? :boolean] + [:user/avatar {:optional true} :string] + [:graph<->user/user-type :keyword]]]] + [:online-users {:optional true} [:sequential + [:map {:closed true} + [:user/uuid :uuid] + [:user/name :string] + [:user/email :string] + [:user/avatar {:optional true} :string]]]] [:refed-blocks {:optional true} [:maybe [:sequential