chat: set metadata properly and incorporate fixes

This commit is contained in:
Logan Allen 2020-02-28 11:52:17 -08:00
parent 2b15010e66
commit c960075a11
3 changed files with 7 additions and 5 deletions

View File

@ -208,7 +208,7 @@
%- zing
:~ (create-chat app-path.act security.act allow-history.act)
(create-managed-group group-path.act security.act members.act)
(create-metadata group-path.act app-path.act)
(create-metadata title.act description.act group-path.act app-path.act)
(create-security group-path.act security.act)
~[(permission-hook-poke [%add-owned group-path.act group-path.act])]
==
@ -262,10 +262,12 @@
==
::
++ create-metadata
|= [group-path=path app-path=path]
|= [title=@t description=@t group-path=path app-path=path]
^- (list card)
=/ =metadata
%* . *metadata
title title
description description
date-created now.bol
creator
%+ slav %p

File diff suppressed because one or more lines are too long

View File

@ -42,7 +42,7 @@ export class NewScreen extends Component {
}
titleChange(event) {
let asciiSafe = event.target.value
let asciiSafe = event.target.value.toLowerCase()
.replace(/[^a-z0-9~_.-]/g, "-");
this.setState({
idName: asciiSafe,
@ -249,7 +249,7 @@ export class NewScreen extends Component {
style={{
resize: "none"
}}
onChange={this.titleChange}
onChange={this.descriptionChange}
/>
<p className="f8 mt4 lh-copy db">
Invite