mezon-js-protobuf 1.8.80 → 1.8.82
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 +134 -36
- package/dist/mezon-js-protobuf/api/api.d.ts +52 -32
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +117 -117
- package/dist/mezon-js-protobuf/utils.d.ts +1 -2
- package/dist/mezon-js-protobuf.cjs.js +331 -24
- package/dist/mezon-js-protobuf.esm.mjs +331 -24
- package/package.json +1 -1
- package/rtapi/realtime.ts +9 -9
- package/utils.ts +1 -9
|
@@ -3,5 +3,4 @@ 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 decodeNotificationFcm(data: any): tsproto.
|
|
7
|
-
export declare function decodeNotificationContent(data: any): string;
|
|
6
|
+
export declare function decodeNotificationFcm(data: any): tsproto.DirectFcmProto;
|
|
@@ -2267,7 +2267,6 @@ __export(mezon_js_protobuf_exports, {
|
|
|
2267
2267
|
WebSocketAdapterPb: () => WebSocketAdapterPb,
|
|
2268
2268
|
decodeAttachments: () => decodeAttachments,
|
|
2269
2269
|
decodeMentions: () => decodeMentions,
|
|
2270
|
-
decodeNotificationContent: () => decodeNotificationContent,
|
|
2271
2270
|
decodeNotificationFcm: () => decodeNotificationFcm,
|
|
2272
2271
|
decodeReactions: () => decodeReactions,
|
|
2273
2272
|
decodeRefs: () => decodeRefs
|
|
@@ -2865,7 +2864,7 @@ var ChannelMessage = {
|
|
|
2865
2864
|
}
|
|
2866
2865
|
};
|
|
2867
2866
|
function createBaseMessageMention() {
|
|
2868
|
-
return { id: "", user_id: "", username: "", role_id: "", rolename: "",
|
|
2867
|
+
return { id: "", user_id: "", username: "", role_id: "", rolename: "", create_time_seconds: 0, s: 0, e: 0 };
|
|
2869
2868
|
}
|
|
2870
2869
|
var MessageMention = {
|
|
2871
2870
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
@@ -2884,8 +2883,8 @@ var MessageMention = {
|
|
|
2884
2883
|
if (message.rolename !== "") {
|
|
2885
2884
|
writer.uint32(42).string(message.rolename);
|
|
2886
2885
|
}
|
|
2887
|
-
if (message.
|
|
2888
|
-
writer.uint32(48).uint32(message.
|
|
2886
|
+
if (message.create_time_seconds !== 0) {
|
|
2887
|
+
writer.uint32(48).uint32(message.create_time_seconds);
|
|
2889
2888
|
}
|
|
2890
2889
|
if (message.s !== 0) {
|
|
2891
2890
|
writer.uint32(56).int32(message.s);
|
|
@@ -2936,7 +2935,7 @@ var MessageMention = {
|
|
|
2936
2935
|
if (tag !== 48) {
|
|
2937
2936
|
break;
|
|
2938
2937
|
}
|
|
2939
|
-
message.
|
|
2938
|
+
message.create_time_seconds = reader.uint32();
|
|
2940
2939
|
continue;
|
|
2941
2940
|
case 7:
|
|
2942
2941
|
if (tag !== 56) {
|
|
@@ -2965,7 +2964,7 @@ var MessageMention = {
|
|
|
2965
2964
|
username: isSet2(object.username) ? globalThis.String(object.username) : "",
|
|
2966
2965
|
role_id: isSet2(object.role_id) ? globalThis.String(object.role_id) : "",
|
|
2967
2966
|
rolename: isSet2(object.rolename) ? globalThis.String(object.rolename) : "",
|
|
2968
|
-
|
|
2967
|
+
create_time_seconds: isSet2(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
2969
2968
|
s: isSet2(object.s) ? globalThis.Number(object.s) : 0,
|
|
2970
2969
|
e: isSet2(object.e) ? globalThis.Number(object.e) : 0
|
|
2971
2970
|
};
|
|
@@ -2987,8 +2986,8 @@ var MessageMention = {
|
|
|
2987
2986
|
if (message.rolename !== "") {
|
|
2988
2987
|
obj.rolename = message.rolename;
|
|
2989
2988
|
}
|
|
2990
|
-
if (message.
|
|
2991
|
-
obj.
|
|
2989
|
+
if (message.create_time_seconds !== 0) {
|
|
2990
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
2992
2991
|
}
|
|
2993
2992
|
if (message.s !== 0) {
|
|
2994
2993
|
obj.s = Math.round(message.s);
|
|
@@ -3009,7 +3008,7 @@ var MessageMention = {
|
|
|
3009
3008
|
message.username = (_c = object.username) != null ? _c : "";
|
|
3010
3009
|
message.role_id = (_d = object.role_id) != null ? _d : "";
|
|
3011
3010
|
message.rolename = (_e = object.rolename) != null ? _e : "";
|
|
3012
|
-
message.
|
|
3011
|
+
message.create_time_seconds = (_f = object.create_time_seconds) != null ? _f : 0;
|
|
3013
3012
|
message.s = (_g = object.s) != null ? _g : 0;
|
|
3014
3013
|
message.e = (_h = object.e) != null ? _h : 0;
|
|
3015
3014
|
return message;
|
|
@@ -14162,6 +14161,320 @@ var SearchThreadRequest = {
|
|
|
14162
14161
|
return message;
|
|
14163
14162
|
}
|
|
14164
14163
|
};
|
|
14164
|
+
function createBaseDirectFcmProto() {
|
|
14165
|
+
return {
|
|
14166
|
+
title: "",
|
|
14167
|
+
link: "",
|
|
14168
|
+
content: "",
|
|
14169
|
+
channel_id: "",
|
|
14170
|
+
sender_id: "",
|
|
14171
|
+
avatar: "",
|
|
14172
|
+
clan_id: "",
|
|
14173
|
+
attachment_link: "",
|
|
14174
|
+
display_name: "",
|
|
14175
|
+
create_time_seconds: 0,
|
|
14176
|
+
update_time_seconds: 0,
|
|
14177
|
+
username: "",
|
|
14178
|
+
mention_ids: [],
|
|
14179
|
+
position_s: [],
|
|
14180
|
+
position_e: [],
|
|
14181
|
+
attachment_type: "",
|
|
14182
|
+
has_more_attachment: false
|
|
14183
|
+
};
|
|
14184
|
+
}
|
|
14185
|
+
var DirectFcmProto = {
|
|
14186
|
+
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
14187
|
+
if (message.title !== "") {
|
|
14188
|
+
writer.uint32(10).string(message.title);
|
|
14189
|
+
}
|
|
14190
|
+
if (message.link !== "") {
|
|
14191
|
+
writer.uint32(18).string(message.link);
|
|
14192
|
+
}
|
|
14193
|
+
if (message.content !== "") {
|
|
14194
|
+
writer.uint32(26).string(message.content);
|
|
14195
|
+
}
|
|
14196
|
+
if (message.channel_id !== "") {
|
|
14197
|
+
writer.uint32(34).string(message.channel_id);
|
|
14198
|
+
}
|
|
14199
|
+
if (message.sender_id !== "") {
|
|
14200
|
+
writer.uint32(42).string(message.sender_id);
|
|
14201
|
+
}
|
|
14202
|
+
if (message.avatar !== "") {
|
|
14203
|
+
writer.uint32(50).string(message.avatar);
|
|
14204
|
+
}
|
|
14205
|
+
if (message.clan_id !== "") {
|
|
14206
|
+
writer.uint32(58).string(message.clan_id);
|
|
14207
|
+
}
|
|
14208
|
+
if (message.attachment_link !== "") {
|
|
14209
|
+
writer.uint32(66).string(message.attachment_link);
|
|
14210
|
+
}
|
|
14211
|
+
if (message.display_name !== "") {
|
|
14212
|
+
writer.uint32(74).string(message.display_name);
|
|
14213
|
+
}
|
|
14214
|
+
if (message.create_time_seconds !== 0) {
|
|
14215
|
+
writer.uint32(80).int32(message.create_time_seconds);
|
|
14216
|
+
}
|
|
14217
|
+
if (message.update_time_seconds !== 0) {
|
|
14218
|
+
writer.uint32(88).int32(message.update_time_seconds);
|
|
14219
|
+
}
|
|
14220
|
+
if (message.username !== "") {
|
|
14221
|
+
writer.uint32(98).string(message.username);
|
|
14222
|
+
}
|
|
14223
|
+
for (const v of message.mention_ids) {
|
|
14224
|
+
writer.uint32(106).string(v);
|
|
14225
|
+
}
|
|
14226
|
+
writer.uint32(114).fork();
|
|
14227
|
+
for (const v of message.position_s) {
|
|
14228
|
+
writer.int32(v);
|
|
14229
|
+
}
|
|
14230
|
+
writer.ldelim();
|
|
14231
|
+
writer.uint32(122).fork();
|
|
14232
|
+
for (const v of message.position_e) {
|
|
14233
|
+
writer.int32(v);
|
|
14234
|
+
}
|
|
14235
|
+
writer.ldelim();
|
|
14236
|
+
if (message.attachment_type !== "") {
|
|
14237
|
+
writer.uint32(130).string(message.attachment_type);
|
|
14238
|
+
}
|
|
14239
|
+
if (message.has_more_attachment !== false) {
|
|
14240
|
+
writer.uint32(136).bool(message.has_more_attachment);
|
|
14241
|
+
}
|
|
14242
|
+
return writer;
|
|
14243
|
+
},
|
|
14244
|
+
decode(input, length) {
|
|
14245
|
+
const reader = input instanceof import_minimal3.default.Reader ? input : import_minimal3.default.Reader.create(input);
|
|
14246
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
14247
|
+
const message = createBaseDirectFcmProto();
|
|
14248
|
+
while (reader.pos < end) {
|
|
14249
|
+
const tag = reader.uint32();
|
|
14250
|
+
switch (tag >>> 3) {
|
|
14251
|
+
case 1:
|
|
14252
|
+
if (tag !== 10) {
|
|
14253
|
+
break;
|
|
14254
|
+
}
|
|
14255
|
+
message.title = reader.string();
|
|
14256
|
+
continue;
|
|
14257
|
+
case 2:
|
|
14258
|
+
if (tag !== 18) {
|
|
14259
|
+
break;
|
|
14260
|
+
}
|
|
14261
|
+
message.link = reader.string();
|
|
14262
|
+
continue;
|
|
14263
|
+
case 3:
|
|
14264
|
+
if (tag !== 26) {
|
|
14265
|
+
break;
|
|
14266
|
+
}
|
|
14267
|
+
message.content = reader.string();
|
|
14268
|
+
continue;
|
|
14269
|
+
case 4:
|
|
14270
|
+
if (tag !== 34) {
|
|
14271
|
+
break;
|
|
14272
|
+
}
|
|
14273
|
+
message.channel_id = reader.string();
|
|
14274
|
+
continue;
|
|
14275
|
+
case 5:
|
|
14276
|
+
if (tag !== 42) {
|
|
14277
|
+
break;
|
|
14278
|
+
}
|
|
14279
|
+
message.sender_id = reader.string();
|
|
14280
|
+
continue;
|
|
14281
|
+
case 6:
|
|
14282
|
+
if (tag !== 50) {
|
|
14283
|
+
break;
|
|
14284
|
+
}
|
|
14285
|
+
message.avatar = reader.string();
|
|
14286
|
+
continue;
|
|
14287
|
+
case 7:
|
|
14288
|
+
if (tag !== 58) {
|
|
14289
|
+
break;
|
|
14290
|
+
}
|
|
14291
|
+
message.clan_id = reader.string();
|
|
14292
|
+
continue;
|
|
14293
|
+
case 8:
|
|
14294
|
+
if (tag !== 66) {
|
|
14295
|
+
break;
|
|
14296
|
+
}
|
|
14297
|
+
message.attachment_link = reader.string();
|
|
14298
|
+
continue;
|
|
14299
|
+
case 9:
|
|
14300
|
+
if (tag !== 74) {
|
|
14301
|
+
break;
|
|
14302
|
+
}
|
|
14303
|
+
message.display_name = reader.string();
|
|
14304
|
+
continue;
|
|
14305
|
+
case 10:
|
|
14306
|
+
if (tag !== 80) {
|
|
14307
|
+
break;
|
|
14308
|
+
}
|
|
14309
|
+
message.create_time_seconds = reader.int32();
|
|
14310
|
+
continue;
|
|
14311
|
+
case 11:
|
|
14312
|
+
if (tag !== 88) {
|
|
14313
|
+
break;
|
|
14314
|
+
}
|
|
14315
|
+
message.update_time_seconds = reader.int32();
|
|
14316
|
+
continue;
|
|
14317
|
+
case 12:
|
|
14318
|
+
if (tag !== 98) {
|
|
14319
|
+
break;
|
|
14320
|
+
}
|
|
14321
|
+
message.username = reader.string();
|
|
14322
|
+
continue;
|
|
14323
|
+
case 13:
|
|
14324
|
+
if (tag !== 106) {
|
|
14325
|
+
break;
|
|
14326
|
+
}
|
|
14327
|
+
message.mention_ids.push(reader.string());
|
|
14328
|
+
continue;
|
|
14329
|
+
case 14:
|
|
14330
|
+
if (tag === 112) {
|
|
14331
|
+
message.position_s.push(reader.int32());
|
|
14332
|
+
continue;
|
|
14333
|
+
}
|
|
14334
|
+
if (tag === 114) {
|
|
14335
|
+
const end2 = reader.uint32() + reader.pos;
|
|
14336
|
+
while (reader.pos < end2) {
|
|
14337
|
+
message.position_s.push(reader.int32());
|
|
14338
|
+
}
|
|
14339
|
+
continue;
|
|
14340
|
+
}
|
|
14341
|
+
break;
|
|
14342
|
+
case 15:
|
|
14343
|
+
if (tag === 120) {
|
|
14344
|
+
message.position_e.push(reader.int32());
|
|
14345
|
+
continue;
|
|
14346
|
+
}
|
|
14347
|
+
if (tag === 122) {
|
|
14348
|
+
const end2 = reader.uint32() + reader.pos;
|
|
14349
|
+
while (reader.pos < end2) {
|
|
14350
|
+
message.position_e.push(reader.int32());
|
|
14351
|
+
}
|
|
14352
|
+
continue;
|
|
14353
|
+
}
|
|
14354
|
+
break;
|
|
14355
|
+
case 16:
|
|
14356
|
+
if (tag !== 130) {
|
|
14357
|
+
break;
|
|
14358
|
+
}
|
|
14359
|
+
message.attachment_type = reader.string();
|
|
14360
|
+
continue;
|
|
14361
|
+
case 17:
|
|
14362
|
+
if (tag !== 136) {
|
|
14363
|
+
break;
|
|
14364
|
+
}
|
|
14365
|
+
message.has_more_attachment = reader.bool();
|
|
14366
|
+
continue;
|
|
14367
|
+
}
|
|
14368
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14369
|
+
break;
|
|
14370
|
+
}
|
|
14371
|
+
reader.skipType(tag & 7);
|
|
14372
|
+
}
|
|
14373
|
+
return message;
|
|
14374
|
+
},
|
|
14375
|
+
fromJSON(object) {
|
|
14376
|
+
return {
|
|
14377
|
+
title: isSet2(object.title) ? globalThis.String(object.title) : "",
|
|
14378
|
+
link: isSet2(object.link) ? globalThis.String(object.link) : "",
|
|
14379
|
+
content: isSet2(object.content) ? globalThis.String(object.content) : "",
|
|
14380
|
+
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
14381
|
+
sender_id: isSet2(object.sender_id) ? globalThis.String(object.sender_id) : "",
|
|
14382
|
+
avatar: isSet2(object.avatar) ? globalThis.String(object.avatar) : "",
|
|
14383
|
+
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
14384
|
+
attachment_link: isSet2(object.attachment_link) ? globalThis.String(object.attachment_link) : "",
|
|
14385
|
+
display_name: isSet2(object.display_name) ? globalThis.String(object.display_name) : "",
|
|
14386
|
+
create_time_seconds: isSet2(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
14387
|
+
update_time_seconds: isSet2(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
14388
|
+
username: isSet2(object.username) ? globalThis.String(object.username) : "",
|
|
14389
|
+
mention_ids: globalThis.Array.isArray(object == null ? void 0 : object.mention_ids) ? object.mention_ids.map((e) => globalThis.String(e)) : [],
|
|
14390
|
+
position_s: globalThis.Array.isArray(object == null ? void 0 : object.position_s) ? object.position_s.map((e) => globalThis.Number(e)) : [],
|
|
14391
|
+
position_e: globalThis.Array.isArray(object == null ? void 0 : object.position_e) ? object.position_e.map((e) => globalThis.Number(e)) : [],
|
|
14392
|
+
attachment_type: isSet2(object.attachment_type) ? globalThis.String(object.attachment_type) : "",
|
|
14393
|
+
has_more_attachment: isSet2(object.has_more_attachment) ? globalThis.Boolean(object.has_more_attachment) : false
|
|
14394
|
+
};
|
|
14395
|
+
},
|
|
14396
|
+
toJSON(message) {
|
|
14397
|
+
var _a, _b, _c;
|
|
14398
|
+
const obj = {};
|
|
14399
|
+
if (message.title !== "") {
|
|
14400
|
+
obj.title = message.title;
|
|
14401
|
+
}
|
|
14402
|
+
if (message.link !== "") {
|
|
14403
|
+
obj.link = message.link;
|
|
14404
|
+
}
|
|
14405
|
+
if (message.content !== "") {
|
|
14406
|
+
obj.content = message.content;
|
|
14407
|
+
}
|
|
14408
|
+
if (message.channel_id !== "") {
|
|
14409
|
+
obj.channel_id = message.channel_id;
|
|
14410
|
+
}
|
|
14411
|
+
if (message.sender_id !== "") {
|
|
14412
|
+
obj.sender_id = message.sender_id;
|
|
14413
|
+
}
|
|
14414
|
+
if (message.avatar !== "") {
|
|
14415
|
+
obj.avatar = message.avatar;
|
|
14416
|
+
}
|
|
14417
|
+
if (message.clan_id !== "") {
|
|
14418
|
+
obj.clan_id = message.clan_id;
|
|
14419
|
+
}
|
|
14420
|
+
if (message.attachment_link !== "") {
|
|
14421
|
+
obj.attachment_link = message.attachment_link;
|
|
14422
|
+
}
|
|
14423
|
+
if (message.display_name !== "") {
|
|
14424
|
+
obj.display_name = message.display_name;
|
|
14425
|
+
}
|
|
14426
|
+
if (message.create_time_seconds !== 0) {
|
|
14427
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
14428
|
+
}
|
|
14429
|
+
if (message.update_time_seconds !== 0) {
|
|
14430
|
+
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
14431
|
+
}
|
|
14432
|
+
if (message.username !== "") {
|
|
14433
|
+
obj.username = message.username;
|
|
14434
|
+
}
|
|
14435
|
+
if ((_a = message.mention_ids) == null ? void 0 : _a.length) {
|
|
14436
|
+
obj.mention_ids = message.mention_ids;
|
|
14437
|
+
}
|
|
14438
|
+
if ((_b = message.position_s) == null ? void 0 : _b.length) {
|
|
14439
|
+
obj.position_s = message.position_s.map((e) => Math.round(e));
|
|
14440
|
+
}
|
|
14441
|
+
if ((_c = message.position_e) == null ? void 0 : _c.length) {
|
|
14442
|
+
obj.position_e = message.position_e.map((e) => Math.round(e));
|
|
14443
|
+
}
|
|
14444
|
+
if (message.attachment_type !== "") {
|
|
14445
|
+
obj.attachment_type = message.attachment_type;
|
|
14446
|
+
}
|
|
14447
|
+
if (message.has_more_attachment !== false) {
|
|
14448
|
+
obj.has_more_attachment = message.has_more_attachment;
|
|
14449
|
+
}
|
|
14450
|
+
return obj;
|
|
14451
|
+
},
|
|
14452
|
+
create(base) {
|
|
14453
|
+
return DirectFcmProto.fromPartial(base != null ? base : {});
|
|
14454
|
+
},
|
|
14455
|
+
fromPartial(object) {
|
|
14456
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
|
14457
|
+
const message = createBaseDirectFcmProto();
|
|
14458
|
+
message.title = (_a = object.title) != null ? _a : "";
|
|
14459
|
+
message.link = (_b = object.link) != null ? _b : "";
|
|
14460
|
+
message.content = (_c = object.content) != null ? _c : "";
|
|
14461
|
+
message.channel_id = (_d = object.channel_id) != null ? _d : "";
|
|
14462
|
+
message.sender_id = (_e = object.sender_id) != null ? _e : "";
|
|
14463
|
+
message.avatar = (_f = object.avatar) != null ? _f : "";
|
|
14464
|
+
message.clan_id = (_g = object.clan_id) != null ? _g : "";
|
|
14465
|
+
message.attachment_link = (_h = object.attachment_link) != null ? _h : "";
|
|
14466
|
+
message.display_name = (_i = object.display_name) != null ? _i : "";
|
|
14467
|
+
message.create_time_seconds = (_j = object.create_time_seconds) != null ? _j : 0;
|
|
14468
|
+
message.update_time_seconds = (_k = object.update_time_seconds) != null ? _k : 0;
|
|
14469
|
+
message.username = (_l = object.username) != null ? _l : "";
|
|
14470
|
+
message.mention_ids = ((_m = object.mention_ids) == null ? void 0 : _m.map((e) => e)) || [];
|
|
14471
|
+
message.position_s = ((_n = object.position_s) == null ? void 0 : _n.map((e) => e)) || [];
|
|
14472
|
+
message.position_e = ((_o = object.position_e) == null ? void 0 : _o.map((e) => e)) || [];
|
|
14473
|
+
message.attachment_type = (_p = object.attachment_type) != null ? _p : "";
|
|
14474
|
+
message.has_more_attachment = (_q = object.has_more_attachment) != null ? _q : false;
|
|
14475
|
+
return message;
|
|
14476
|
+
}
|
|
14477
|
+
};
|
|
14165
14478
|
function createBaseMessageMentionList() {
|
|
14166
14479
|
return { mentions: [] };
|
|
14167
14480
|
}
|
|
@@ -22418,7 +22731,7 @@ function createBaseUserChannelAdded() {
|
|
|
22418
22731
|
status: "",
|
|
22419
22732
|
clan_id: "",
|
|
22420
22733
|
caller: void 0,
|
|
22421
|
-
|
|
22734
|
+
create_time_seconds: 0,
|
|
22422
22735
|
active: 0
|
|
22423
22736
|
};
|
|
22424
22737
|
}
|
|
@@ -22439,8 +22752,8 @@ var UserChannelAdded = {
|
|
|
22439
22752
|
if (message.caller !== void 0) {
|
|
22440
22753
|
UserProfileRedis.encode(message.caller, writer.uint32(42).fork()).ldelim();
|
|
22441
22754
|
}
|
|
22442
|
-
if (message.
|
|
22443
|
-
writer.uint32(48).uint32(message.
|
|
22755
|
+
if (message.create_time_seconds !== 0) {
|
|
22756
|
+
writer.uint32(48).uint32(message.create_time_seconds);
|
|
22444
22757
|
}
|
|
22445
22758
|
if (message.active !== 0) {
|
|
22446
22759
|
writer.uint32(56).int32(message.active);
|
|
@@ -22488,7 +22801,7 @@ var UserChannelAdded = {
|
|
|
22488
22801
|
if (tag !== 48) {
|
|
22489
22802
|
break;
|
|
22490
22803
|
}
|
|
22491
|
-
message.
|
|
22804
|
+
message.create_time_seconds = reader.uint32();
|
|
22492
22805
|
continue;
|
|
22493
22806
|
case 7:
|
|
22494
22807
|
if (tag !== 56) {
|
|
@@ -22511,7 +22824,7 @@ var UserChannelAdded = {
|
|
|
22511
22824
|
status: isSet3(object.status) ? globalThis.String(object.status) : "",
|
|
22512
22825
|
clan_id: isSet3(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
22513
22826
|
caller: isSet3(object.caller) ? UserProfileRedis.fromJSON(object.caller) : void 0,
|
|
22514
|
-
|
|
22827
|
+
create_time_seconds: isSet3(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
22515
22828
|
active: isSet3(object.active) ? globalThis.Number(object.active) : 0
|
|
22516
22829
|
};
|
|
22517
22830
|
},
|
|
@@ -22533,8 +22846,8 @@ var UserChannelAdded = {
|
|
|
22533
22846
|
if (message.caller !== void 0) {
|
|
22534
22847
|
obj.caller = UserProfileRedis.toJSON(message.caller);
|
|
22535
22848
|
}
|
|
22536
|
-
if (message.
|
|
22537
|
-
obj.
|
|
22849
|
+
if (message.create_time_seconds !== 0) {
|
|
22850
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
22538
22851
|
}
|
|
22539
22852
|
if (message.active !== 0) {
|
|
22540
22853
|
obj.active = Math.round(message.active);
|
|
@@ -22552,7 +22865,7 @@ var UserChannelAdded = {
|
|
|
22552
22865
|
message.status = (_b = object.status) != null ? _b : "";
|
|
22553
22866
|
message.clan_id = (_c = object.clan_id) != null ? _c : "";
|
|
22554
22867
|
message.caller = object.caller !== void 0 && object.caller !== null ? UserProfileRedis.fromPartial(object.caller) : void 0;
|
|
22555
|
-
message.
|
|
22868
|
+
message.create_time_seconds = (_d = object.create_time_seconds) != null ? _d : 0;
|
|
22556
22869
|
message.active = (_e = object.active) != null ? _e : 0;
|
|
22557
22870
|
return message;
|
|
22558
22871
|
}
|
|
@@ -26632,12 +26945,6 @@ function decodeReactions(data) {
|
|
|
26632
26945
|
function decodeNotificationFcm(data) {
|
|
26633
26946
|
const buffer = data;
|
|
26634
26947
|
const uintBuffer = new Uint8Array(buffer);
|
|
26635
|
-
const noti =
|
|
26948
|
+
const noti = DirectFcmProto.decode(uintBuffer);
|
|
26636
26949
|
return noti;
|
|
26637
26950
|
}
|
|
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
|
-
}
|