Commit Graph

16616 Commits

Author SHA1 Message Date
e31ca92b36 conversationrepository: cache account config
GitLab: #952
Change-Id: I50264953b3d1575cc323caf5348747f8b8a35313
2024-07-04 16:01:17 -04:00
2e49d649d7 misc: windows: bump pywinmake version
Gitlab: #1022
Change-Id: I2b65d77b92742378cab7a1f25e1cc666d67fb1bd
2024-07-04 13:17:13 -04:00
a32d0bf933 ConversationRepository: always prevent redirects
GitLab: #1008
Change-Id: I04128942baebdbe0956904b508485c1625ba32e3
2024-07-02 17:10:13 -04:00
d84d0c42ec contrib: add CPE information on packages
Added "cpe" field in package.json and PKG_CVE for make rules.
GitLab: #1021

Change-Id: I375fe3c224b0578ed702877d236fbc8ed0a5d8d5
2024-07-02 15:39:48 -04:00
c9f251d797 msgpack: increase minimum required version
GitLab: #1018
Change-Id: I66db4b10e4621e468bb75937efa52760d116437e
2024-06-26 15:20:38 -04:00
36ed7a60dc contrib: bump pjproject
GitLab: #1006
Change-Id: I912befd1efa0445ea74c317d1247c4f9bf019126
2024-06-26 11:37:55 -04:00
ae71140395 contrib: update minizip to 4.0.7
Change-Id: I5f237803c2a0fb73251ae9c87c86d3be58a3591f
2024-06-26 10:47:11 -04:00
d07853b4d0 contrib: update opendht
GitLab: #1016
Change-Id: I4280b2f34e0309943a5535532fe4e3d376e63a57
2024-06-20 11:37:31 -04:00
ed65571cfd contrib: update restinio to 0.7.2
GitLab: #1016
Change-Id: I570a6a03d5fe041a06a8a96cfaea24e5ef4b02f8
2024-06-20 11:37:31 -04:00
75e7aa49f0 llhttp: use HOSTVARS
GitLab: #1016
Change-Id: I65e83ff1b20bd6ec17a888731ebd32f0524dc17a
2024-06-20 11:37:31 -04:00
a477d35601 contrib: add llhttp
Change-Id: I1e3bad7e99673cad2bd49121914c7d3f69c00a95
2024-06-20 10:47:11 -04:00
24053b49e5 account: race condition with lookup and register
GitLab: #1012
Change-Id: I3588fddb291bbbd29cfff5248512f4bb4991a75e
2024-06-18 13:59:16 -04:00
f867eb26dc namedirectory: ignore lookup result if name already registered
Fix a race condition occurring when doing simultaneously lookup and register.

GitLab: #1012
Change-Id: I9fddebb43a06875a1d027ad4c79edb27a39e5eb5
2024-06-18 13:57:58 -04:00
96684fb5de CMake: unify build definitions with Meson and Autotools
* Use 0 or 1 for HAVE_RINGNS
* Add DEBUG when tests are enabled

GitLab: #544
Change-Id: I2e6a1ae12b3658a8b7d3ebfc160c3e4dbcbeadb0
2024-06-17 16:40:44 -04:00
b4d39a1e2c JamiAccount: save registername as lowercase
Gitlab: #1010
Change-Id: Id7356b61b468bcb946861e34706ff372f8ba9161
2024-06-17 11:16:29 -04:00
b0a83e7f18 tests/fileTransfer: testTooLarge
GitLab: #972
Change-Id: Ic345e31ff51c9d51b50df0c911594e9d7f07ebbb
2024-06-12 11:17:24 -04:00
06803cb1f1 conversation: add more logs in case of download failure
GitLab: #972
Change-Id: I99b96231864878d4e2a17c8923d7578d9709b4c9
2024-06-12 11:17:24 -04:00
1feb687300 jamiaccount: move sha3SumVerify to cpp
Prevents inlining from test code using different build options.

GitLab: #972
Change-Id: I1b52a848a54f8f24662858b45038cd053e43091d
2024-06-12 11:17:24 -04:00
e8f9139afd fileutils: add more logs, use error code instead of exceptions
GitLab: #972
Change-Id: Ie41b6b32bf9ed2764e86b8cb43ba6aedb9ec6a28
2024-06-12 11:17:24 -04:00
796d0ce0b6 ConversationRepository: always prevent redirects
GitLab: #1008
Change-Id: I5624c8c9bbde390bade01a071fb798b8bfe30835
2024-06-11 10:02:51 -04:00
69995fcb86 contrib: prevent freetype from building for libjami-core
This dependency is only required by jami-plugins. Until the
jami-plugins repo migrates to using its own dependency tree and
pywinmake, we can ignore its specific dependencies here.

Gitlab: #1009
Change-Id: Ie845b24cac28fcd6c0f5cced06214be36bb5346a
2024-06-11 09:55:15 -04:00
1eed2c28bf contrib: use CMake to build freetype
CMake support is provided upstream and should be used instead of
dated visual studio project files.

Gitlab: #1009
Change-Id: I8f614d71a9e78c3778f6f05d9621fb65af673eac
2024-06-11 09:55:15 -04:00
c5ba0f59b4 Contribs: Fix freetype rules.mak
Change-Id: I0f330b8246df2f7ed8753992cd42416578e92067
2024-06-10 15:03:26 -04:00
6030be0dfc data transfer: download to temporary file, rename on completion
GitLab: #972
Change-Id: Ic3f03fdc8fc28b387add46d1a59bf0bc15418595
2024-06-10 11:25:47 -04:00
90766f95a3 conversation: fix bug related to use of shut down swarm manager
The SwarmManager class uses the 'isShutdown_' variable to keep track of
whether it has been shut down or not. This variable needs to be reset to
false if we want to restart using a SwarmManager after it was shut down,
which we sometimes do when bootstrapping a conversation.

This patch fixes a failure in
ConversationRequestTest::testBanContactRestartAccount that was
introduced by commit eb4213d3a1.
GitLab: #1002

Change-Id: If5d295cbae4edd9e2292d7464e2eb2939b05eedb
2024-06-07 09:05:43 -04:00
04daac1034 contrib: fix shasum for freetype
Change-Id: I978d8e69351d5a302064e8524cab32ebd639a81e
2024-06-06 16:11:38 -04:00
e9826ae4c4 cmake: add support for nodejs
Change-Id: Ia6e13fd3bd27077dac41b210a8dfac8d78ae6d2c
2024-06-06 15:09:29 -04:00
544f35eb0d macos: link with Compression framework
Change-Id: I2f1e5fdaf7d24d6109c10447cf9a03b94148a6e0
2024-06-06 13:45:49 -05:00
9da8262c27 nodejs: fix binding
Change-Id: I11ee1d203c5a163eee323ba93636ae8800311b27
2024-06-06 13:15:56 -04:00
59b5d0a28c yaml-cpp: link to cmake module
Change-Id: I3fd92f387e8bc21a1d3109be9b5b5c90341b414d
2024-06-06 09:19:21 -05:00
dc66c7cbd2 macos: link with coreaudio
Change-Id: I830db186b4ff90a0ebdeeee3bf6ead34a56fdb2f
2024-06-05 16:28:46 -04:00
1ea9802c41 contrib: bump libvpx to 1.14.1
Change-Id: Ifbad55251f6f56e23b13365caa596023afce69e7
2024-06-04 14:02:21 -04:00
f985f8641b speex: include speexdsp_types.h instead of speex_config_types.h
speex_config_types.h is not present if only speexdsp is installed

Change-Id: I08798648ffbbfa1e84138b21b12e32c75b47e45f
2024-06-04 13:22:46 -04:00
b0e223ff3c misc: add an API to set the client app's resource directory path
This approach allows client apps that install ringtones (and any other resources) in custom locations to specify that directory at runtime. This will take precedence over the build time data directory supplied for platforms which install to a fixed path.

https: //git.jami.net/savoirfairelinux/jami-client-qt/-/issues/1619
Change-Id: I81616f79196e645a5ad677d6956be6a2ffcd976a
2024-06-04 09:57:32 -04:00
f35794ef29 ffmpeg: add missing includes to pipewiregrab patch
The formats.h and video.h header files are needed by the patch but were
not explicitly included. They are implicitly included via internal.h
in FFmpeg 6.0.1 (the version we currently use in the daemon), but not in
later versions (6.1+). (Thanks to Maxim Cournoyer for bringing this
problem to my attention.)

Change-Id: I99f35fa351f6aeca2091a6ee7c267acec0cb08bb
2024-06-03 11:45:34 -04:00
4541a34411 fileID field updates persisted
Change-Id: Ib29e6c9ec04c697206684a5cc4d7e626c3ab1a54
2024-05-31 16:12:44 -04:00
d2ef8a2a18 Contribs: Add Freetype to contrib/src
Change-Id: Id69f8e7d1a7c17d47a44b6fbcdd70b5cd3626d5f
2024-05-31 15:02:22 -04:00
d452fc7e16 misc: cleanup old warnings
Change-Id: Ie88da3b0210f3988900fd4fad6b13c5689f9a4eb
2024-05-31 14:38:42 -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
90c9ae390e cmake: add coverage option
This allow to get coverage reports from ctest.
e.g.
    $ ctest -R typers -T test -T coverage

Change-Id: Ic7d1bf5d7d641f1e581e4855bbc923ee5d8994b5
2024-05-31 10:12:48 -04:00
cab0ba62a8 cmake: fix build with JAMI_VIDEO=OFF
Change-Id: I55a6c72a0abe0cdc55639064157884f383e25e7b
2024-05-31 09:37:51 -04:00
3037fc90d6 build/cmake: remove am file
Change-Id: I554a802f59ab42a7445facc8137fc85980a69495
2024-05-30 16:21:48 -04:00
5d4acd317e build/cmake: add support for GNU/Linux audio layers
Change-Id: I5be4e160f6b6b594fdc26f3861151b56bd9c9bdf
2024-05-30 14:32:18 -04:00
44ed2652c0 contrib: bump libvpx to 1.14.0
GitLab: #999
Change-Id: I1ad65b85146938f5c1f03b882a7a1564c80e2616
2024-05-30 13:54:12 -04:00
9098dfa624 tests: fix build on GCC 13.2 (Ubuntu 24.04)
Change-Id: I80fb049e0c4e70005c844deed1cf35ed868a2293
2024-05-30 10:25:52 -04:00
2219411000 conversation: avoid const char* comparaison
Change-Id: I26469369be06a7c30f851e868c2a64ea98737c69
2024-05-29 16:40:58 -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
eb4213d3a1 swarm_manager: avoid deadlock in shutdown
shutdown can cause the needSocketCb_ to pass a null socket. In this
case we can directly return instead of locking

GitLab: #995
Change-Id: I8ad744e494ea0bd3fe15f221a09feeb44e9aec83
2024-05-27 09:54:36 -04:00
fd2f281544 conversation_module: avoid deadlock on member change
Conversation::pull lock writeMtx_ while announcing new commits.
If a member changes occurs, this can lock conv->mtx and
other operations can wait on writeMtx_ too.

GitLab: #994
Change-Id: I605ba6d4acb7b25a591be86bf37e9d549eeba8c0
2024-05-24 10:03:40 -04: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