This commit is contained in:
Nicolás Serna 2022-08-07 01:14:43 -03:00
parent 36725d9d7e
commit e25c527f0e

View File

@ -726,7 +726,7 @@ export class DMChannel extends BaseChannel implements Model {
this.group = data.recipents.map(r => new User(this.session, r));
}
this.type = ChannelTypes.GroupDm | ChannelTypes.GroupDm;
this.type = data.type as ChannelTypes.GroupDm | ChannelTypes.GroupDm;
if (data.last_message_id) {
this.lastMessageId = data.last_message_id;