mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-11 16:09:31 +03:00
chat: add unique ID to grouped chat paths
This commit is contained in:
parent
c570def06a
commit
9881fb2a2b
@ -95,6 +95,7 @@ export class NewScreen extends Component {
|
||||
|
||||
onClickCreate() {
|
||||
const { props, state } = this;
|
||||
let grouped = (this.state.createGroup || (this.state.groups.length > 0));
|
||||
|
||||
if (!state.title) {
|
||||
this.setState({
|
||||
@ -104,7 +105,7 @@ export class NewScreen extends Component {
|
||||
return;
|
||||
}
|
||||
|
||||
let station = `/${state.idName}`;
|
||||
let station = `/${state.idName}` + (grouped ? `-${Math.floor(Math.random() * 10000)}` : "");
|
||||
|
||||
if (station in props.inbox) {
|
||||
this.setState({
|
||||
|
Loading…
Reference in New Issue
Block a user