CreateChannel: оставить единый актуальный формат, убрать legacy v2/v3

This commit is contained in:
AidarKC
2026-05-13 01:22:07 +03:00
parent e95f65ac78
commit ddeaf82bfd
7 changed files with 51 additions and 183 deletions
+3 -3
View File
@@ -42,7 +42,7 @@ const MSG_SUBTYPE_REACTION_LIKE = 1;
const MSG_SUBTYPE_REACTION_UNLIKE = 2;
const MSG_SUBTYPE_CONNECTION_FOLLOW = 30;
const MSG_SUBTYPE_CONNECTION_UNFOLLOW = 31;
const CREATE_CHANNEL_BODY_VERSION = 3;
const CREATE_CHANNEL_BODY_VERSION = 1;
const CHANNEL_TYPE_STORIES = 0;
const CHANNEL_TYPE_PUBLIC = 1;
const CHANNEL_TYPE_PERSONAL = 100;
@@ -409,7 +409,7 @@ function normalizeChannelDescription(value) {
return text;
}
function makeCreateChannelBodyV3Bytes({
function makeCreateChannelBodyBytes({
lineCode,
prevLineNumber,
prevLineHashHex,
@@ -1080,7 +1080,7 @@ export class AuthService {
msgType: MSG_TYPE_TECH,
msgSubType: MSG_SUBTYPE_TECH_CREATE_CHANNEL,
msgVersion: CREATE_CHANNEL_BODY_VERSION,
bodyBytes: makeCreateChannelBodyV3Bytes({
bodyBytes: makeCreateChannelBodyBytes({
lineCode: 0,
prevLineNumber,
prevLineHashHex,