Skip to content

Commit 5abfaa0

Browse files
Merge pull request #4 from getCompass/release_v4.4.0
Release v4.4.0
2 parents 0b8b281 + 054f61f commit 5abfaa0

File tree

70 files changed

+2881
-425
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+2881
-425
lines changed

jitsi_custom/jitsi-meet-source/react-native-sdk/prepare_sdk.js

-256
This file was deleted.

jitsi_custom/jitsi-meet-source/react/features/base/util/loadScript.native.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ export async function loadScript(
3636
const controller = new AbortController();
3737
const signal = controller.signal;
3838

39-
const timer = setTimeout(() => {
40-
controller.abort();
41-
}, timeout);
39+
// const timer = setTimeout(() => {
40+
// controller.abort();
41+
// }, timeout);
42+
const timer = 0;
4243

4344
const response = await fetch(url, { signal });
4445

jitsi_custom/jitsi-meet-source/react/features/base/util/timeoutPromise.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ export function timeoutPromise<T>(
1717
timeout: number
1818
): Promise<T> {
1919
return new Promise((resolve, reject) => {
20-
const timeoutID
21-
= setTimeout(() => reject(new Error('timeout')), timeout);
20+
// const timeoutID
21+
// = setTimeout(() => reject(new Error('timeout')), timeout);
22+
const timeoutID = 0;
2223

2324
promise.then(
2425
/* onFulfilled */ value => {

jitsi_custom/prosody/prosody-plugins-custom/mod_event_sync_component.lua

+2
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,11 @@ function occupant_left(event)
315315
local occupant_data = room_data:on_occupant_leave(occupant_jid, room);
316316
module:log("info", "Occupant left - %s", json.encode(occupant_data));
317317

318+
local stanza = event.stanza;
318319
local payload = {
319320
['event_name'] = 'muc-occupant-left';
320321
['occupant'] = occupant_data;
322+
['stanza'] = stanza;
321323
};
322324
update_with_room_attributes(payload, room);
323325

jitsi_custom/prosody/prosody-plugins-custom/mod_rest_api.lua

+28-5
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ end
1717

1818
function parse(s)
1919
local ans = {}
20-
for k,v in s:gmatch('([^&=?]-)=([^&=?]+)' ) do
21-
ans[ k ] = urldecode(v)
20+
for k, v in s:gmatch('([^&=?]-)=([^&=?]+)') do
21+
ans[k] = urldecode(v)
2222
end
2323
return ans
2424
end
@@ -47,9 +47,17 @@ function create_room(event)
4747
return { status_code = 400; body = "Missing required parameters" }
4848
end
4949

50+
-- проверяем существование комнаты с таким идентификатором
51+
local room = get_room_by_name_and_subdomain(params["room"]);
52+
if room then
53+
54+
module:log("info", "Room with passed id (%s) already exists", params["room"]);
55+
return { status_code = 409; };
56+
end
57+
5058
local muc_domain_prefix = module:get_option_string("muc_mapper_domain_prefix", "conference");
5159
local muc_domain_base = module:get_option_string("muc_mapper_domain_base", module.host);
52-
local muc_domain = module:get_option_string("muc_mapper_domain", muc_domain_prefix.."."..muc_domain_base);
60+
local muc_domain = module:get_option_string("muc_mapper_domain", muc_domain_prefix .. "." .. muc_domain_base);
5361

5462
-- получаем название комнаты, которую намереваемся создать
5563
local room_name = params["room"];
@@ -60,7 +68,7 @@ function create_room(event)
6068
local component = hosts[muc_domain];
6169
if component then
6270
local muc = component.modules.muc;
63-
local room = muc.create_room(room_address);
71+
local room, err = muc.create_room(room_address);
6472
if room then
6573

6674
-- если нужно включить лобби
@@ -71,7 +79,22 @@ function create_room(event)
7179

7280
return { status_code = 200; };
7381
else
74-
return { status_code = 500; };
82+
83+
-- если не удалось создать комнату, то формируем ошибку
84+
local err_str = "Room (id: %s, address: %s) is not created";
85+
local err_str_values = { params["room"], room_address }
86+
if err ~= nil then
87+
88+
err_str = err_str .. ", err: %s"
89+
table.insert(err_str_values, err)
90+
end
91+
92+
-- собираем текст ошибки и логируем
93+
local unpack = table.unpack or unpack
94+
local err_str_formatted = string.format(err_str, unpack(err_str_values))
95+
module:log("warn", err_str_formatted)
96+
97+
return { status_code = 500; body = err_str_formatted };
7598
end
7699
else
77100
return { status_code = 404; };

jitsi_prosody/.dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
README.md
2+
.gitignore

jitsi_prosody/Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM docker.getcompass.ru/service/prosody:stable-9364-1
2+
3+
COPY prosody-custom-plugins/ /prosody-custom-plugins
4+
COPY prosody-plugins/mod_persistent_lobby.lua /prosody-plugins/mod_persistent_lobby.lua

0 commit comments

Comments
 (0)