mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-06 06:28:27 +00:00
Throw an error when trying to create a group store with falsey groupId
This commit is contained in:
@@ -33,6 +33,9 @@ export default class GroupStore extends EventEmitter {
|
|||||||
|
|
||||||
constructor(matrixClient, groupId) {
|
constructor(matrixClient, groupId) {
|
||||||
super();
|
super();
|
||||||
|
if (!groupId) {
|
||||||
|
throw new Error('GroupStore needs a valid groupId to be created');
|
||||||
|
}
|
||||||
this.groupId = groupId;
|
this.groupId = groupId;
|
||||||
this._matrixClient = matrixClient;
|
this._matrixClient = matrixClient;
|
||||||
this._summary = {};
|
this._summary = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user