Commit ed287df4 authored by JC Brand's avatar JC Brand

No need to set id manually

parent 29aed314
...@@ -11,7 +11,6 @@ import { compact, debounce, has, isString, uniq, without } from "lodash"; ...@@ -11,7 +11,6 @@ import { compact, debounce, has, isString, uniq, without } from "lodash";
import { View } from 'skeletor.js/src/view.js'; import { View } from 'skeletor.js/src/view.js';
import { Model } from 'skeletor.js/src/model.js'; import { Model } from 'skeletor.js/src/model.js';
import { OrderedListView } from "skeletor.js/src/overview"; import { OrderedListView } from "skeletor.js/src/overview";
import SHA1 from 'strophe.js/src/sha1';
import converse from "@converse/headless/converse-core"; import converse from "@converse/headless/converse-core";
import log from "@converse/headless/log"; import log from "@converse/headless/log";
import tpl_add_contact_modal from "templates/add_contact_modal.js"; import tpl_add_contact_modal from "templates/add_contact_modal.js";
...@@ -884,7 +883,7 @@ converse.plugins.add('converse-rosterview', { ...@@ -884,7 +883,7 @@ converse.plugins.add('converse-rosterview', {
if (view) { if (view) {
return view.model; return view.model;
} }
return this.model.create({name, 'id': SHA1.b64_sha1(name)}); return this.model.create({name});
}, },
addContactToGroup (contact, name, options) { addContactToGroup (contact, name, options) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment