Remove useChannel

This commit is contained in:
Paul
2021-07-29 18:41:01 +01:00
parent 0571c065bd
commit 411fac2527
28 changed files with 259 additions and 257 deletions

View File

@@ -73,7 +73,7 @@ export class User {
export class Channel {
_id: string;
type: Channels.Channel["channel_type"];
channel_type: Channels.Channel["channel_type"];
// Direct Message
active: Nullable<boolean> = null;
@@ -98,7 +98,7 @@ export class Channel {
constructor(data: Channels.Channel) {
this._id = data._id;
this.type = data.channel_type;
this.channel_type = data.channel_type;
switch (data.channel_type) {
case "DirectMessage": {