dm: прямой обмен сообщениями (DM) + soundtouch + архитектура звонков
- src/dm/: dm_core/dm_crypto/dm_mailbox — прямой обмен сообщениями (DM) - lib/soundtouch-master/: vendored SoundTouch (изменение темпа/высоты аудио) - doc/dm_arch.md, doc/chat_call_arch.md: архитектура DM и звонков - tests: test_dm.c, test_dm_e2e.c - chat: рефакторинг chat_* модулей, member_sync, invite_build - chatgui/chatgui-android: синхронизация с новым API чата - lib/u_async, debug_config, utun_instance: сопутствующие изменения
This commit is contained in:
1 parent
761f64cf76
commit
73fe99b33f
123 files changed
+14095
-1270
No files matched your search
@@ -89,8 +89,11 @@ ShareInviteDialog::ShareInviteDialog(const QString& channelId, DbManager* db, QW
|
||||
});
|
||||
|
||||
/* запросить кандидатов; линк строится после их прихода */
|
||||
QByteArray chBytes = m_channelId.toUtf8();
|
||||
gui_bridge_post_uasync_fn(chat_invite_candidates_trampoline, u_strdup(chBytes.constData()));
|
||||
struct chat_invite_cand_req* creq = (struct chat_invite_cand_req*)u_calloc(1, sizeof(*creq));
|
||||
if (!creq) return;
|
||||
creq->inst = gui_bridge_get_inst();
|
||||
strncpy(creq->ch_id, m_channelId.toUtf8().constData(), sizeof(creq->ch_id) - 1);
|
||||
gui_bridge_post_uasync_fn(chat_invite_candidates_trampoline, creq);
|
||||
}
|
||||
|
||||
ShareInviteDialog::~ShareInviteDialog() {
|
||||
@@ -111,6 +114,7 @@ void ShareInviteDialog::requestLink(uint64_t targetNodeId) {
|
||||
return;
|
||||
}
|
||||
memset(req, 0, sizeof(*req));
|
||||
req->inst = gui_bridge_get_inst();
|
||||
QByteArray chBytes = m_channelId.toUtf8();
|
||||
strncpy(req->ch_id, chBytes.constData(), sizeof(req->ch_id) - 1);
|
||||
req->target_node_id = targetNodeId;
|
||||
|
||||
Reference in new issue
Block a user