mezon-js 2.7.10 → 2.7.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -2572,7 +2572,7 @@ var MezonApi = class {
2572
2572
  }
2573
2573
  /** */
2574
2574
  getListPermission(bearerToken, options = {}) {
2575
- const urlPath = "/v2/listpermission";
2575
+ const urlPath = "/v2/permissions";
2576
2576
  const queryParams = /* @__PURE__ */ new Map();
2577
2577
  let bodyJson = "";
2578
2578
  const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
@@ -3592,8 +3592,6 @@ var _DefaultSocket = class _DefaultSocket {
3592
3592
  this.onmessagetyping(message.message_typing_event);
3593
3593
  } else if (message.message_reaction_event) {
3594
3594
  this.onmessagereaction(message.message_reaction_event);
3595
- } else if (message.message_deleted_event) {
3596
- this.onmessagedeleted(message.message_deleted_event);
3597
3595
  } else if (message.channel_presence_event) {
3598
3596
  this.onchannelpresence(message.channel_presence_event);
3599
3597
  } else if (message.party_data) {
@@ -3681,11 +3679,6 @@ var _DefaultSocket = class _DefaultSocket {
3681
3679
  console.log(messagereaction);
3682
3680
  }
3683
3681
  }
3684
- onmessagedeleted(messagedeleted) {
3685
- if (this.verbose && window && window.console) {
3686
- console.log(messagedeleted);
3687
- }
3688
- }
3689
3682
  onchannelmessage(channelMessage) {
3690
3683
  if (this.verbose && window && window.console) {
3691
3684
  console.log(channelMessage);
@@ -3938,12 +3931,6 @@ var _DefaultSocket = class _DefaultSocket {
3938
3931
  return response.message_reaction_event;
3939
3932
  });
3940
3933
  }
3941
- writeMessageDeleted(channel_id, channel_label, mode, message_id) {
3942
- return __async(this, null, function* () {
3943
- const response = yield this.send({ message_deleted_event: { channel_id, channel_label, mode, message_id } });
3944
- return response.message_deleted_event;
3945
- });
3946
- }
3947
3934
  writeMessageTyping(channel_id, channel_label, mode) {
3948
3935
  return __async(this, null, function* () {
3949
3936
  const response = yield this.send({ message_typing_event: { channel_id, channel_label, mode } });