mezon-js-protobuf 1.8.25 → 1.8.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14260,7 +14260,8 @@ function createBaseEnvelope() {
14260
14260
  voice_reaction_send: void 0,
14261
14261
  mark_as_read: void 0,
14262
14262
  list_data_socket: void 0,
14263
- quick_menu_event: void 0
14263
+ quick_menu_event: void 0,
14264
+ un_block_friend: void 0
14264
14265
  };
14265
14266
  }
14266
14267
  var Envelope = {
@@ -14517,6 +14518,9 @@ var Envelope = {
14517
14518
  if (message.quick_menu_event !== void 0) {
14518
14519
  QuickMenuDataEvent.encode(message.quick_menu_event, writer.uint32(674).fork()).ldelim();
14519
14520
  }
14521
+ if (message.un_block_friend !== void 0) {
14522
+ UnblockFriend.encode(message.un_block_friend, writer.uint32(682).fork()).ldelim();
14523
+ }
14520
14524
  return writer;
14521
14525
  },
14522
14526
  decode(input, length) {
@@ -15030,6 +15034,12 @@ var Envelope = {
15030
15034
  }
15031
15035
  message.quick_menu_event = QuickMenuDataEvent.decode(reader, reader.uint32());
15032
15036
  continue;
15037
+ case 85:
15038
+ if (tag !== 682) {
15039
+ break;
15040
+ }
15041
+ message.un_block_friend = UnblockFriend.decode(reader, reader.uint32());
15042
+ continue;
15033
15043
  }
15034
15044
  if ((tag & 7) === 4 || tag === 0) {
15035
15045
  break;
@@ -15123,7 +15133,8 @@ var Envelope = {
15123
15133
  voice_reaction_send: isSet4(object.voice_reaction_send) ? VoiceReactionSend.fromJSON(object.voice_reaction_send) : void 0,
15124
15134
  mark_as_read: isSet4(object.mark_as_read) ? MarkAsRead.fromJSON(object.mark_as_read) : void 0,
15125
15135
  list_data_socket: isSet4(object.list_data_socket) ? ListDataSocket.fromJSON(object.list_data_socket) : void 0,
15126
- quick_menu_event: isSet4(object.quick_menu_event) ? QuickMenuDataEvent.fromJSON(object.quick_menu_event) : void 0
15136
+ quick_menu_event: isSet4(object.quick_menu_event) ? QuickMenuDataEvent.fromJSON(object.quick_menu_event) : void 0,
15137
+ un_block_friend: isSet4(object.un_block_friend) ? UnblockFriend.fromJSON(object.un_block_friend) : void 0
15127
15138
  };
15128
15139
  },
15129
15140
  toJSON(message) {
@@ -15382,6 +15393,9 @@ var Envelope = {
15382
15393
  if (message.quick_menu_event !== void 0) {
15383
15394
  obj.quick_menu_event = QuickMenuDataEvent.toJSON(message.quick_menu_event);
15384
15395
  }
15396
+ if (message.un_block_friend !== void 0) {
15397
+ obj.un_block_friend = UnblockFriend.toJSON(message.un_block_friend);
15398
+ }
15385
15399
  return obj;
15386
15400
  },
15387
15401
  create(base) {
@@ -15474,6 +15488,7 @@ var Envelope = {
15474
15488
  message.mark_as_read = object.mark_as_read !== void 0 && object.mark_as_read !== null ? MarkAsRead.fromPartial(object.mark_as_read) : void 0;
15475
15489
  message.list_data_socket = object.list_data_socket !== void 0 && object.list_data_socket !== null ? ListDataSocket.fromPartial(object.list_data_socket) : void 0;
15476
15490
  message.quick_menu_event = object.quick_menu_event !== void 0 && object.quick_menu_event !== null ? QuickMenuDataEvent.fromPartial(object.quick_menu_event) : void 0;
15491
+ message.un_block_friend = object.un_block_friend !== void 0 && object.un_block_friend !== null ? UnblockFriend.fromPartial(object.un_block_friend) : void 0;
15477
15492
  return message;
15478
15493
  }
15479
15494
  };
@@ -17154,7 +17169,8 @@ function createBaseChannelMessageUpdate() {
17154
17169
  is_public: false,
17155
17170
  hide_editted: false,
17156
17171
  topic_id: "",
17157
- is_update_msg_topic: false
17172
+ is_update_msg_topic: false,
17173
+ old_mentions: ""
17158
17174
  };
17159
17175
  }
17160
17176
  var ChannelMessageUpdate = {
@@ -17192,6 +17208,9 @@ var ChannelMessageUpdate = {
17192
17208
  if (message.is_update_msg_topic !== false) {
17193
17209
  writer.uint32(88).bool(message.is_update_msg_topic);
17194
17210
  }
17211
+ if (message.old_mentions !== "") {
17212
+ writer.uint32(98).string(message.old_mentions);
17213
+ }
17195
17214
  return writer;
17196
17215
  },
17197
17216
  decode(input, length) {
@@ -17267,6 +17286,12 @@ var ChannelMessageUpdate = {
17267
17286
  }
17268
17287
  message.is_update_msg_topic = reader.bool();
17269
17288
  continue;
17289
+ case 12:
17290
+ if (tag !== 98) {
17291
+ break;
17292
+ }
17293
+ message.old_mentions = reader.string();
17294
+ continue;
17270
17295
  }
17271
17296
  if ((tag & 7) === 4 || tag === 0) {
17272
17297
  break;
@@ -17287,7 +17312,8 @@ var ChannelMessageUpdate = {
17287
17312
  is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
17288
17313
  hide_editted: isSet4(object.hide_editted) ? globalThis.Boolean(object.hide_editted) : false,
17289
17314
  topic_id: isSet4(object.topic_id) ? globalThis.String(object.topic_id) : "",
17290
- is_update_msg_topic: isSet4(object.is_update_msg_topic) ? globalThis.Boolean(object.is_update_msg_topic) : false
17315
+ is_update_msg_topic: isSet4(object.is_update_msg_topic) ? globalThis.Boolean(object.is_update_msg_topic) : false,
17316
+ old_mentions: isSet4(object.old_mentions) ? globalThis.String(object.old_mentions) : ""
17291
17317
  };
17292
17318
  },
17293
17319
  toJSON(message) {
@@ -17326,13 +17352,16 @@ var ChannelMessageUpdate = {
17326
17352
  if (message.is_update_msg_topic !== false) {
17327
17353
  obj.is_update_msg_topic = message.is_update_msg_topic;
17328
17354
  }
17355
+ if (message.old_mentions !== "") {
17356
+ obj.old_mentions = message.old_mentions;
17357
+ }
17329
17358
  return obj;
17330
17359
  },
17331
17360
  create(base) {
17332
17361
  return ChannelMessageUpdate.fromPartial(base != null ? base : {});
17333
17362
  },
17334
17363
  fromPartial(object) {
17335
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
17364
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
17336
17365
  const message = createBaseChannelMessageUpdate();
17337
17366
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
17338
17367
  message.channel_id = (_b = object.channel_id) != null ? _b : "";
@@ -17345,6 +17374,7 @@ var ChannelMessageUpdate = {
17345
17374
  message.hide_editted = (_i = object.hide_editted) != null ? _i : false;
17346
17375
  message.topic_id = (_j = object.topic_id) != null ? _j : "";
17347
17376
  message.is_update_msg_topic = (_k = object.is_update_msg_topic) != null ? _k : false;
17377
+ message.old_mentions = (_l = object.old_mentions) != null ? _l : "";
17348
17378
  return message;
17349
17379
  }
17350
17380
  };
@@ -17968,6 +17998,57 @@ var BlockFriend = {
17968
17998
  return message;
17969
17999
  }
17970
18000
  };
18001
+ function createBaseUnblockFriend() {
18002
+ return { user_id: "" };
18003
+ }
18004
+ var UnblockFriend = {
18005
+ encode(message, writer = import_minimal5.default.Writer.create()) {
18006
+ if (message.user_id !== "") {
18007
+ writer.uint32(10).string(message.user_id);
18008
+ }
18009
+ return writer;
18010
+ },
18011
+ decode(input, length) {
18012
+ const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
18013
+ let end = length === void 0 ? reader.len : reader.pos + length;
18014
+ const message = createBaseUnblockFriend();
18015
+ while (reader.pos < end) {
18016
+ const tag = reader.uint32();
18017
+ switch (tag >>> 3) {
18018
+ case 1:
18019
+ if (tag !== 10) {
18020
+ break;
18021
+ }
18022
+ message.user_id = reader.string();
18023
+ continue;
18024
+ }
18025
+ if ((tag & 7) === 4 || tag === 0) {
18026
+ break;
18027
+ }
18028
+ reader.skipType(tag & 7);
18029
+ }
18030
+ return message;
18031
+ },
18032
+ fromJSON(object) {
18033
+ return { user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "" };
18034
+ },
18035
+ toJSON(message) {
18036
+ const obj = {};
18037
+ if (message.user_id !== "") {
18038
+ obj.user_id = message.user_id;
18039
+ }
18040
+ return obj;
18041
+ },
18042
+ create(base) {
18043
+ return UnblockFriend.fromPartial(base != null ? base : {});
18044
+ },
18045
+ fromPartial(object) {
18046
+ var _a;
18047
+ const message = createBaseUnblockFriend();
18048
+ message.user_id = (_a = object.user_id) != null ? _a : "";
18049
+ return message;
18050
+ }
18051
+ };
17971
18052
  function createBasePing() {
17972
18053
  return {};
17973
18054
  }
@@ -14247,7 +14247,8 @@ function createBaseEnvelope() {
14247
14247
  voice_reaction_send: void 0,
14248
14248
  mark_as_read: void 0,
14249
14249
  list_data_socket: void 0,
14250
- quick_menu_event: void 0
14250
+ quick_menu_event: void 0,
14251
+ un_block_friend: void 0
14251
14252
  };
14252
14253
  }
14253
14254
  var Envelope = {
@@ -14504,6 +14505,9 @@ var Envelope = {
14504
14505
  if (message.quick_menu_event !== void 0) {
14505
14506
  QuickMenuDataEvent.encode(message.quick_menu_event, writer.uint32(674).fork()).ldelim();
14506
14507
  }
14508
+ if (message.un_block_friend !== void 0) {
14509
+ UnblockFriend.encode(message.un_block_friend, writer.uint32(682).fork()).ldelim();
14510
+ }
14507
14511
  return writer;
14508
14512
  },
14509
14513
  decode(input, length) {
@@ -15017,6 +15021,12 @@ var Envelope = {
15017
15021
  }
15018
15022
  message.quick_menu_event = QuickMenuDataEvent.decode(reader, reader.uint32());
15019
15023
  continue;
15024
+ case 85:
15025
+ if (tag !== 682) {
15026
+ break;
15027
+ }
15028
+ message.un_block_friend = UnblockFriend.decode(reader, reader.uint32());
15029
+ continue;
15020
15030
  }
15021
15031
  if ((tag & 7) === 4 || tag === 0) {
15022
15032
  break;
@@ -15110,7 +15120,8 @@ var Envelope = {
15110
15120
  voice_reaction_send: isSet4(object.voice_reaction_send) ? VoiceReactionSend.fromJSON(object.voice_reaction_send) : void 0,
15111
15121
  mark_as_read: isSet4(object.mark_as_read) ? MarkAsRead.fromJSON(object.mark_as_read) : void 0,
15112
15122
  list_data_socket: isSet4(object.list_data_socket) ? ListDataSocket.fromJSON(object.list_data_socket) : void 0,
15113
- quick_menu_event: isSet4(object.quick_menu_event) ? QuickMenuDataEvent.fromJSON(object.quick_menu_event) : void 0
15123
+ quick_menu_event: isSet4(object.quick_menu_event) ? QuickMenuDataEvent.fromJSON(object.quick_menu_event) : void 0,
15124
+ un_block_friend: isSet4(object.un_block_friend) ? UnblockFriend.fromJSON(object.un_block_friend) : void 0
15114
15125
  };
15115
15126
  },
15116
15127
  toJSON(message) {
@@ -15369,6 +15380,9 @@ var Envelope = {
15369
15380
  if (message.quick_menu_event !== void 0) {
15370
15381
  obj.quick_menu_event = QuickMenuDataEvent.toJSON(message.quick_menu_event);
15371
15382
  }
15383
+ if (message.un_block_friend !== void 0) {
15384
+ obj.un_block_friend = UnblockFriend.toJSON(message.un_block_friend);
15385
+ }
15372
15386
  return obj;
15373
15387
  },
15374
15388
  create(base) {
@@ -15461,6 +15475,7 @@ var Envelope = {
15461
15475
  message.mark_as_read = object.mark_as_read !== void 0 && object.mark_as_read !== null ? MarkAsRead.fromPartial(object.mark_as_read) : void 0;
15462
15476
  message.list_data_socket = object.list_data_socket !== void 0 && object.list_data_socket !== null ? ListDataSocket.fromPartial(object.list_data_socket) : void 0;
15463
15477
  message.quick_menu_event = object.quick_menu_event !== void 0 && object.quick_menu_event !== null ? QuickMenuDataEvent.fromPartial(object.quick_menu_event) : void 0;
15478
+ message.un_block_friend = object.un_block_friend !== void 0 && object.un_block_friend !== null ? UnblockFriend.fromPartial(object.un_block_friend) : void 0;
15464
15479
  return message;
15465
15480
  }
15466
15481
  };
@@ -17141,7 +17156,8 @@ function createBaseChannelMessageUpdate() {
17141
17156
  is_public: false,
17142
17157
  hide_editted: false,
17143
17158
  topic_id: "",
17144
- is_update_msg_topic: false
17159
+ is_update_msg_topic: false,
17160
+ old_mentions: ""
17145
17161
  };
17146
17162
  }
17147
17163
  var ChannelMessageUpdate = {
@@ -17179,6 +17195,9 @@ var ChannelMessageUpdate = {
17179
17195
  if (message.is_update_msg_topic !== false) {
17180
17196
  writer.uint32(88).bool(message.is_update_msg_topic);
17181
17197
  }
17198
+ if (message.old_mentions !== "") {
17199
+ writer.uint32(98).string(message.old_mentions);
17200
+ }
17182
17201
  return writer;
17183
17202
  },
17184
17203
  decode(input, length) {
@@ -17254,6 +17273,12 @@ var ChannelMessageUpdate = {
17254
17273
  }
17255
17274
  message.is_update_msg_topic = reader.bool();
17256
17275
  continue;
17276
+ case 12:
17277
+ if (tag !== 98) {
17278
+ break;
17279
+ }
17280
+ message.old_mentions = reader.string();
17281
+ continue;
17257
17282
  }
17258
17283
  if ((tag & 7) === 4 || tag === 0) {
17259
17284
  break;
@@ -17274,7 +17299,8 @@ var ChannelMessageUpdate = {
17274
17299
  is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
17275
17300
  hide_editted: isSet4(object.hide_editted) ? globalThis.Boolean(object.hide_editted) : false,
17276
17301
  topic_id: isSet4(object.topic_id) ? globalThis.String(object.topic_id) : "",
17277
- is_update_msg_topic: isSet4(object.is_update_msg_topic) ? globalThis.Boolean(object.is_update_msg_topic) : false
17302
+ is_update_msg_topic: isSet4(object.is_update_msg_topic) ? globalThis.Boolean(object.is_update_msg_topic) : false,
17303
+ old_mentions: isSet4(object.old_mentions) ? globalThis.String(object.old_mentions) : ""
17278
17304
  };
17279
17305
  },
17280
17306
  toJSON(message) {
@@ -17313,13 +17339,16 @@ var ChannelMessageUpdate = {
17313
17339
  if (message.is_update_msg_topic !== false) {
17314
17340
  obj.is_update_msg_topic = message.is_update_msg_topic;
17315
17341
  }
17342
+ if (message.old_mentions !== "") {
17343
+ obj.old_mentions = message.old_mentions;
17344
+ }
17316
17345
  return obj;
17317
17346
  },
17318
17347
  create(base) {
17319
17348
  return ChannelMessageUpdate.fromPartial(base != null ? base : {});
17320
17349
  },
17321
17350
  fromPartial(object) {
17322
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
17351
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
17323
17352
  const message = createBaseChannelMessageUpdate();
17324
17353
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
17325
17354
  message.channel_id = (_b = object.channel_id) != null ? _b : "";
@@ -17332,6 +17361,7 @@ var ChannelMessageUpdate = {
17332
17361
  message.hide_editted = (_i = object.hide_editted) != null ? _i : false;
17333
17362
  message.topic_id = (_j = object.topic_id) != null ? _j : "";
17334
17363
  message.is_update_msg_topic = (_k = object.is_update_msg_topic) != null ? _k : false;
17364
+ message.old_mentions = (_l = object.old_mentions) != null ? _l : "";
17335
17365
  return message;
17336
17366
  }
17337
17367
  };
@@ -17955,6 +17985,57 @@ var BlockFriend = {
17955
17985
  return message;
17956
17986
  }
17957
17987
  };
17988
+ function createBaseUnblockFriend() {
17989
+ return { user_id: "" };
17990
+ }
17991
+ var UnblockFriend = {
17992
+ encode(message, writer = import_minimal5.default.Writer.create()) {
17993
+ if (message.user_id !== "") {
17994
+ writer.uint32(10).string(message.user_id);
17995
+ }
17996
+ return writer;
17997
+ },
17998
+ decode(input, length) {
17999
+ const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
18000
+ let end = length === void 0 ? reader.len : reader.pos + length;
18001
+ const message = createBaseUnblockFriend();
18002
+ while (reader.pos < end) {
18003
+ const tag = reader.uint32();
18004
+ switch (tag >>> 3) {
18005
+ case 1:
18006
+ if (tag !== 10) {
18007
+ break;
18008
+ }
18009
+ message.user_id = reader.string();
18010
+ continue;
18011
+ }
18012
+ if ((tag & 7) === 4 || tag === 0) {
18013
+ break;
18014
+ }
18015
+ reader.skipType(tag & 7);
18016
+ }
18017
+ return message;
18018
+ },
18019
+ fromJSON(object) {
18020
+ return { user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "" };
18021
+ },
18022
+ toJSON(message) {
18023
+ const obj = {};
18024
+ if (message.user_id !== "") {
18025
+ obj.user_id = message.user_id;
18026
+ }
18027
+ return obj;
18028
+ },
18029
+ create(base) {
18030
+ return UnblockFriend.fromPartial(base != null ? base : {});
18031
+ },
18032
+ fromPartial(object) {
18033
+ var _a;
18034
+ const message = createBaseUnblockFriend();
18035
+ message.user_id = (_a = object.user_id) != null ? _a : "";
18036
+ return message;
18037
+ }
18038
+ };
17958
18039
  function createBasePing() {
17959
18040
  return {};
17960
18041
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.8.25",
3
+ "version": "1.8.27",
4
4
  "description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
5
5
  "main": "dist/mezon-js-protobuf.cjs.js",
6
6
  "module": "dist/mezon-js-protobuf.esm.mjs",
package/rtapi/realtime.ts CHANGED
@@ -422,7 +422,11 @@ export interface Envelope {
422
422
  | ListDataSocket
423
423
  | undefined;
424
424
  /** quick menu event */
425
- quick_menu_event?: QuickMenuDataEvent | undefined;
425
+ quick_menu_event?:
426
+ | QuickMenuDataEvent
427
+ | undefined;
428
+ /** unblock friend */
429
+ un_block_friend?: UnblockFriend | undefined;
426
430
  }
427
431
 
428
432
  export interface FollowEvent {
@@ -725,6 +729,8 @@ export interface ChannelMessageUpdate {
725
729
  topic_id: string;
726
730
  /** update message topic */
727
731
  is_update_msg_topic: boolean;
732
+ /** old mentions */
733
+ old_mentions: string;
728
734
  }
729
735
 
730
736
  /** Remove a message previously sent to a realtime channel. */
@@ -874,6 +880,11 @@ export interface BlockFriend {
874
880
  user_id: string;
875
881
  }
876
882
 
883
+ export interface UnblockFriend {
884
+ /** */
885
+ user_id: string;
886
+ }
887
+
877
888
  /** Application-level heartbeat and connection check. */
878
889
  export interface Ping {
879
890
  }
@@ -1740,6 +1751,7 @@ function createBaseEnvelope(): Envelope {
1740
1751
  mark_as_read: undefined,
1741
1752
  list_data_socket: undefined,
1742
1753
  quick_menu_event: undefined,
1754
+ un_block_friend: undefined,
1743
1755
  };
1744
1756
  }
1745
1757
 
@@ -1998,6 +2010,9 @@ export const Envelope = {
1998
2010
  if (message.quick_menu_event !== undefined) {
1999
2011
  QuickMenuDataEvent.encode(message.quick_menu_event, writer.uint32(674).fork()).ldelim();
2000
2012
  }
2013
+ if (message.un_block_friend !== undefined) {
2014
+ UnblockFriend.encode(message.un_block_friend, writer.uint32(682).fork()).ldelim();
2015
+ }
2001
2016
  return writer;
2002
2017
  },
2003
2018
 
@@ -2596,6 +2611,13 @@ export const Envelope = {
2596
2611
 
2597
2612
  message.quick_menu_event = QuickMenuDataEvent.decode(reader, reader.uint32());
2598
2613
  continue;
2614
+ case 85:
2615
+ if (tag !== 682) {
2616
+ break;
2617
+ }
2618
+
2619
+ message.un_block_friend = UnblockFriend.decode(reader, reader.uint32());
2620
+ continue;
2599
2621
  }
2600
2622
  if ((tag & 7) === 4 || tag === 0) {
2601
2623
  break;
@@ -2799,6 +2821,7 @@ export const Envelope = {
2799
2821
  quick_menu_event: isSet(object.quick_menu_event)
2800
2822
  ? QuickMenuDataEvent.fromJSON(object.quick_menu_event)
2801
2823
  : undefined,
2824
+ un_block_friend: isSet(object.un_block_friend) ? UnblockFriend.fromJSON(object.un_block_friend) : undefined,
2802
2825
  };
2803
2826
  },
2804
2827
 
@@ -3058,6 +3081,9 @@ export const Envelope = {
3058
3081
  if (message.quick_menu_event !== undefined) {
3059
3082
  obj.quick_menu_event = QuickMenuDataEvent.toJSON(message.quick_menu_event);
3060
3083
  }
3084
+ if (message.un_block_friend !== undefined) {
3085
+ obj.un_block_friend = UnblockFriend.toJSON(message.un_block_friend);
3086
+ }
3061
3087
  return obj;
3062
3088
  },
3063
3089
 
@@ -3335,6 +3361,9 @@ export const Envelope = {
3335
3361
  message.quick_menu_event = (object.quick_menu_event !== undefined && object.quick_menu_event !== null)
3336
3362
  ? QuickMenuDataEvent.fromPartial(object.quick_menu_event)
3337
3363
  : undefined;
3364
+ message.un_block_friend = (object.un_block_friend !== undefined && object.un_block_friend !== null)
3365
+ ? UnblockFriend.fromPartial(object.un_block_friend)
3366
+ : undefined;
3338
3367
  return message;
3339
3368
  },
3340
3369
  };
@@ -5909,6 +5938,7 @@ function createBaseChannelMessageUpdate(): ChannelMessageUpdate {
5909
5938
  hide_editted: false,
5910
5939
  topic_id: "",
5911
5940
  is_update_msg_topic: false,
5941
+ old_mentions: "",
5912
5942
  };
5913
5943
  }
5914
5944
 
@@ -5947,6 +5977,9 @@ export const ChannelMessageUpdate = {
5947
5977
  if (message.is_update_msg_topic !== false) {
5948
5978
  writer.uint32(88).bool(message.is_update_msg_topic);
5949
5979
  }
5980
+ if (message.old_mentions !== "") {
5981
+ writer.uint32(98).string(message.old_mentions);
5982
+ }
5950
5983
  return writer;
5951
5984
  },
5952
5985
 
@@ -6034,6 +6067,13 @@ export const ChannelMessageUpdate = {
6034
6067
 
6035
6068
  message.is_update_msg_topic = reader.bool();
6036
6069
  continue;
6070
+ case 12:
6071
+ if (tag !== 98) {
6072
+ break;
6073
+ }
6074
+
6075
+ message.old_mentions = reader.string();
6076
+ continue;
6037
6077
  }
6038
6078
  if ((tag & 7) === 4 || tag === 0) {
6039
6079
  break;
@@ -6060,6 +6100,7 @@ export const ChannelMessageUpdate = {
6060
6100
  hide_editted: isSet(object.hide_editted) ? globalThis.Boolean(object.hide_editted) : false,
6061
6101
  topic_id: isSet(object.topic_id) ? globalThis.String(object.topic_id) : "",
6062
6102
  is_update_msg_topic: isSet(object.is_update_msg_topic) ? globalThis.Boolean(object.is_update_msg_topic) : false,
6103
+ old_mentions: isSet(object.old_mentions) ? globalThis.String(object.old_mentions) : "",
6063
6104
  };
6064
6105
  },
6065
6106
 
@@ -6098,6 +6139,9 @@ export const ChannelMessageUpdate = {
6098
6139
  if (message.is_update_msg_topic !== false) {
6099
6140
  obj.is_update_msg_topic = message.is_update_msg_topic;
6100
6141
  }
6142
+ if (message.old_mentions !== "") {
6143
+ obj.old_mentions = message.old_mentions;
6144
+ }
6101
6145
  return obj;
6102
6146
  },
6103
6147
 
@@ -6117,6 +6161,7 @@ export const ChannelMessageUpdate = {
6117
6161
  message.hide_editted = object.hide_editted ?? false;
6118
6162
  message.topic_id = object.topic_id ?? "";
6119
6163
  message.is_update_msg_topic = object.is_update_msg_topic ?? false;
6164
+ message.old_mentions = object.old_mentions ?? "";
6120
6165
  return message;
6121
6166
  },
6122
6167
  };
@@ -6801,6 +6846,63 @@ export const BlockFriend = {
6801
6846
  },
6802
6847
  };
6803
6848
 
6849
+ function createBaseUnblockFriend(): UnblockFriend {
6850
+ return { user_id: "" };
6851
+ }
6852
+
6853
+ export const UnblockFriend = {
6854
+ encode(message: UnblockFriend, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
6855
+ if (message.user_id !== "") {
6856
+ writer.uint32(10).string(message.user_id);
6857
+ }
6858
+ return writer;
6859
+ },
6860
+
6861
+ decode(input: _m0.Reader | Uint8Array, length?: number): UnblockFriend {
6862
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
6863
+ let end = length === undefined ? reader.len : reader.pos + length;
6864
+ const message = createBaseUnblockFriend();
6865
+ while (reader.pos < end) {
6866
+ const tag = reader.uint32();
6867
+ switch (tag >>> 3) {
6868
+ case 1:
6869
+ if (tag !== 10) {
6870
+ break;
6871
+ }
6872
+
6873
+ message.user_id = reader.string();
6874
+ continue;
6875
+ }
6876
+ if ((tag & 7) === 4 || tag === 0) {
6877
+ break;
6878
+ }
6879
+ reader.skipType(tag & 7);
6880
+ }
6881
+ return message;
6882
+ },
6883
+
6884
+ fromJSON(object: any): UnblockFriend {
6885
+ return { user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "" };
6886
+ },
6887
+
6888
+ toJSON(message: UnblockFriend): unknown {
6889
+ const obj: any = {};
6890
+ if (message.user_id !== "") {
6891
+ obj.user_id = message.user_id;
6892
+ }
6893
+ return obj;
6894
+ },
6895
+
6896
+ create<I extends Exact<DeepPartial<UnblockFriend>, I>>(base?: I): UnblockFriend {
6897
+ return UnblockFriend.fromPartial(base ?? ({} as any));
6898
+ },
6899
+ fromPartial<I extends Exact<DeepPartial<UnblockFriend>, I>>(object: I): UnblockFriend {
6900
+ const message = createBaseUnblockFriend();
6901
+ message.user_id = object.user_id ?? "";
6902
+ return message;
6903
+ },
6904
+ };
6905
+
6804
6906
  function createBasePing(): Ping {
6805
6907
  return {};
6806
6908
  }