Compare commits

...

5 Commits

Author SHA1 Message Date
mrbesen 19e7009e49
display extra informations 2022-06-05 00:09:37 +02:00
Eduard Kuzmenko b43b7c4663 2022-05-25 21:20:20 +03:00
Eduard Kuzmenko 70c27d3071 Build 2022-05-25 20:59:52 +03:00
Eduard Kuzmenko d9db8eda97 Build 2022-05-04 16:59:28 +03:00
Eduard Kuzmenko ff7834829c Fix test dc 2022-05-04 16:58:26 +03:00
23 changed files with 324 additions and 82 deletions

4
.env
View File

@ -1,5 +1,5 @@
API_ID=1025907
API_HASH=452b0359b988148995f22ff0f4229750
VERSION=1.4.3
VERSION_FULL=1.4.3 (174)
BUILD=174
VERSION_FULL=1.4.3 (177)
BUILD=177

252
package-lock.json generated
View File

@ -10236,12 +10236,14 @@
"node_modules/fsevents/node_modules/abbrev": {
"version": "1.1.1",
"inBundle": true,
"license": "ISC"
"license": "ISC",
"optional": true
},
"node_modules/fsevents/node_modules/ansi-regex": {
"version": "2.1.1",
"inBundle": true,
"license": "MIT",
"optional": true,
"engines": {
"node": ">=0.10.0"
}
@ -10249,12 +10251,14 @@
"node_modules/fsevents/node_modules/aproba": {
"version": "1.2.0",
"inBundle": true,
"license": "ISC"
"license": "ISC",
"optional": true
},
"node_modules/fsevents/node_modules/are-we-there-yet": {
"version": "1.1.5",
"inBundle": true,
"license": "ISC",
"optional": true,
"dependencies": {
"delegates": "^1.0.0",
"readable-stream": "^2.0.6"
@ -10263,12 +10267,14 @@
"node_modules/fsevents/node_modules/balanced-match": {
"version": "1.0.0",
"inBundle": true,
"license": "MIT"
"license": "MIT",
"optional": true
},
"node_modules/fsevents/node_modules/brace-expansion": {
"version": "1.1.11",
"inBundle": true,
"license": "MIT",
"optional": true,
"dependencies": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
@ -10277,12 +10283,14 @@
"node_modules/fsevents/node_modules/chownr": {
"version": "1.1.4",
"inBundle": true,
"license": "ISC"
"license": "ISC",
"optional": true
},
"node_modules/fsevents/node_modules/code-point-at": {
"version": "1.1.0",
"inBundle": true,
"license": "MIT",
"optional": true,
"engines": {
"node": ">=0.10.0"
}
@ -10290,22 +10298,26 @@
"node_modules/fsevents/node_modules/concat-map": {
"version": "0.0.1",
"inBundle": true,
"license": "MIT"
"license": "MIT",
"optional": true
},
"node_modules/fsevents/node_modules/console-control-strings": {
"version": "1.1.0",
"inBundle": true,
"license": "ISC"
"license": "ISC",
"optional": true
},
"node_modules/fsevents/node_modules/core-util-is": {
"version": "1.0.2",
"inBundle": true,
"license": "MIT"
"license": "MIT",
"optional": true
},
"node_modules/fsevents/node_modules/debug": {
"version": "3.2.6",
"inBundle": true,
"license": "MIT",
"optional": true,
"dependencies": {
"ms": "^2.1.1"
}
@ -10314,6 +10326,7 @@
"version": "0.6.0",
"inBundle": true,
"license": "MIT",
"optional": true,
"engines": {
"node": ">=4.0.0"
}
@ -10321,12 +10334,14 @@
"node_modules/fsevents/node_modules/delegates": {
"version": "1.0.0",
"inBundle": true,
"license": "MIT"
"license": "MIT",
"optional": true
},
"node_modules/fsevents/node_modules/detect-libc": {
"version": "1.0.3",
"inBundle": true,
"license": "Apache-2.0",
"optional": true,
"bin": {
"detect-libc": "bin/detect-libc.js"
},
@ -10338,6 +10353,7 @@
"version": "1.2.7",
"inBundle": true,
"license": "ISC",
"optional": true,
"dependencies": {
"minipass": "^2.6.0"
}
@ -10345,12 +10361,14 @@
"node_modules/fsevents/node_modules/fs.realpath": {
"version": "1.0.0",
"inBundle": true,
"license": "ISC"
"license": "ISC",
"optional": true
},
"node_modules/fsevents/node_modules/gauge": {
"version": "2.7.4",
"inBundle": true,
"license": "ISC",
"optional": true,
"dependencies": {
"aproba": "^1.0.3",
"console-control-strings": "^1.0.0",
@ -10366,6 +10384,7 @@
"version": "7.1.6",
"inBundle": true,
"license": "ISC",
"optional": true,
"dependencies": {
"fs.realpath": "^1.0.0",
"inflight": "^1.0.4",
@ -10384,12 +10403,14 @@
"node_modules/fsevents/node_modules/has-unicode": {
"version": "2.0.1",
"inBundle": true,
"license": "ISC"
"license": "ISC",
"optional": true
},
"node_modules/fsevents/node_modules/iconv-lite": {
"version": "0.4.24",
"inBundle": true,
"license": "MIT",
"optional": true,
"dependencies": {
"safer-buffer": ">= 2.1.2 < 3"
},
@ -10401,6 +10422,7 @@
"version": "3.0.3",
"inBundle": true,
"license": "ISC",
"optional": true,
"dependencies": {
"minimatch": "^3.0.4"
}
@ -10409,6 +10431,7 @@
"version": "1.0.6",
"inBundle": true,
"license": "ISC",
"optional": true,
"dependencies": {
"once": "^1.3.0",
"wrappy": "1"
@ -10417,12 +10440,14 @@
"node_modules/fsevents/node_modules/inherits": {
"version": "2.0.4",
"inBundle": true,
"license": "ISC"
"license": "ISC",
"optional": true
},
"node_modules/fsevents/node_modules/ini": {
"version": "1.3.5",
"inBundle": true,
"license": "ISC",
"optional": true,
"engines": {
"node": "*"
}
@ -10431,6 +10456,7 @@
"version": "1.0.0",
"inBundle": true,
"license": "MIT",
"optional": true,
"dependencies": {
"number-is-nan": "^1.0.0"
},
@ -10441,12 +10467,14 @@
"node_modules/fsevents/node_modules/isarray": {
"version": "1.0.0",
"inBundle": true,
"license": "MIT"
"license": "MIT",
"optional": true
},
"node_modules/fsevents/node_modules/minimatch": {
"version": "3.0.4",
"inBundle": true,
"license": "ISC",
"optional": true,
"dependencies": {
"brace-expansion": "^1.1.7"
},
@ -10457,12 +10485,14 @@
"node_modules/fsevents/node_modules/minimist": {
"version": "1.2.5",
"inBundle": true,
"license": "MIT"
"license": "MIT",
"optional": true
},
"node_modules/fsevents/node_modules/minipass": {
"version": "2.9.0",
"inBundle": true,
"license": "ISC",
"optional": true,
"dependencies": {
"safe-buffer": "^5.1.2",
"yallist": "^3.0.0"
@ -10472,6 +10502,7 @@
"version": "1.3.3",
"inBundle": true,
"license": "MIT",
"optional": true,
"dependencies": {
"minipass": "^2.9.0"
}
@ -10481,6 +10512,7 @@
"deprecated": "Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)",
"inBundle": true,
"license": "MIT",
"optional": true,
"dependencies": {
"minimist": "^1.2.5"
},
@ -10491,12 +10523,14 @@
"node_modules/fsevents/node_modules/ms": {
"version": "2.1.2",
"inBundle": true,
"license": "MIT"
"license": "MIT",
"optional": true
},
"node_modules/fsevents/node_modules/needle": {
"version": "2.3.3",
"inBundle": true,
"license": "MIT",
"optional": true,
"dependencies": {
"debug": "^3.2.6",
"iconv-lite": "^0.4.4",
@ -10513,6 +10547,7 @@
"version": "0.14.0",
"inBundle": true,
"license": "BSD-3-Clause",
"optional": true,
"dependencies": {
"detect-libc": "^1.0.2",
"mkdirp": "^0.5.1",
@ -10533,6 +10568,7 @@
"version": "4.0.3",
"inBundle": true,
"license": "ISC",
"optional": true,
"dependencies": {
"abbrev": "1",
"osenv": "^0.1.4"
@ -10545,6 +10581,7 @@
"version": "1.1.1",
"inBundle": true,
"license": "ISC",
"optional": true,
"dependencies": {
"npm-normalize-package-bin": "^1.0.1"
}
@ -10552,12 +10589,14 @@
"node_modules/fsevents/node_modules/npm-normalize-package-bin": {
"version": "1.0.1",
"inBundle": true,
"license": "ISC"
"license": "ISC",
"optional": true
},
"node_modules/fsevents/node_modules/npm-packlist": {
"version": "1.4.8",
"inBundle": true,
"license": "ISC",
"optional": true,
"dependencies": {
"ignore-walk": "^3.0.1",
"npm-bundled": "^1.0.1",
@ -10568,6 +10607,7 @@
"version": "4.1.2",
"inBundle": true,
"license": "ISC",
"optional": true,
"dependencies": {
"are-we-there-yet": "~1.1.2",
"console-control-strings": "~1.1.0",
@ -10579,6 +10619,7 @@
"version": "1.0.1",
"inBundle": true,
"license": "MIT",
"optional": true,
"engines": {
"node": ">=0.10.0"
}
@ -10587,6 +10628,7 @@
"version": "4.1.1",
"inBundle": true,
"license": "MIT",
"optional": true,
"engines": {
"node": ">=0.10.0"
}
@ -10595,6 +10637,7 @@
"version": "1.4.0",
"inBundle": true,
"license": "ISC",
"optional": true,
"dependencies": {
"wrappy": "1"
}
@ -10603,6 +10646,7 @@
"version": "1.0.2",
"inBundle": true,
"license": "MIT",
"optional": true,
"engines": {
"node": ">=0.10.0"
}
@ -10611,6 +10655,7 @@
"version": "1.0.2",
"inBundle": true,
"license": "MIT",
"optional": true,
"engines": {
"node": ">=0.10.0"
}
@ -10619,6 +10664,7 @@
"version": "0.1.5",
"inBundle": true,
"license": "ISC",
"optional": true,
"dependencies": {
"os-homedir": "^1.0.0",
"os-tmpdir": "^1.0.0"
@ -10628,6 +10674,7 @@
"version": "1.0.1",
"inBundle": true,
"license": "MIT",
"optional": true,
"engines": {
"node": ">=0.10.0"
}
@ -10635,12 +10682,14 @@
"node_modules/fsevents/node_modules/process-nextick-args": {
"version": "2.0.1",
"inBundle": true,
"license": "MIT"
"license": "MIT",
"optional": true
},
"node_modules/fsevents/node_modules/rc": {
"version": "1.2.8",
"inBundle": true,
"license": "(BSD-2-Clause OR MIT OR Apache-2.0)",
"optional": true,
"dependencies": {
"deep-extend": "^0.6.0",
"ini": "~1.3.0",
@ -10655,6 +10704,7 @@
"version": "2.3.7",
"inBundle": true,
"license": "MIT",
"optional": true,
"dependencies": {
"core-util-is": "~1.0.0",
"inherits": "~2.0.3",
@ -10669,6 +10719,7 @@
"version": "2.7.1",
"inBundle": true,
"license": "ISC",
"optional": true,
"dependencies": {
"glob": "^7.1.3"
},
@ -10679,22 +10730,26 @@
"node_modules/fsevents/node_modules/safe-buffer": {
"version": "5.1.2",
"inBundle": true,
"license": "MIT"
"license": "MIT",
"optional": true
},
"node_modules/fsevents/node_modules/safer-buffer": {
"version": "2.1.2",
"inBundle": true,
"license": "MIT"
"license": "MIT",
"optional": true
},
"node_modules/fsevents/node_modules/sax": {
"version": "1.2.4",
"inBundle": true,
"license": "ISC"
"license": "ISC",
"optional": true
},
"node_modules/fsevents/node_modules/semver": {
"version": "5.7.1",
"inBundle": true,
"license": "ISC",
"optional": true,
"bin": {
"semver": "bin/semver"
}
@ -10702,17 +10757,20 @@
"node_modules/fsevents/node_modules/set-blocking": {
"version": "2.0.0",
"inBundle": true,
"license": "ISC"
"license": "ISC",
"optional": true
},
"node_modules/fsevents/node_modules/signal-exit": {
"version": "3.0.2",
"inBundle": true,
"license": "ISC"
"license": "ISC",
"optional": true
},
"node_modules/fsevents/node_modules/string_decoder": {
"version": "1.1.1",
"inBundle": true,
"license": "MIT",
"optional": true,
"dependencies": {
"safe-buffer": "~5.1.0"
}
@ -10721,6 +10779,7 @@
"version": "1.0.2",
"inBundle": true,
"license": "MIT",
"optional": true,
"dependencies": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
@ -10734,6 +10793,7 @@
"version": "3.0.1",
"inBundle": true,
"license": "MIT",
"optional": true,
"dependencies": {
"ansi-regex": "^2.0.0"
},
@ -10745,6 +10805,7 @@
"version": "2.0.1",
"inBundle": true,
"license": "MIT",
"optional": true,
"engines": {
"node": ">=0.10.0"
}
@ -10753,6 +10814,7 @@
"version": "4.4.13",
"inBundle": true,
"license": "ISC",
"optional": true,
"dependencies": {
"chownr": "^1.1.1",
"fs-minipass": "^1.2.5",
@ -10769,12 +10831,14 @@
"node_modules/fsevents/node_modules/util-deprecate": {
"version": "1.0.2",
"inBundle": true,
"license": "MIT"
"license": "MIT",
"optional": true
},
"node_modules/fsevents/node_modules/wide-align": {
"version": "1.1.3",
"inBundle": true,
"license": "ISC",
"optional": true,
"dependencies": {
"string-width": "^1.0.2 || 2"
}
@ -10782,12 +10846,14 @@
"node_modules/fsevents/node_modules/wrappy": {
"version": "1.0.2",
"inBundle": true,
"license": "ISC"
"license": "ISC",
"optional": true
},
"node_modules/fsevents/node_modules/yallist": {
"version": "3.1.1",
"inBundle": true,
"license": "ISC"
"license": "ISC",
"optional": true
},
"node_modules/function-bind": {
"version": "1.1.1",
@ -35276,19 +35342,23 @@
"dependencies": {
"abbrev": {
"version": "1.1.1",
"bundled": true
"bundled": true,
"optional": true
},
"ansi-regex": {
"version": "2.1.1",
"bundled": true
"bundled": true,
"optional": true
},
"aproba": {
"version": "1.2.0",
"bundled": true
"bundled": true,
"optional": true
},
"are-we-there-yet": {
"version": "1.1.5",
"bundled": true,
"optional": true,
"requires": {
"delegates": "^1.0.0",
"readable-stream": "^2.0.6"
@ -35296,11 +35366,13 @@
},
"balanced-match": {
"version": "1.0.0",
"bundled": true
"bundled": true,
"optional": true
},
"brace-expansion": {
"version": "1.1.11",
"bundled": true,
"optional": true,
"requires": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
@ -35308,57 +35380,69 @@
},
"chownr": {
"version": "1.1.4",
"bundled": true
"bundled": true,
"optional": true
},
"code-point-at": {
"version": "1.1.0",
"bundled": true
"bundled": true,
"optional": true
},
"concat-map": {
"version": "0.0.1",
"bundled": true
"bundled": true,
"optional": true
},
"console-control-strings": {
"version": "1.1.0",
"bundled": true
"bundled": true,
"optional": true
},
"core-util-is": {
"version": "1.0.2",
"bundled": true
"bundled": true,
"optional": true
},
"debug": {
"version": "3.2.6",
"bundled": true,
"optional": true,
"requires": {
"ms": "^2.1.1"
}
},
"deep-extend": {
"version": "0.6.0",
"bundled": true
"bundled": true,
"optional": true
},
"delegates": {
"version": "1.0.0",
"bundled": true
"bundled": true,
"optional": true
},
"detect-libc": {
"version": "1.0.3",
"bundled": true
"bundled": true,
"optional": true
},
"fs-minipass": {
"version": "1.2.7",
"bundled": true,
"optional": true,
"requires": {
"minipass": "^2.6.0"
}
},
"fs.realpath": {
"version": "1.0.0",
"bundled": true
"bundled": true,
"optional": true
},
"gauge": {
"version": "2.7.4",
"bundled": true,
"optional": true,
"requires": {
"aproba": "^1.0.3",
"console-control-strings": "^1.0.0",
@ -35373,6 +35457,7 @@
"glob": {
"version": "7.1.6",
"bundled": true,
"optional": true,
"requires": {
"fs.realpath": "^1.0.0",
"inflight": "^1.0.4",
@ -35384,11 +35469,13 @@
},
"has-unicode": {
"version": "2.0.1",
"bundled": true
"bundled": true,
"optional": true
},
"iconv-lite": {
"version": "0.4.24",
"bundled": true,
"optional": true,
"requires": {
"safer-buffer": ">= 2.1.2 < 3"
}
@ -35396,6 +35483,7 @@
"ignore-walk": {
"version": "3.0.3",
"bundled": true,
"optional": true,
"requires": {
"minimatch": "^3.0.4"
}
@ -35403,6 +35491,7 @@
"inflight": {
"version": "1.0.6",
"bundled": true,
"optional": true,
"requires": {
"once": "^1.3.0",
"wrappy": "1"
@ -35410,37 +35499,44 @@
},
"inherits": {
"version": "2.0.4",
"bundled": true
"bundled": true,
"optional": true
},
"ini": {
"version": "1.3.5",
"bundled": true
"bundled": true,
"optional": true
},
"is-fullwidth-code-point": {
"version": "1.0.0",
"bundled": true,
"optional": true,
"requires": {
"number-is-nan": "^1.0.0"
}
},
"isarray": {
"version": "1.0.0",
"bundled": true
"bundled": true,
"optional": true
},
"minimatch": {
"version": "3.0.4",
"bundled": true,
"optional": true,
"requires": {
"brace-expansion": "^1.1.7"
}
},
"minimist": {
"version": "1.2.5",
"bundled": true
"bundled": true,
"optional": true
},
"minipass": {
"version": "2.9.0",
"bundled": true,
"optional": true,
"requires": {
"safe-buffer": "^5.1.2",
"yallist": "^3.0.0"
@ -35449,6 +35545,7 @@
"minizlib": {
"version": "1.3.3",
"bundled": true,
"optional": true,
"requires": {
"minipass": "^2.9.0"
}
@ -35456,17 +35553,20 @@
"mkdirp": {
"version": "0.5.3",
"bundled": true,
"optional": true,
"requires": {
"minimist": "^1.2.5"
}
},
"ms": {
"version": "2.1.2",
"bundled": true
"bundled": true,
"optional": true
},
"needle": {
"version": "2.3.3",
"bundled": true,
"optional": true,
"requires": {
"debug": "^3.2.6",
"iconv-lite": "^0.4.4",
@ -35476,6 +35576,7 @@
"node-pre-gyp": {
"version": "0.14.0",
"bundled": true,
"optional": true,
"requires": {
"detect-libc": "^1.0.2",
"mkdirp": "^0.5.1",
@ -35492,6 +35593,7 @@
"nopt": {
"version": "4.0.3",
"bundled": true,
"optional": true,
"requires": {
"abbrev": "1",
"osenv": "^0.1.4"
@ -35500,17 +35602,20 @@
"npm-bundled": {
"version": "1.1.1",
"bundled": true,
"optional": true,
"requires": {
"npm-normalize-package-bin": "^1.0.1"
}
},
"npm-normalize-package-bin": {
"version": "1.0.1",
"bundled": true
"bundled": true,
"optional": true
},
"npm-packlist": {
"version": "1.4.8",
"bundled": true,
"optional": true,
"requires": {
"ignore-walk": "^3.0.1",
"npm-bundled": "^1.0.1",
@ -35520,6 +35625,7 @@
"npmlog": {
"version": "4.1.2",
"bundled": true,
"optional": true,
"requires": {
"are-we-there-yet": "~1.1.2",
"console-control-strings": "~1.1.0",
@ -35529,30 +35635,36 @@
},
"number-is-nan": {
"version": "1.0.1",
"bundled": true
"bundled": true,
"optional": true
},
"object-assign": {
"version": "4.1.1",
"bundled": true
"bundled": true,
"optional": true
},
"once": {
"version": "1.4.0",
"bundled": true,
"optional": true,
"requires": {
"wrappy": "1"
}
},
"os-homedir": {
"version": "1.0.2",
"bundled": true
"bundled": true,
"optional": true
},
"os-tmpdir": {
"version": "1.0.2",
"bundled": true
"bundled": true,
"optional": true
},
"osenv": {
"version": "0.1.5",
"bundled": true,
"optional": true,
"requires": {
"os-homedir": "^1.0.0",
"os-tmpdir": "^1.0.0"
@ -35560,15 +35672,18 @@
},
"path-is-absolute": {
"version": "1.0.1",
"bundled": true
"bundled": true,
"optional": true
},
"process-nextick-args": {
"version": "2.0.1",
"bundled": true
"bundled": true,
"optional": true
},
"rc": {
"version": "1.2.8",
"bundled": true,
"optional": true,
"requires": {
"deep-extend": "^0.6.0",
"ini": "~1.3.0",
@ -35579,6 +35694,7 @@
"readable-stream": {
"version": "2.3.7",
"bundled": true,
"optional": true,
"requires": {
"core-util-is": "~1.0.0",
"inherits": "~2.0.3",
@ -35592,37 +35708,45 @@
"rimraf": {
"version": "2.7.1",
"bundled": true,
"optional": true,
"requires": {
"glob": "^7.1.3"
}
},
"safe-buffer": {
"version": "5.1.2",
"bundled": true
"bundled": true,
"optional": true
},
"safer-buffer": {
"version": "2.1.2",
"bundled": true
"bundled": true,
"optional": true
},
"sax": {
"version": "1.2.4",
"bundled": true
"bundled": true,
"optional": true
},
"semver": {
"version": "5.7.1",
"bundled": true
"bundled": true,
"optional": true
},
"set-blocking": {
"version": "2.0.0",
"bundled": true
"bundled": true,
"optional": true
},
"signal-exit": {
"version": "3.0.2",
"bundled": true
"bundled": true,
"optional": true
},
"string_decoder": {
"version": "1.1.1",
"bundled": true,
"optional": true,
"requires": {
"safe-buffer": "~5.1.0"
}
@ -35630,6 +35754,7 @@
"string-width": {
"version": "1.0.2",
"bundled": true,
"optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
@ -35639,17 +35764,20 @@
"strip-ansi": {
"version": "3.0.1",
"bundled": true,
"optional": true,
"requires": {
"ansi-regex": "^2.0.0"
}
},
"strip-json-comments": {
"version": "2.0.1",
"bundled": true
"bundled": true,
"optional": true
},
"tar": {
"version": "4.4.13",
"bundled": true,
"optional": true,
"requires": {
"chownr": "^1.1.1",
"fs-minipass": "^1.2.5",
@ -35662,22 +35790,26 @@
},
"util-deprecate": {
"version": "1.0.2",
"bundled": true
"bundled": true,
"optional": true
},
"wide-align": {
"version": "1.1.3",
"bundled": true,
"optional": true,
"requires": {
"string-width": "^1.0.2 || 2"
}
},
"wrappy": {
"version": "1.0.2",
"bundled": true
"bundled": true,
"optional": true
},
"yallist": {
"version": "3.1.1",
"bundled": true
"bundled": true,
"optional": true
}
}
},

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
1.4.3 (174)
1.4.3 (177)

View File

@ -110,6 +110,10 @@ const IGNORE_ACTIONS: Set<Message.messageService['action']['_']> = new Set([
const SERVICE_AS_REGULAR: Set<Message.messageService['action']['_']> = new Set();
function Decodeuint8arr(uint8array: Uint8Array) : string {
return new TextDecoder("utf-8").decode(uint8array);
}
if(IS_CALL_SUPPORTED) {
SERVICE_AS_REGULAR.add('messageActionPhoneCall');
}
@ -2972,7 +2976,7 @@ export default class ChatBubbles {
const messageDiv = document.createElement('div');
messageDiv.classList.add('message');
//messageDiv.innerText = message.message;
let bubbleContainer: HTMLDivElement;
@ -3170,6 +3174,12 @@ export default class ChatBubbles {
chatType: this.chat.type,
message
});
const messageiddiv = document.createElement('span');
messageiddiv.innerText = message.id + ' ' + message.mid;
messageiddiv.classList.add('messageid');
messageDiv.append(messageiddiv);
messageDiv.append(timeSpan);
bubbleContainer.prepend(messageDiv);
//bubble.prepend(timeSpan, messageDiv); // that's bad
@ -3220,6 +3230,7 @@ export default class ChatBubbles {
buttonEl = htmlToDocumentFragment(r).firstElementChild as HTMLAnchorElement;
buttonEl.classList.add('is-link', 'tgico');
buttonEl.title = button.url;
break;
}
@ -3227,6 +3238,7 @@ export default class ChatBubbles {
case 'keyboardButtonSwitchInline': {
buttonEl = document.createElement('button');
buttonEl.classList.add('is-switch-inline', 'tgico');
buttonEl.title = 'SwitchInline: ' + button.query;
attachClickEvent(buttonEl, (e) => {
cancelEvent(e);
@ -3261,6 +3273,10 @@ export default class ChatBubbles {
default: {
buttonEl = document.createElement('button');
if (button._ === 'keyboardButtonCallback') {
buttonEl.title = Decodeuint8arr(button.data);
}
break;
}
}

View File

@ -52,6 +52,7 @@ export default class PeerProfile {
private notifications: Row;
private location: Row;
private link: Row;
private peerid: Row;
private cleaned: boolean;
private setMoreDetailsTimeout: number;
@ -149,6 +150,16 @@ export default class PeerProfile {
}
});
this.peerid = new Row({
title: this.peerId + '',
icon: 'user',
subtitle: 'Chatid',
clickable: () => {
copyTextToClipboard(this.peerId + '');
toast('ChatID Copied');
}
});
this.location = new Row({
title: ' ',
subtitleLangKey: 'ChatLocation',
@ -158,6 +169,7 @@ export default class PeerProfile {
this.section.content.append(
this.phone.container,
this.username.container,
this.peerid.container,
this.location.container,
this.bio.container,
this.link.container
@ -415,6 +427,8 @@ export default class PeerProfile {
}
this.setMoreDetailsTimeout = window.setTimeout(() => this.setMoreDetails(true), 60e3);
setText(peerId + '', this.peerid);
});
}

View File

@ -53,7 +53,7 @@ export default class PeerTitle {
this.element = document.createElement('span');
this.element.classList.add('peer-title');
this.element.setAttribute('dir', 'auto');
this.update(options);
weakMap.set(this.element, this);
}
@ -91,5 +91,10 @@ export default class PeerTitle {
} else {
replaceContent(this.element, i18n(this.onlyFirstName ? 'Saved' : 'SavedMessages'));
}
const chatidspan = document.createElement('span');
chatidspan.innerText = this.peerId + '';
chatidspan.classList.add('chatid');
this.element.appendChild(chatidspan);
}
}

View File

@ -0,0 +1,58 @@
/*
* https://github.com/morethanwords/tweb
* Copyright (C) 2019-2021 Eduard Kuzmenko
* https://github.com/morethanwords/tweb/blob/master/LICENSE
*/
import { PrivacyType } from "../../../../lib/appManagers/appPrivacyManager";
import { SliderSuperTabEventable } from "../../../sliderTab";
import PrivacySection from "../../../privacySection";
import { i18n, LangPackKey } from "../../../../lib/langPack";
import anchorCopy from "../../../../helpers/dom/anchorCopy";
import appUsersManager from "../../../../lib/appManagers/appUsersManager";
export default class AppPrivacyPhoneNumberTab extends SliderSuperTabEventable {
protected init() {
this.header.classList.add('with-border');
this.container.classList.add('privacy-tab', 'privacy-phone-number');
this.setTitle('PrivacyPhone');
const formatted = '+' + appUsersManager.getSelf().phone;
const captionEl = document.createElement('div');
captionEl.append(
i18n('PrivacyPhoneInfo'),
document.createElement('br'),
document.createElement('br'),
i18n('PrivacyPhoneInfo4'),
document.createElement('br'),
anchorCopy({
mePath: formatted
})
);
const phoneSection = new PrivacySection({
tab: this,
title: 'PrivacyPhoneTitle',
inputKey: 'inputPrivacyKeyPhoneNumber',
captions: [captionEl, captionEl, ''],
exceptionTexts: ['PrivacySettingsController.NeverShare', 'PrivacySettingsController.AlwaysShare'],
appendTo: this.scrollable,
onRadioChange: (type) => {
s.setRadio(PrivacyType.Everybody);
s.radioSection.container.classList.toggle('hide', type !== PrivacyType.Nobody);
}
});
const sCaption: LangPackKey = 'PrivacyPhoneInfo3';
const s = new PrivacySection({
tab: this,
title: 'PrivacyPhoneTitle2',
inputKey: 'inputPrivacyKeyAddedByPhone',
captions: [sCaption, sCaption, ''],
noExceptions: true,
skipTypes: [PrivacyType.Nobody]
});
this.scrollable.container.insertBefore(s.radioSection.container, phoneSection.radioSection.container.nextSibling);
}
}

View File

@ -18,3 +18,5 @@ export default function setWorkerProxy() {
const workerProxy = new Proxy(Worker, workerHandler);
Worker = workerProxy;
}
setWorkerProxy();

View File

@ -53,7 +53,7 @@ document.addEventListener('DOMContentLoaded', async() => {
} */
};
setWorkerProxy();
setWorkerProxy;
// const [_, touchSupport, userAgent, _rootScope, _appStateManager, _I18n, __/* , ___ */] = await Promise.all([
// import('./lib/polyfill'),

View File

@ -97,7 +97,7 @@ $bubble-beside-button-width: 38px;
}
}
&.is-highlighted,
&.is-highlighted,
&.is-selected,
/* .bubbles.is-selecting */ & {
&:after {
@ -186,7 +186,7 @@ $bubble-beside-button-width: 38px;
}
//&.is-highlighted:after, &.is-first-unread:before, &.is-selected:after {
&:after,
&:after,
&:before {
width: 200%;
display: block;
@ -2112,6 +2112,15 @@ $bubble-beside-button-width: 38px;
code {
cursor: pointer;
}
.messageid {
color: var(--message-out-status-color);
text-align: left;
}
.messageid::before {
content: '\A';
}
}
// * fix scroll with only 1 bubble

View File

@ -65,6 +65,12 @@ body.is-right-column-shown {
}
}
.chatid {
color: rgba(255, 255, 255, .6);
margin-left: 0.3em;
}
.topbar {
--topbar-height: 3.5rem;
@ -186,7 +192,7 @@ body.is-right-column-shown {
}
}
.peer-title,
.peer-title,
.info {
@include text-overflow();
line-height: var(--line-height);