mezon-js 2.8.62 → 2.8.63

Sign up to get free protection for your applications and to get access to all the features.
@@ -4673,7 +4673,7 @@ var _DefaultSocket = class _DefaultSocket {
4673
4673
  } catch (e2) {
4674
4674
  }
4675
4675
  var e = {
4676
- id: message.id,
4676
+ id: message.id || message.channel_message.message_id,
4677
4677
  avatar: message.channel_message.avatar,
4678
4678
  channel_id: message.channel_message.channel_id,
4679
4679
  mode: message.channel_message.mode,
@@ -4644,7 +4644,7 @@ var _DefaultSocket = class _DefaultSocket {
4644
4644
  } catch (e2) {
4645
4645
  }
4646
4646
  var e = {
4647
- id: message.id,
4647
+ id: message.id || message.channel_message.message_id,
4648
4648
  avatar: message.channel_message.avatar,
4649
4649
  channel_id: message.channel_message.channel_id,
4650
4650
  mode: message.channel_message.mode,
package/dist/socket.d.ts CHANGED
@@ -262,6 +262,7 @@ export interface ChannelUpdatedEvent {
262
262
  channel_type: number;
263
263
  status: number;
264
264
  meeting_code: string;
265
+ is_error: boolean;
265
266
  }
266
267
  export interface ChannelCreatedEvent {
267
268
  clan_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.8.62",
3
+ "version": "2.8.63",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -376,6 +376,8 @@ export interface ChannelUpdatedEvent {
376
376
  status: number;
377
377
  // meeting code
378
378
  meeting_code: string;
379
+ // is error
380
+ is_error: boolean;
379
381
  }
380
382
 
381
383
  export interface ChannelCreatedEvent {
@@ -768,7 +770,7 @@ export interface Socket {
768
770
  unfollowUsers(user_ids : string[]) : Promise<void>;
769
771
 
770
772
  /** Update a chat message on a chat channel in the server. */
771
- updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id : string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean) : Promise<ChannelMessageAck>;
773
+ updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean) : Promise<ChannelMessageAck>;
772
774
 
773
775
  /** Update the status for the current user online. */
774
776
  updateStatus(status? : string) : Promise<void>;
@@ -1040,7 +1042,7 @@ export class DefaultSocket implements Socket {
1040
1042
  //console.log("references is invalid", e);
1041
1043
  }
1042
1044
  var e: ChannelMessage = {
1043
- id: message.id,
1045
+ id: message.id || message.channel_message.message_id,
1044
1046
  avatar: message.channel_message.avatar,
1045
1047
  channel_id: message.channel_message.channel_id,
1046
1048
  mode: message.channel_message.mode,