generateCallID method added

This commit is contained in:
Mic 2024-08-23 13:52:22 +02:00
parent afa7815ebe
commit 25b84ba8b2

View file

@ -123,6 +123,16 @@ function compareThunderbirdVersions(v1, v2) {
return 0;
}
function generateCallID(length) {
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
let result = '';
const charactersLength = characters.length;
for (let i = 0; i < length; i++) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
}
return result;
}
// The following methods are a modified version derived from https://github.com/ali-raheem/Aify/blob/13ff87583bc520fb80f555ab90a90c5c9df797a7/plugin/content_scripts/compose.js