609 Commits

Author SHA1 Message Date
847d1fdbed update for asio 1.30
Change-Id: Iac5a8f965eb5211f3016946c5f4eee5b34f748f7
2025-07-09 10:04:38 -04:00
a5eee33e40 tests: remove unneeded std::move of temporary
Change-Id: I2deb3d4c64ad764b2dcd8b50018abb766526b5c9
2025-06-23 19:36:21 -04:00
eb9bec5d23 unitTest: fix incorrect check in ut_conference
This patch fixes a logic error in testCreateParticipantsSinks which was
introduced in commit 0757c2cf.

GitLab: #1132
Change-Id: I1c34857f5a309ee34dd976a9d91c3ef1ba938408
2025-06-16 10:22:45 -04:00
3280fa373a fix paramter warning and libgit2 error
Add directives to use git_comit * const for final parameter when calling git_commit_create_buffer function using v.1.8.0, v1.8.1, and v1.8.3

Change-Id: Iffc023b0ae87f14aea15b360d00da76933a81cc4
2025-06-09 10:22:46 -04:00
ace9a0da42 fix various warnings
Change-Id: Ib01f381cb1a1c2f7259269603a47c39e39808494
2025-06-05 17:33:01 -04:00
0757c2cf70 libjami: respect LIBJAMI_FLAG_NO_LOCAL_VIDEO
Change-Id: I92eb18404ca9872a3dad3ecbae5e5ab6439a07ad
2025-06-05 15:18:29 -04:00
00b47c3965 unitTest: fix presence status note test
As of commit 68fc552, presence notes are only sent to contacts (as
opposed to all peers the user is connected to).

GitLab: #1125
Change-Id: I454c6bc880a65ad99747169cfc020a7ea7329de9
2025-05-08 14:16:23 -04:00
130a6603d6 unitTest: reduce ut_swarm_conversation runtime
The local cv variable in testSendMessage was shadowing the corresponding
member variable in SwarmConversationTest. As a result, the calls to
cv.notify_one() in the signal handlers had no effect and the calls to
cv.wait_for() in the test would block until they hit the timeout, which
significantly increased the amount of time needed to complete the test.

Change-Id: I75b6aac8801568831a17035ad86876a130efe12e
2025-05-02 10:39:07 -04:00
2cd49b2820 unitTest: fix fileTransfer
testAskToMultipleParticipants was failing because of a temporary file
that was generated by the previous test and not deleted at the end.

GitLab: #1126
Change-Id: I5a98d259ba974fe72ced94ca3ccecb611a60dc2a
2025-04-30 15:50:21 -04:00
6402af906d cmake: copy files used by ut_plugins
GitLab: #1124
Change-Id: I427816d21f1f7177a305bec37fa71eef42b1755e
2025-04-25 15:37:49 -04:00
dc300e1c9c cmake: copy files used by ut_media_player
GitLab: #1124
Change-Id: Iaeac4b3cec40edb5633b2db346c3bcc167cc054a
2025-04-25 14:46:09 -04:00
17524a8c42 conversation: fix partial file transfer issues
GitLab: #1118
Change-Id: I4de38d343022ec2712a7e649d73fbdb1da068eb3
2025-04-22 11:03:12 -04:00
7b40c5f2cb json: use toString
Use a single static instance of Json::StreamWriterBuilder
instead of creating a new one repeatedly.
Move json-related symbols to their own namespace.

Change-Id: I5145a71d7b19fd2aac158b51774e964ce772311b
2025-03-26 10:32:12 -04:00
c231523ef2 unitTest: fix broken conversation tests
Commit 86d3bb6 accidentally broke two conversation tests by removing
necessary waiting periods.

GitLab: #1117
Change-Id: Idebd037b2bf9083f59a108455fea82f2203a3ece
2025-03-24 17:13:43 -04:00
7657e4ab8e unitTest: fix error in configuration file
GitLab: #1113
Change-Id: I0772167f692b8551c6009c7b8c1ae4f63cecb73e
2025-03-08 01:22:57 -05:00
86d3bb6644 ArchiveAccountManager: add support for p2p account import
Gitlab: #930
Change-Id: I76f07a81c4887d0dc127d74bc6c4de2e9f4f2ee8
2025-03-06 12:19:47 -05:00
c614735321 namedirectory: fix tests
GitLab: #1100
Change-Id: I6ae6d125c730fc9a8a2125b9b6da68c005922bce
2025-02-05 15:30:09 -05:00
66b320adae namedirectory: add test to CMake and fix build
Change-Id: I65c99d62848b2d18e5c54e7b8ec28219320fb363
2025-02-04 14:57:29 -05:00
cbf9457ae7 name directory: allow unicode names
GitLab: #1097
Change-Id: I742d1306007b3ae4908ee2d46bd5275d1ce2c99a
2025-01-30 17:12:44 -05:00
b85165ae1a copyright: happy new year!
Change-Id: I2753c58c12d167ee5f7454e5a2ed893991c90e24
2025-01-08 11:02:33 -05:00
6df44807f1 cleanup
cannot → unable to
fail to → failed to
{inexistent, non-existing} → nonexistent
P2P
try → attempt
UPnP
retrieven → retrieved
testAdminCannotKickTheirself → testAdminCannotKickThemselves
wishes → wants

Change-Id: I84dbb7b78fd674507eab7186c8f9e0a5f1d3d5b3
2024-12-02 10:20:02 -05:00
a7d3197f29 string utils: remove stoi/stod wrapper
Change-Id: I06afa15ff33a639458a618364d4eb00197de585a
2024-11-28 11:53:55 -04:00
0fc67d6c09 updateProfile: Resolved the issue of duplicate keys.
If another key includes "PHOTO" during the API update process, it must be removed.

Change-Id: Ic338263ec3966556c61e12752ccea91fb730b794
2024-11-20 16:50:44 -05:00
ba2d4c6f0f plugins: fix broken test
PluginsTest::testTranslations assumes that at least one of the fields in
the TestSuite plugin's manifest has a French translation. Such a
translation was added in version 1.0.1 of TestSuite last year by commit
d0e0ef18395a07a1579b512c5d67bf61f7c3587a in the jami-plugins repo:
https://review.jami.net/c/jami-plugins/+/25667
However, the daemon plugin tests were still using version 1.0.0 of
TestSuite, which is why testTranslations was failing every day. This
patch fixes the issue by upgrading the TestSuite.jpl file used for the
tests to version 1.0.1.

GitLab: #1064
Change-Id: I7b851083bd8e1ac80d61f721baabbc092b46c56a
2024-11-19 10:19:32 -05:00
e2503d3a4f update license
Change-Id: I8b9e25f99da5945684e265d3923b74065c8ef8eb
2024-11-11 22:42:19 -05:00
6d5b090b04 daemon-tests: resign plugin certificate
Fixes the issue where one of the daemon-tests would repeatedly
fail. Cause was an expired plugin certificate.

GitLab: #1015
Change-Id: Ib6059402569c9817514e3a80dad63b3c52c1e3c1
2024-10-01 11:06:40 -04:00
ad5b6cbaf6 misc: unify terminology
8+3 filename → 8.3 filename
be ware → beware
{cannot, can not, cant, can't, could not, couldn't} → unable to
conpleted → completed
file name → filename
imcomplete → incomplete
informations → information
trying to → attempting to
wrong password → incorrect password

GitLab: https://git.jami.net/savoirfairelinux/jami-client-qt/issues/1730

Change-Id: Ia7757efafd2c06af978db02c65b40b1b77c393f8
2024-09-16 16:12:55 -04:00
cbf8f0af6d conversation: don't connect to banned members
This patch makes two changes to ensure that banned swarm members don't
sync with or receive message notifications from other members:
1) when bootstrapping a conversation, devices belonging to banned
   members are no longer added to the swarm manager;
2) when merging a "ban" commit for a certain swarm member, that member
   is immediately removed from the swarm manager's routing table and all
   Git sockets with them are removed.

GitLab: #1041
Change-Id: Idb817795f978ca4ca46502efea5101831ffccbe3
2024-08-12 12:57:55 -04:00
c28f843ef1 conversation: refuse malformed uri
Second part of this fix: https://review.jami.net/c/jami-daemon/+/28337
GitLab: #1721

Change-Id: Ie428a57d89ac3db4e32660735cb3a5b0bf0f5c94
2024-07-23 11:19:44 -04:00
51df87226b contact_list: fix trust request update bugs
https://git.jami.net/savoirfairelinux/jami-client-qt/-/issues/1804
Change-Id: I8cb3ffc7d5b1b2b8bbfe018b922c260a569411fb
2024-07-22 15:24:38 -04:00
2a805d24fe jamiaccount: fix deadlock
This patch moves the updateConvForContact function from JamiAccount to
ConversationModule. This fixes a deadlock that sometimes occurred when
starting Jami.

GitLab: #1033
Change-Id: I441426fa339e5cfb327566df6132bfecb206bd1e
2024-07-15 14:53:12 -04:00
e31ca92b36 conversationrepository: cache account config
GitLab: #952
Change-Id: I50264953b3d1575cc323caf5348747f8b8a35313
2024-07-04 16:01:17 -04:00
b0a83e7f18 tests/fileTransfer: testTooLarge
GitLab: #972
Change-Id: Ic345e31ff51c9d51b50df0c911594e9d7f07ebbb
2024-06-12 11:17:24 -04:00
239d136788 jamiaccount: check if uri is valid before adding contact
Else, if a client calls addContact with an invalid uri, it will
create a conversation with an invalid contact and the client will
be in a bugguy state.

git.jami.net/savoirfairelinux/jami-client-android/-/issues/1681
Change-Id: Id6227c45c279c78aac0a191b6ae688ebe0d3d1c4
2024-05-31 10:24:12 -05:00
9098dfa624 tests: fix build on GCC 13.2 (Ubuntu 24.04)
Change-Id: I80fb049e0c4e70005c844deed1cf35ed868a2293
2024-05-30 10:25:52 -04:00
d9d9d08d04 conversation_module: support editMessage on file transfer
This allow users to delete files. Moreover, change edited type and
use edited commit type instead.

GitLab: #796
git.jami.net/savoirfairelinux/jami-client-qt/-/issues/1287
Change-Id: Ida04c15cf1570de2f7707ce547be9f4a5e638245
2024-05-27 14:39:25 -05:00
d6cb4930d3 conference: fix tests and conference hangup
API changed for ut_conference.
For ut_conversation_call, because the host is not a dummy call,
we must change the hangup in manager.cpp and fix sink creation
for host while attaching.

Change-Id: Icfc296949438e92f7b9b986ed6aa3b463ec2334e
2024-05-24 09:44:21 -04:00
089a220626 conference: rename Participant into SubCall and merge bind/attach
GitLab: #958
Change-Id: I91036c9f1e20ee19e3896eb8e0110aa36a9d0602
2024-05-17 12:15:40 -04:00
a404577a9e call-swarm: avoid dummy call to create a conference
Now a conference can start without any call (this avoid to attach
a call without peer to create a conference).

Path is now clearer for a call creation:
+ If we receive a call, we attach it to the conference
+ Else we do not create any call and just attach the host.

Next step is to be able to attach a host in audio only without weird
tricks and group addParticipant/bindParticipant

GitLab: #953
Change-Id: I13785a5525e041c37fb62c0c9f355e9371f1e4ad
2024-05-17 12:14:16 -04:00
f2d8c57fc7 call-swarm: fix host attachment for audio-calls
Also, start to fix audio binding (this will be a full patch, but
at least do not attach host)

GitLab: #959
Change-Id: I0aeb9121e2880a5afb4b1ca1a30710d1b60a2e7e
2024-05-17 12:12:59 -04:00
07d673d0c7 conversationRepository: fix build with libgit 1.8.0
Change-Id: Ieede07472435b7f8ae0b19a0ec2afad94e195fee
2024-05-10 09:49:56 -04:00
d8efbc0213 misc: fix build for libgit > 1.8.0
Change-Id: I5576412901a12be74395823a6abf7954bbd72b73
2024-05-09 11:40:49 -04:00
d15b4f7961 test: remove certstore test and ice test from the daemon
certstore test and ice test are moved to DHTnet project.

Change-Id: Iefba61c36d5790df5753fefd97b0eaa40f15ad0d
2024-04-29 13:38:18 -05:00
54f149fc18 conversationrepository: protect operation
+ Avoid concurrent operations on same repository
+ Reset HEAD to always get a clean commit

GitLab: #931
Change-Id: If417c06934e2acab3382481718dc0bc46f40e3f9
2024-03-07 21:30:17 -05:00
b5bc77d665 conversation_module: keep metadatas while syncing
If a conversation is syncing, conv->infos() is not available and
there is no conversation request. So we must keep metadatas somewhere
to be able to show profile of a conversation while syncing

Change-Id: If68e8476f456ab13a5523193d67bb1212e1cb46a
2024-03-07 20:47:45 -05:00
bd2789d58b conversation: fix status loading if last message is displayed
If last message is displayed, the cache upgrade wasn't working because
we only checked from sending to sent, not sending to displayed and
status was lost after a reboot

Change-Id: I5d11e7560edf000e6fd9b8d3173d660baf0cc944
2024-03-06 11:21:23 -05:00
94205cbddf conversationMembersEvent: fix sporadic failures
Change-Id: I22affb5cc4e97b2a1b6137d1f6e52262fef5b788
2024-03-05 16:20:49 -05:00
6583436a37 test: fix ut_typers
GitLab: #968
Change-Id: I9049d376984d480f686a369237b8dcab29144f45
2024-03-05 12:13:03 -05:00
b307501a7b CTAD: re-add template when CTAD fails
In a class definition, the template deduction is failing.

Change-Id: If725c6a076fc4ac07ab0cf493959e51820abdc85
2024-03-05 08:39:02 -05:00
36925c0d94 conversation: avoid to get lastCommitId while merging
Change-Id: I2a7b7cc13268be127a6afe3d689d005b6596a3cd
2024-03-04 13:10:15 -05:00