Commit Graph

16426 Commits

Author SHA1 Message Date
b002bedd7e contrib: update opendht
Change-Id: I69eedb1f85d6a712ef7e8d2cd40b24a4416ca3d7
2024-01-30 14:08:50 -05:00
df4f2e769c fileutils: handle more cases in createFileLink
* handle case where linkFile == target
* hanlde case where linkFile already exists
* keep link if it already points to target

Change-Id: I01bd866332a29847d787cf55c6d1b8925c02b41a
2024-01-30 13:39:01 -05:00
3f088fa824 TransferManager: create link in proper direction
Change-Id: Iee0494e053a2e897ab1849f5deaeb240f9cc5a6f
2024-01-29 19:48:37 -05:00
205904ed4d sip: fix blind transfer
URI was illformed, scheme is intended. Now it works for both
jami and sip accounts

GitLab: #947
Change-Id: Ifc8d88be1cec91428dd8060c3c4e12efc55243f0
2024-01-25 14:13:01 -05:00
9ac6717a90 jamiaccount: init convModule for disabled accounts
Change-Id: Iec90e9d91f933531a96d4e84e6a3ed242caf1422
2024-01-25 08:54:13 -05:00
b122e248f3 conversationrepository: add user device on profile update
If the first interaction from a device in a conversation is a
profile update, the certificate was not added correctly causing
the conversation to be illformed

GitLab: #946
Change-Id: I07f1735639c2dbf89ba2b2e6b7d9c3f57e5823e4
2024-01-19 11:09:28 -05:00
321b485da8 conversationrepo: use commit id when getting uri in convCommitToMap
- refactors uriFromDevice to always use a cache
- clang-formatted; relevant changes are:
  ~conversationrepository:269
  conversationrepository:2421

Change-Id: I938dbb73e7ee70304aa54113cfeb6ca00efa1265
2024-01-18 21:22:23 -05:00
62f8872a41 Conversation: allow copy elision by removing unneeded move
Change-Id: I199352d8f01ded265d7199d1e087e12d71ed50a5
2024-01-17 18:55:04 -05:00
3eca71d705 ConversationRepository: correctly remove member on leave
Change-Id: Ib2e4ffa708c60f49109aa2d4eddb9317ed6a27a3
2024-01-17 18:55:04 -05:00
b3ca79ad9e jamiaccount: do not lock for convModule() in callbacks
GitLab: #944
Change-Id: I6ca19f941cdcb17e68532ba9e826f24c9692e512
2024-01-17 09:44:40 -05:00
059bcc9520 misc: bump dhtnet
git.jami.net/savoirfairelinux/dhtnet/-/issues/19

Change-Id: I25202099b6dc5e07606b2d66a35f966576659ccd
2024-01-15 15:45:23 -05:00
8451a86070 jamiaccount_config: add dhtPublicInCalls
https://git.jami.net/savoirfairelinux/jami-client-qt/-/issues/1519
Change-Id: I728a7fa4b59d949c350949308af1aaf045043338
2024-01-15 13:49:21 -05:00
8fca3ff967 data_transfer: avoid double free on shutdown
GitLab: #943
Change-Id: I6f011053278bd2d3016e390c281f1cf47dfeac79
2024-01-12 09:40:12 -05:00
577564e651 contacts: remove unlocked saveTrustRequests
GitLab: #942
Change-Id: Ifdd50fc15695123f5ec41cb3eabb3a23b79e85dc
2024-01-12 09:40:12 -05:00
387d4eebd6 jamiaccount: protect channelsHandlers_
GitLab: #941
Change-Id: I35f467a242d22c41f1a640ee751478532f988ccb
2024-01-12 09:40:10 -05:00
7fd1bac6c5 test: fix sporadic failures in testCacheRequestFromClient
Change-Id: I5139977d9d1fe49c9773ab3ad4a069ecf67ef637
2024-01-12 09:40:03 -05:00
340e4d0d6d test: fix callback crash
Change-Id: Ia6d5e2c8f211e5206dec214232c929e624c307de
2024-01-12 09:40:03 -05:00
7509382335 jamiaccount: remove too big payload for request
Because the encoded avatar can be greater than 64k, a SIP message
will fail, and the trust request may not be sent.

https: //git.jami.net/savoirfairelinux/jami-client-qt/-/issues/1491
https: //git.jami.net/savoirfairelinux/jami-client-android/-/issues/1537
Change-Id: Ieba2db521a3c7e72890be75d3578f93e496dc968
2024-01-12 09:40:03 -05:00
6665114f65 test: fix sporadic failure in conversation_call
Change-Id: Ib7b61be24c94d79ef426a2c93021188b6dbae040
2024-01-12 09:40:03 -05:00
39114bc503 test: fix ut_conversation
Change-Id: I683893b12f5055993ed12ae8ed89572a8bbf5dad
2024-01-12 09:40:03 -05:00
18f37470eb opendht: add missing asio dependency
Change-Id: I3972fce8310cc4f6b5b6891e369e73197e8260b0
2024-01-09 14:44:24 -05:00
3c3370a6f1 test: add test for keeping reaction on edition
Change-Id: Ibeb67458e76cf413a53120fe3382bf625c7f0de8
2024-01-09 11:55:47 -05:00
204dbd185f conversationrepository: add relative path
GitLab: #937
Change-Id: Ie5cb7dc74b593d4107b5d22f8954f6dcd412c4f6
2024-01-09 11:53:21 -05:00
ba09b11b42 conversation: add new loadConversationUntil and SwarmMessageVect type
GitLab: #831

Change-Id: I8e2aa205629735df043618a87e54ae6a43e6ca3f
2024-01-09 09:42:03 -05:00
8a7a5729d3 misc: remove <std::recursive_mutex> template
Change-Id: I263e3057efb3aef103b3de367d9f2d0e03d5b368
2024-01-08 16:35:04 -05:00
e246fb2e09 contrib: bump dhtnet
Change-Id: Iabfc904e5c48a2fb17c7aa1b5467b36359c8d12c
2024-01-05 08:51:28 -05:00
043e1f3807 conversation: pass linearizedParent to client
loadMessages didn't return any linearizedParent because we were
passing a value to the client before the update.
Also, last message loaded will not have a linearized parent (because the
parent will not be loaded yet), so we need a message updated signal
at the next load.

Change-Id: I01c46f2c34be2131abd731eb745c203e50b95b9a
2024-01-05 08:50:39 -05:00
1fa0fd9f33 conversation_module: fix double unlock crash
if (acc && isOneToOne) the lock was unlocked before
addConversationRequest

Change-Id: I670dadf806ff2c949d8260c83cd9cce42ab1b3d6
2024-01-04 18:28:51 -05:00
1f8fe36dc9 conversation: safe unwrap all optional commit maps
- fixes crash
- clarifies a method name that operates on multiple commits
  convCommitToMap -> convCommitsToMap

Change-Id: Ia37a02fbb8c4ef9d349cf7d4ec4663f4bf7a7416
2024-01-04 11:58:07 -05:00
01bae95686 misc: clang-format src/jamidht/conversation.cpp
Change-Id: I0cf8e6a90c6852db6b65ef9d8e7681a237e67431
2024-01-03 13:25:22 -05:00
2b14e50fe6 test: fix ut_routing_table
setKnownNodes is asynchronous, so the connecting nodes are added
after.

Change-Id: I87d41f65697f6d697c647d891eb254f9c53119ee
2024-01-03 12:52:16 -05:00
dba1509ee2 conversation: set linearized parent for shared commit
Change-Id: I2f49e2dbcd6538f7a124398a9c84a68c7e5d256d
2024-01-03 11:16:12 -05:00
1ada7f7b56 misc: fix ut_migration, ut_revoke, ut_namedirectory
Change-Id: I98e2318c9774cc00af77d3f4bbc1d5149c13edc3
2024-01-03 10:00:10 -05:00
6addbbc160 misc: remove <std::mutex> template
Not needed in c++17

Change-Id: Icf3c7b7781dbf829db2770a750cf10ec8fbeef45
2024-01-03 08:37:46 -05:00
5953313b89 conversation_module: change lock model for convReq
Group operations to avoid race condition. This fix sporadic failures
in testAddOfflineContactThenConnect

Change-Id: Id136c024be3eb3efe0f5430a4b64480f0ef10804
2024-01-03 08:37:16 -05:00
e42e461670 conversation: use validated history to update active calls
Fix ut_conversation_call::testJoinWhileActiveCall

Change-Id: Ib9a887918d1155f444dfcb6796a948beaa29dbf4
2024-01-03 08:26:23 -05:00
40dddee226 misc: update copyright to 2024
Change-Id: I829473d42b2b90f26ed2d93bbde063a21ce0952c
2024-01-02 17:26:29 -05:00
5832bb7ca4 archiver: cleanup
Change-Id: I518fd3541487e432f405ae25d707cfb2713da9fc
2024-01-02 17:21:17 -05:00
c0d0653730 gittransport: cleanup
Change-Id: I5f2d557e9527a3ca01834fee072d257d51eae27f
2024-01-02 17:18:15 -05:00
c1519ba4ec AccountArchive: allow to unlock with raw key instead of password
Change-Id: Ic8b28a32f64862ac2dfae074d06f4eac470ab7e1
2024-01-02 17:18:06 -05:00
b627aa9c57 data_transfer: avoid to crash if directory doesn't exist
This fix testReplayConversation

Change-Id: If760f08c31995a84c8818e1d0f4586865cfec5a9
2024-01-02 18:17:11 -04:00
8065504bb0 tests: fix testAddAcceptOfflineThenConnects
Change-Id: I0e0248d167af0e81cef828ef3c1e3746d974aaed
2024-01-02 12:11:41 -05:00
df91825693 Plugin Update: verify public key if the plugin already install
Change-Id: Ia3b3ec41994117af228a1ef595208fee165b0d3b
2024-01-02 09:40:27 -05:00
dea87f5756 gitserver: shutdown socket if data are not sent correctly
Else, socket can hang for nothing.
Moreover, erasePending is moved for the close to be removed as
soon as possible.
This fix sporadic failures in ut_syncHistory
testSyncCreateAccountExportDeleteReimportOldBackup

Change-Id: If230a780d3db93c6b37269a254e339c873fabe92
2024-01-02 08:34:31 -05:00
984110c47d Init Plugin: fix plugin loading in initialisation
Gitlab: #1480
Change-Id: I75634fde7e818ccc6cae3881d38144275083d4be
2023-12-29 16:42:18 -04:00
e51f649369 media_encoder: set b_ref_mode to 0
GitLab: #842
Change-Id: I136477079a8de8a3eab6146bc4937b48179f70ec
2023-12-29 14:52:24 -05:00
c3e26021a4 video_rtp_session: allow socket transmissions for response packets
Bitrate adjustment (REMB) packets in video calls are sent back on the
same socket pair as the video itself.
Video being enabled or disabled should thusly not stop communication
on these sockets fully as they could still be needed for these packets.

Change-Id: I3789aae44884ad5acfe5e1b014767ff2bf84ba33
2023-12-28 18:29:06 -05:00
2364669831 tests: remove invalid tests
Sending a 1:1 message after a removeContact doesn't create a new
invite anymore

Change-Id: I0faf4a8134bb5d45672637364bd06fbbe6b20661
2023-12-28 16:05:40 -05:00
8468f15927 conversation: move logic of message management in daemon
This heavily changes the API for the client. The goal here is
to move the logic to construct the history to show in the daemon
and not the client. This has several advantages:

1. Logic is common across every platforms, so bugs should not be
platform-specific
2. Client got less logic
3. Signal are simplified, if an edition comes, "MessageUpdated"
will be triggered instead MessageReceived.
4. Some tests are added for linearizing the history.
5. Search on edition is fixed.

Tests got heavily re-written, but the content didn't change (2 tests
are added, the rest is simplification).

GitLab: #831
Change-Id: Ie7c81077067e9e49db1dd396829c9225c0512c16
2023-12-28 16:05:40 -05:00
f83c60f275 data transfer: use path-to-string for Windows support
Also formats + removes unused headers.

Change-Id: Ifb4f2e36243105fd1dcb91b73e7b7b18d8678385
2023-12-28 16:03:13 -05:00