mezon-js-protobuf 1.8.79 → 1.8.81
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.
- package/api/api.ts +162 -68
- package/dist/mezon-js-protobuf/api/api.d.ts +93 -541
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +118 -118
- package/dist/mezon-js-protobuf/utils.d.ts +2 -2
- package/dist/mezon-js-protobuf.cjs.js +35 -270
- package/dist/mezon-js-protobuf.esm.mjs +35 -270
- package/package.json +1 -1
- package/rtapi/realtime.ts +19 -21
- package/utils.ts +9 -9
|
@@ -3,5 +3,5 @@ export declare function decodeMentions(data: any): tsproto.MessageMentionList;
|
|
|
3
3
|
export declare function decodeAttachments(data: any): tsproto.MessageAttachmentList;
|
|
4
4
|
export declare function decodeRefs(data: any): tsproto.MessageRefList;
|
|
5
5
|
export declare function decodeReactions(data: any): tsproto.MessageReactionList;
|
|
6
|
-
export declare function
|
|
7
|
-
export declare function
|
|
6
|
+
export declare function decodeNotificationFcm(data: any): tsproto.Notification;
|
|
7
|
+
export declare function decodeNotificationContent(data: any): string;
|
|
@@ -2266,8 +2266,8 @@ var mezon_js_protobuf_exports = {};
|
|
|
2266
2266
|
__export(mezon_js_protobuf_exports, {
|
|
2267
2267
|
WebSocketAdapterPb: () => WebSocketAdapterPb,
|
|
2268
2268
|
decodeAttachments: () => decodeAttachments,
|
|
2269
|
-
decodeChannelMessageHeader: () => decodeChannelMessageHeader,
|
|
2270
2269
|
decodeMentions: () => decodeMentions,
|
|
2270
|
+
decodeNotificationContent: () => decodeNotificationContent,
|
|
2271
2271
|
decodeNotificationFcm: () => decodeNotificationFcm,
|
|
2272
2272
|
decodeReactions: () => decodeReactions,
|
|
2273
2273
|
decodeRefs: () => decodeRefs
|
|
@@ -2865,7 +2865,7 @@ var ChannelMessage = {
|
|
|
2865
2865
|
}
|
|
2866
2866
|
};
|
|
2867
2867
|
function createBaseMessageMention() {
|
|
2868
|
-
return { id: "", user_id: "", username: "", role_id: "", rolename: "",
|
|
2868
|
+
return { id: "", user_id: "", username: "", role_id: "", rolename: "", create_time_seconds: 0, s: 0, e: 0 };
|
|
2869
2869
|
}
|
|
2870
2870
|
var MessageMention = {
|
|
2871
2871
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
@@ -2884,8 +2884,8 @@ var MessageMention = {
|
|
|
2884
2884
|
if (message.rolename !== "") {
|
|
2885
2885
|
writer.uint32(42).string(message.rolename);
|
|
2886
2886
|
}
|
|
2887
|
-
if (message.
|
|
2888
|
-
writer.uint32(48).uint32(message.
|
|
2887
|
+
if (message.create_time_seconds !== 0) {
|
|
2888
|
+
writer.uint32(48).uint32(message.create_time_seconds);
|
|
2889
2889
|
}
|
|
2890
2890
|
if (message.s !== 0) {
|
|
2891
2891
|
writer.uint32(56).int32(message.s);
|
|
@@ -2936,7 +2936,7 @@ var MessageMention = {
|
|
|
2936
2936
|
if (tag !== 48) {
|
|
2937
2937
|
break;
|
|
2938
2938
|
}
|
|
2939
|
-
message.
|
|
2939
|
+
message.create_time_seconds = reader.uint32();
|
|
2940
2940
|
continue;
|
|
2941
2941
|
case 7:
|
|
2942
2942
|
if (tag !== 56) {
|
|
@@ -2965,7 +2965,7 @@ var MessageMention = {
|
|
|
2965
2965
|
username: isSet2(object.username) ? globalThis.String(object.username) : "",
|
|
2966
2966
|
role_id: isSet2(object.role_id) ? globalThis.String(object.role_id) : "",
|
|
2967
2967
|
rolename: isSet2(object.rolename) ? globalThis.String(object.rolename) : "",
|
|
2968
|
-
|
|
2968
|
+
create_time_seconds: isSet2(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
2969
2969
|
s: isSet2(object.s) ? globalThis.Number(object.s) : 0,
|
|
2970
2970
|
e: isSet2(object.e) ? globalThis.Number(object.e) : 0
|
|
2971
2971
|
};
|
|
@@ -2987,8 +2987,8 @@ var MessageMention = {
|
|
|
2987
2987
|
if (message.rolename !== "") {
|
|
2988
2988
|
obj.rolename = message.rolename;
|
|
2989
2989
|
}
|
|
2990
|
-
if (message.
|
|
2991
|
-
obj.
|
|
2990
|
+
if (message.create_time_seconds !== 0) {
|
|
2991
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
2992
2992
|
}
|
|
2993
2993
|
if (message.s !== 0) {
|
|
2994
2994
|
obj.s = Math.round(message.s);
|
|
@@ -3009,7 +3009,7 @@ var MessageMention = {
|
|
|
3009
3009
|
message.username = (_c = object.username) != null ? _c : "";
|
|
3010
3010
|
message.role_id = (_d = object.role_id) != null ? _d : "";
|
|
3011
3011
|
message.rolename = (_e = object.rolename) != null ? _e : "";
|
|
3012
|
-
message.
|
|
3012
|
+
message.create_time_seconds = (_f = object.create_time_seconds) != null ? _f : 0;
|
|
3013
3013
|
message.s = (_g = object.s) != null ? _g : 0;
|
|
3014
3014
|
message.e = (_h = object.e) != null ? _h : 0;
|
|
3015
3015
|
return message;
|
|
@@ -14162,241 +14162,6 @@ var SearchThreadRequest = {
|
|
|
14162
14162
|
return message;
|
|
14163
14163
|
}
|
|
14164
14164
|
};
|
|
14165
|
-
function createBaseDirectFcmProto() {
|
|
14166
|
-
return {
|
|
14167
|
-
title: "",
|
|
14168
|
-
link: "",
|
|
14169
|
-
content: "",
|
|
14170
|
-
channel_id: "",
|
|
14171
|
-
sender_id: "",
|
|
14172
|
-
avatar: "",
|
|
14173
|
-
clan_id: "",
|
|
14174
|
-
attachments: new Uint8Array(0),
|
|
14175
|
-
display_name: "",
|
|
14176
|
-
create_time_seconds: 0,
|
|
14177
|
-
update_time_seconds: 0,
|
|
14178
|
-
username: "",
|
|
14179
|
-
mentions: new Uint8Array(0)
|
|
14180
|
-
};
|
|
14181
|
-
}
|
|
14182
|
-
var DirectFcmProto = {
|
|
14183
|
-
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
14184
|
-
if (message.title !== "") {
|
|
14185
|
-
writer.uint32(10).string(message.title);
|
|
14186
|
-
}
|
|
14187
|
-
if (message.link !== "") {
|
|
14188
|
-
writer.uint32(18).string(message.link);
|
|
14189
|
-
}
|
|
14190
|
-
if (message.content !== "") {
|
|
14191
|
-
writer.uint32(26).string(message.content);
|
|
14192
|
-
}
|
|
14193
|
-
if (message.channel_id !== "") {
|
|
14194
|
-
writer.uint32(34).string(message.channel_id);
|
|
14195
|
-
}
|
|
14196
|
-
if (message.sender_id !== "") {
|
|
14197
|
-
writer.uint32(42).string(message.sender_id);
|
|
14198
|
-
}
|
|
14199
|
-
if (message.avatar !== "") {
|
|
14200
|
-
writer.uint32(50).string(message.avatar);
|
|
14201
|
-
}
|
|
14202
|
-
if (message.clan_id !== "") {
|
|
14203
|
-
writer.uint32(58).string(message.clan_id);
|
|
14204
|
-
}
|
|
14205
|
-
if (message.attachments.length !== 0) {
|
|
14206
|
-
writer.uint32(66).bytes(message.attachments);
|
|
14207
|
-
}
|
|
14208
|
-
if (message.display_name !== "") {
|
|
14209
|
-
writer.uint32(74).string(message.display_name);
|
|
14210
|
-
}
|
|
14211
|
-
if (message.create_time_seconds !== 0) {
|
|
14212
|
-
writer.uint32(80).int32(message.create_time_seconds);
|
|
14213
|
-
}
|
|
14214
|
-
if (message.update_time_seconds !== 0) {
|
|
14215
|
-
writer.uint32(88).int32(message.update_time_seconds);
|
|
14216
|
-
}
|
|
14217
|
-
if (message.username !== "") {
|
|
14218
|
-
writer.uint32(98).string(message.username);
|
|
14219
|
-
}
|
|
14220
|
-
if (message.mentions.length !== 0) {
|
|
14221
|
-
writer.uint32(106).bytes(message.mentions);
|
|
14222
|
-
}
|
|
14223
|
-
return writer;
|
|
14224
|
-
},
|
|
14225
|
-
decode(input, length) {
|
|
14226
|
-
const reader = input instanceof import_minimal3.default.Reader ? input : import_minimal3.default.Reader.create(input);
|
|
14227
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
14228
|
-
const message = createBaseDirectFcmProto();
|
|
14229
|
-
while (reader.pos < end) {
|
|
14230
|
-
const tag = reader.uint32();
|
|
14231
|
-
switch (tag >>> 3) {
|
|
14232
|
-
case 1:
|
|
14233
|
-
if (tag !== 10) {
|
|
14234
|
-
break;
|
|
14235
|
-
}
|
|
14236
|
-
message.title = reader.string();
|
|
14237
|
-
continue;
|
|
14238
|
-
case 2:
|
|
14239
|
-
if (tag !== 18) {
|
|
14240
|
-
break;
|
|
14241
|
-
}
|
|
14242
|
-
message.link = reader.string();
|
|
14243
|
-
continue;
|
|
14244
|
-
case 3:
|
|
14245
|
-
if (tag !== 26) {
|
|
14246
|
-
break;
|
|
14247
|
-
}
|
|
14248
|
-
message.content = reader.string();
|
|
14249
|
-
continue;
|
|
14250
|
-
case 4:
|
|
14251
|
-
if (tag !== 34) {
|
|
14252
|
-
break;
|
|
14253
|
-
}
|
|
14254
|
-
message.channel_id = reader.string();
|
|
14255
|
-
continue;
|
|
14256
|
-
case 5:
|
|
14257
|
-
if (tag !== 42) {
|
|
14258
|
-
break;
|
|
14259
|
-
}
|
|
14260
|
-
message.sender_id = reader.string();
|
|
14261
|
-
continue;
|
|
14262
|
-
case 6:
|
|
14263
|
-
if (tag !== 50) {
|
|
14264
|
-
break;
|
|
14265
|
-
}
|
|
14266
|
-
message.avatar = reader.string();
|
|
14267
|
-
continue;
|
|
14268
|
-
case 7:
|
|
14269
|
-
if (tag !== 58) {
|
|
14270
|
-
break;
|
|
14271
|
-
}
|
|
14272
|
-
message.clan_id = reader.string();
|
|
14273
|
-
continue;
|
|
14274
|
-
case 8:
|
|
14275
|
-
if (tag !== 66) {
|
|
14276
|
-
break;
|
|
14277
|
-
}
|
|
14278
|
-
message.attachments = reader.bytes();
|
|
14279
|
-
continue;
|
|
14280
|
-
case 9:
|
|
14281
|
-
if (tag !== 74) {
|
|
14282
|
-
break;
|
|
14283
|
-
}
|
|
14284
|
-
message.display_name = reader.string();
|
|
14285
|
-
continue;
|
|
14286
|
-
case 10:
|
|
14287
|
-
if (tag !== 80) {
|
|
14288
|
-
break;
|
|
14289
|
-
}
|
|
14290
|
-
message.create_time_seconds = reader.int32();
|
|
14291
|
-
continue;
|
|
14292
|
-
case 11:
|
|
14293
|
-
if (tag !== 88) {
|
|
14294
|
-
break;
|
|
14295
|
-
}
|
|
14296
|
-
message.update_time_seconds = reader.int32();
|
|
14297
|
-
continue;
|
|
14298
|
-
case 12:
|
|
14299
|
-
if (tag !== 98) {
|
|
14300
|
-
break;
|
|
14301
|
-
}
|
|
14302
|
-
message.username = reader.string();
|
|
14303
|
-
continue;
|
|
14304
|
-
case 13:
|
|
14305
|
-
if (tag !== 106) {
|
|
14306
|
-
break;
|
|
14307
|
-
}
|
|
14308
|
-
message.mentions = reader.bytes();
|
|
14309
|
-
continue;
|
|
14310
|
-
}
|
|
14311
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
14312
|
-
break;
|
|
14313
|
-
}
|
|
14314
|
-
reader.skipType(tag & 7);
|
|
14315
|
-
}
|
|
14316
|
-
return message;
|
|
14317
|
-
},
|
|
14318
|
-
fromJSON(object) {
|
|
14319
|
-
return {
|
|
14320
|
-
title: isSet2(object.title) ? globalThis.String(object.title) : "",
|
|
14321
|
-
link: isSet2(object.link) ? globalThis.String(object.link) : "",
|
|
14322
|
-
content: isSet2(object.content) ? globalThis.String(object.content) : "",
|
|
14323
|
-
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
14324
|
-
sender_id: isSet2(object.sender_id) ? globalThis.String(object.sender_id) : "",
|
|
14325
|
-
avatar: isSet2(object.avatar) ? globalThis.String(object.avatar) : "",
|
|
14326
|
-
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
14327
|
-
attachments: isSet2(object.attachments) ? bytesFromBase64(object.attachments) : new Uint8Array(0),
|
|
14328
|
-
display_name: isSet2(object.display_name) ? globalThis.String(object.display_name) : "",
|
|
14329
|
-
create_time_seconds: isSet2(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
14330
|
-
update_time_seconds: isSet2(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
14331
|
-
username: isSet2(object.username) ? globalThis.String(object.username) : "",
|
|
14332
|
-
mentions: isSet2(object.mentions) ? bytesFromBase64(object.mentions) : new Uint8Array(0)
|
|
14333
|
-
};
|
|
14334
|
-
},
|
|
14335
|
-
toJSON(message) {
|
|
14336
|
-
const obj = {};
|
|
14337
|
-
if (message.title !== "") {
|
|
14338
|
-
obj.title = message.title;
|
|
14339
|
-
}
|
|
14340
|
-
if (message.link !== "") {
|
|
14341
|
-
obj.link = message.link;
|
|
14342
|
-
}
|
|
14343
|
-
if (message.content !== "") {
|
|
14344
|
-
obj.content = message.content;
|
|
14345
|
-
}
|
|
14346
|
-
if (message.channel_id !== "") {
|
|
14347
|
-
obj.channel_id = message.channel_id;
|
|
14348
|
-
}
|
|
14349
|
-
if (message.sender_id !== "") {
|
|
14350
|
-
obj.sender_id = message.sender_id;
|
|
14351
|
-
}
|
|
14352
|
-
if (message.avatar !== "") {
|
|
14353
|
-
obj.avatar = message.avatar;
|
|
14354
|
-
}
|
|
14355
|
-
if (message.clan_id !== "") {
|
|
14356
|
-
obj.clan_id = message.clan_id;
|
|
14357
|
-
}
|
|
14358
|
-
if (message.attachments.length !== 0) {
|
|
14359
|
-
obj.attachments = base64FromBytes(message.attachments);
|
|
14360
|
-
}
|
|
14361
|
-
if (message.display_name !== "") {
|
|
14362
|
-
obj.display_name = message.display_name;
|
|
14363
|
-
}
|
|
14364
|
-
if (message.create_time_seconds !== 0) {
|
|
14365
|
-
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
14366
|
-
}
|
|
14367
|
-
if (message.update_time_seconds !== 0) {
|
|
14368
|
-
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
14369
|
-
}
|
|
14370
|
-
if (message.username !== "") {
|
|
14371
|
-
obj.username = message.username;
|
|
14372
|
-
}
|
|
14373
|
-
if (message.mentions.length !== 0) {
|
|
14374
|
-
obj.mentions = base64FromBytes(message.mentions);
|
|
14375
|
-
}
|
|
14376
|
-
return obj;
|
|
14377
|
-
},
|
|
14378
|
-
create(base) {
|
|
14379
|
-
return DirectFcmProto.fromPartial(base != null ? base : {});
|
|
14380
|
-
},
|
|
14381
|
-
fromPartial(object) {
|
|
14382
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
14383
|
-
const message = createBaseDirectFcmProto();
|
|
14384
|
-
message.title = (_a = object.title) != null ? _a : "";
|
|
14385
|
-
message.link = (_b = object.link) != null ? _b : "";
|
|
14386
|
-
message.content = (_c = object.content) != null ? _c : "";
|
|
14387
|
-
message.channel_id = (_d = object.channel_id) != null ? _d : "";
|
|
14388
|
-
message.sender_id = (_e = object.sender_id) != null ? _e : "";
|
|
14389
|
-
message.avatar = (_f = object.avatar) != null ? _f : "";
|
|
14390
|
-
message.clan_id = (_g = object.clan_id) != null ? _g : "";
|
|
14391
|
-
message.attachments = (_h = object.attachments) != null ? _h : new Uint8Array(0);
|
|
14392
|
-
message.display_name = (_i = object.display_name) != null ? _i : "";
|
|
14393
|
-
message.create_time_seconds = (_j = object.create_time_seconds) != null ? _j : 0;
|
|
14394
|
-
message.update_time_seconds = (_k = object.update_time_seconds) != null ? _k : 0;
|
|
14395
|
-
message.username = (_l = object.username) != null ? _l : "";
|
|
14396
|
-
message.mentions = (_m = object.mentions) != null ? _m : new Uint8Array(0);
|
|
14397
|
-
return message;
|
|
14398
|
-
}
|
|
14399
|
-
};
|
|
14400
14165
|
function createBaseMessageMentionList() {
|
|
14401
14166
|
return { mentions: [] };
|
|
14402
14167
|
}
|
|
@@ -20732,7 +20497,7 @@ function createBaseChannelCreatedEvent() {
|
|
|
20732
20497
|
channel_id: "",
|
|
20733
20498
|
channel_label: "",
|
|
20734
20499
|
channel_private: 0,
|
|
20735
|
-
channel_type:
|
|
20500
|
+
channel_type: 0,
|
|
20736
20501
|
status: 0,
|
|
20737
20502
|
app_id: "",
|
|
20738
20503
|
clan_name: "",
|
|
@@ -20762,8 +20527,8 @@ var ChannelCreatedEvent = {
|
|
|
20762
20527
|
if (message.channel_private !== 0) {
|
|
20763
20528
|
writer.uint32(56).int32(message.channel_private);
|
|
20764
20529
|
}
|
|
20765
|
-
if (message.channel_type !==
|
|
20766
|
-
|
|
20530
|
+
if (message.channel_type !== 0) {
|
|
20531
|
+
writer.uint32(64).int32(message.channel_type);
|
|
20767
20532
|
}
|
|
20768
20533
|
if (message.status !== 0) {
|
|
20769
20534
|
writer.uint32(72).int32(message.status);
|
|
@@ -20829,10 +20594,10 @@ var ChannelCreatedEvent = {
|
|
|
20829
20594
|
message.channel_private = reader.int32();
|
|
20830
20595
|
continue;
|
|
20831
20596
|
case 8:
|
|
20832
|
-
if (tag !==
|
|
20597
|
+
if (tag !== 64) {
|
|
20833
20598
|
break;
|
|
20834
20599
|
}
|
|
20835
|
-
message.channel_type =
|
|
20600
|
+
message.channel_type = reader.int32();
|
|
20836
20601
|
continue;
|
|
20837
20602
|
case 9:
|
|
20838
20603
|
if (tag !== 72) {
|
|
@@ -20875,7 +20640,7 @@ var ChannelCreatedEvent = {
|
|
|
20875
20640
|
channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
20876
20641
|
channel_label: isSet3(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
20877
20642
|
channel_private: isSet3(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
20878
|
-
channel_type: isSet3(object.channel_type) ? Number(object.channel_type) :
|
|
20643
|
+
channel_type: isSet3(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
20879
20644
|
status: isSet3(object.status) ? globalThis.Number(object.status) : 0,
|
|
20880
20645
|
app_id: isSet3(object.app_id) ? globalThis.String(object.app_id) : "",
|
|
20881
20646
|
clan_name: isSet3(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
@@ -20905,8 +20670,8 @@ var ChannelCreatedEvent = {
|
|
|
20905
20670
|
if (message.channel_private !== 0) {
|
|
20906
20671
|
obj.channel_private = Math.round(message.channel_private);
|
|
20907
20672
|
}
|
|
20908
|
-
if (message.channel_type !==
|
|
20909
|
-
obj.channel_type = message.channel_type;
|
|
20673
|
+
if (message.channel_type !== 0) {
|
|
20674
|
+
obj.channel_type = Math.round(message.channel_type);
|
|
20910
20675
|
}
|
|
20911
20676
|
if (message.status !== 0) {
|
|
20912
20677
|
obj.status = Math.round(message.status);
|
|
@@ -20935,7 +20700,7 @@ var ChannelCreatedEvent = {
|
|
|
20935
20700
|
message.channel_id = (_e = object.channel_id) != null ? _e : "";
|
|
20936
20701
|
message.channel_label = (_f = object.channel_label) != null ? _f : "";
|
|
20937
20702
|
message.channel_private = (_g = object.channel_private) != null ? _g : 0;
|
|
20938
|
-
message.channel_type = (_h = object.channel_type) != null ? _h :
|
|
20703
|
+
message.channel_type = (_h = object.channel_type) != null ? _h : 0;
|
|
20939
20704
|
message.status = (_i = object.status) != null ? _i : 0;
|
|
20940
20705
|
message.app_id = (_j = object.app_id) != null ? _j : "";
|
|
20941
20706
|
message.clan_name = (_k = object.clan_name) != null ? _k : "";
|
|
@@ -22653,7 +22418,7 @@ function createBaseUserChannelAdded() {
|
|
|
22653
22418
|
status: "",
|
|
22654
22419
|
clan_id: "",
|
|
22655
22420
|
caller: void 0,
|
|
22656
|
-
|
|
22421
|
+
create_time_seconds: 0,
|
|
22657
22422
|
active: 0
|
|
22658
22423
|
};
|
|
22659
22424
|
}
|
|
@@ -22674,8 +22439,8 @@ var UserChannelAdded = {
|
|
|
22674
22439
|
if (message.caller !== void 0) {
|
|
22675
22440
|
UserProfileRedis.encode(message.caller, writer.uint32(42).fork()).ldelim();
|
|
22676
22441
|
}
|
|
22677
|
-
if (message.
|
|
22678
|
-
writer.uint32(48).uint32(message.
|
|
22442
|
+
if (message.create_time_seconds !== 0) {
|
|
22443
|
+
writer.uint32(48).uint32(message.create_time_seconds);
|
|
22679
22444
|
}
|
|
22680
22445
|
if (message.active !== 0) {
|
|
22681
22446
|
writer.uint32(56).int32(message.active);
|
|
@@ -22723,7 +22488,7 @@ var UserChannelAdded = {
|
|
|
22723
22488
|
if (tag !== 48) {
|
|
22724
22489
|
break;
|
|
22725
22490
|
}
|
|
22726
|
-
message.
|
|
22491
|
+
message.create_time_seconds = reader.uint32();
|
|
22727
22492
|
continue;
|
|
22728
22493
|
case 7:
|
|
22729
22494
|
if (tag !== 56) {
|
|
@@ -22746,7 +22511,7 @@ var UserChannelAdded = {
|
|
|
22746
22511
|
status: isSet3(object.status) ? globalThis.String(object.status) : "",
|
|
22747
22512
|
clan_id: isSet3(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
22748
22513
|
caller: isSet3(object.caller) ? UserProfileRedis.fromJSON(object.caller) : void 0,
|
|
22749
|
-
|
|
22514
|
+
create_time_seconds: isSet3(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
22750
22515
|
active: isSet3(object.active) ? globalThis.Number(object.active) : 0
|
|
22751
22516
|
};
|
|
22752
22517
|
},
|
|
@@ -22768,8 +22533,8 @@ var UserChannelAdded = {
|
|
|
22768
22533
|
if (message.caller !== void 0) {
|
|
22769
22534
|
obj.caller = UserProfileRedis.toJSON(message.caller);
|
|
22770
22535
|
}
|
|
22771
|
-
if (message.
|
|
22772
|
-
obj.
|
|
22536
|
+
if (message.create_time_seconds !== 0) {
|
|
22537
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
22773
22538
|
}
|
|
22774
22539
|
if (message.active !== 0) {
|
|
22775
22540
|
obj.active = Math.round(message.active);
|
|
@@ -22787,7 +22552,7 @@ var UserChannelAdded = {
|
|
|
22787
22552
|
message.status = (_b = object.status) != null ? _b : "";
|
|
22788
22553
|
message.clan_id = (_c = object.clan_id) != null ? _c : "";
|
|
22789
22554
|
message.caller = object.caller !== void 0 && object.caller !== null ? UserProfileRedis.fromPartial(object.caller) : void 0;
|
|
22790
|
-
message.
|
|
22555
|
+
message.create_time_seconds = (_d = object.create_time_seconds) != null ? _d : 0;
|
|
22791
22556
|
message.active = (_e = object.active) != null ? _e : 0;
|
|
22792
22557
|
return message;
|
|
22793
22558
|
}
|
|
@@ -26861,18 +26626,18 @@ function decodeRefs(data) {
|
|
|
26861
26626
|
function decodeReactions(data) {
|
|
26862
26627
|
const buffer = data;
|
|
26863
26628
|
const uintBuffer = new Uint8Array(buffer);
|
|
26864
|
-
const
|
|
26865
|
-
return
|
|
26866
|
-
}
|
|
26867
|
-
function decodeChannelMessageHeader(data) {
|
|
26868
|
-
const buffer = data;
|
|
26869
|
-
const uintBuffer = new Uint8Array(buffer);
|
|
26870
|
-
const noti = ChannelMessageHeader.decode(uintBuffer);
|
|
26871
|
-
return noti;
|
|
26629
|
+
const reactions = MessageReactionList.decode(uintBuffer);
|
|
26630
|
+
return reactions;
|
|
26872
26631
|
}
|
|
26873
26632
|
function decodeNotificationFcm(data) {
|
|
26874
26633
|
const buffer = data;
|
|
26875
26634
|
const uintBuffer = new Uint8Array(buffer);
|
|
26876
|
-
const noti =
|
|
26635
|
+
const noti = Notification.decode(uintBuffer);
|
|
26877
26636
|
return noti;
|
|
26878
26637
|
}
|
|
26638
|
+
function decodeNotificationContent(data) {
|
|
26639
|
+
const uint8Array = new Uint8Array(data);
|
|
26640
|
+
const decoder = new TextDecoder("utf-8");
|
|
26641
|
+
const notiContent = decoder.decode(uint8Array);
|
|
26642
|
+
return notiContent;
|
|
26643
|
+
}
|