Commit Graph

16857 Commits

Author SHA1 Message Date
0e60561d77 contrib: always depend on toolchain.cmake when using cmake
Change-Id: I99f4194635d6a2cf26a4cef58880c947817d6909
2025-04-10 19:25:12 -04:00
a0eab28c23 manager: cleanup
Change-Id: I765f7ebe02079ae91fa84e6fa7d54c9cfbada016
2025-04-10 16:00:40 -04:00
28afcbfd90 gitserver: improve logs
Change-Id: I940952e1f805a1a8bb3f3b0de9de626147e3c4e7
2025-04-10 15:18:21 -04:00
33f4269115 logger: use fmt for gnutls, pjsip logging
Change-Id: Ic282ac90339ecff26b8b195626059d2bf4f02d28
2025-04-10 15:18:21 -04:00
98cbdd359f server_account_manager: log cleanup
Change-Id: I1c8f8515998967c0e76173a8e65de3ef8e85343c
2025-04-10 15:18:21 -04:00
1ff95cdbf8 manager: update log level env variables
Use scoped environment variable names
for custom log levels:
DHTLOGLEVEL -> JAMI_LOG_DHT
SIPLOGLEVEL -> JAMI_LOG_SIP
RING_TLS_LOGLEVEL -> JAMI_LOG_TLS

Change-Id: Ic2dc29413382b5072a7aadb9356eb5b19514674d
2025-04-10 15:18:21 -04:00
cfa26ea4fc conversations: fix conversation Id
This patch fixes the conversation Id used when creating
conversations from iOS notifications extension.

Change-Id: Ifcf6c414b978e12aa1d7c5f4bd34536a07b7137f
2025-04-10 13:41:10 -04:00
750a3f2c3d utf8_utils: enable OPTIMIZE
Change-Id: I78dc58bd3c626b212f0527bb21efbd689cf93802
2025-04-10 13:40:34 -04:00
bfe687dbba conversation: fix message status computation
This patch is a complete rewrite of the algorithm used in the
addToHistory function to compute the status (SENDING, SENT or
DISPLAYED) of the added messages. This fixes a bug where some messages
would sometimes be incorrectly marked as being in the SENDING state,
even though more recent messages were known to have been SENT or
DISPLAYED.

GitLab: #1042
Change-Id: Ibfe0aeee57523348a5f8430492814572e607090e
2025-04-10 13:36:02 -04:00
7edd420ffa conversation: refactor addToHistory
The addToHistory function currently iterates over the list of commits to
add only once. This patch refactors the function so that the message
status computations are done in a separate loop from the rest of the
message handling logic. This will make it easier to fix a bug in the
message status computation in a subsequent patch.

GitLab: #1042
Change-Id: I3fceb10057292f84bc8c5e9d668fed7290ace8f2
2025-04-10 13:36:02 -04:00
62fe7c866a conversation: skip loading if conversation Id is empty
When loading from the notification extension, check if the
conversation Id is empty. This can happen when cloning a
conversation or during resubscribe.
In such cases, we only need to start the account.

Change-Id: Ia59b88cbf00a594621b61a1d534b18cb3805c827
2025-04-10 11:42:54 -04:00
79b8f3a085 contrib: update libarchive
Gitlab: #1122
Change-Id: I9d0aca488b52744c4b089c000f17a70d334eb54b
2025-04-09 13:53:16 -04:00
4d46e99e29 contrib: update jsoncpp
Gitlab: #1122
Change-Id: Ia80eb6f1b90c663419a6cbe25f416afee742e3c3
2025-04-09 13:53:16 -04:00
68fe75b1d3 contrib: update yaml-cpp
Gitlab: #1122
Change-Id: I2a03716fd9d493d41dd0ec8f87759a0d2fb2de5d
2025-04-09 13:53:16 -04:00
81a48595ef contrib: update llhttp
Gitlab: #1122
Change-Id: I31d290cd8ebf623a2aa91a6c279d6637952135ce
2025-04-09 13:53:16 -04:00
2b090f88d8 contrib: update msgpack
Gitlab: #1122
Change-Id: I1173ddbb2d9b5625a759dcbb0d6449c1d88efc63
2025-04-09 13:53:16 -04:00
13dcc658f0 contrib: update opendht
Gitlab: #1122
Change-Id: Ib0332c86e310aea03f5ea31d89e6ab932a8d741c
2025-04-09 13:53:16 -04:00
0dbdbd34c9 contrib: update opus
Gitlab: #1122
Change-Id: I5c7d0c74b2eb07ecf537451a8052b8907b99d0fb
2025-04-09 13:53:16 -04:00
e7f8f9926c contrib: update restinio
Gitlab: #1122
Change-Id: I0d09d8733e427843e34963b0c911c5109b0bb0ec
2025-04-09 13:53:16 -04:00
42c62ecc22 contrib: update required opendht version to 3.3
Change-Id: Ide2ef47acda8c423bfa14355e42ecdb3afbb7c36
2025-04-09 13:53:16 -04:00
63f4e2043a message channel: route messages through onTextMessage
Change-Id: I4f39abfb8cba90b428554b1972cf6ed72b7682e5
2025-04-09 11:52:51 -04:00
b7be61ef9e conversation: verify conversationId before cloning
This patch validates the conversationId before proceeding with
cloning. Otherwise, an empty conversationId could lead to
accidental removal of the entire conversations directory.

https://git.jami.net/savoirfairelinux/jami-client-qt/-/issues/1982
Change-Id: I428247498bb7533b12dadb8a479779e228e6dfb6
2025-04-09 10:46:55 -04:00
3f45561abf build: use _FILE_OFFSET_BITS=64
Allows to use 64 bits file APIs on 32 bits POSIX systems.

Gitlab: #1122
Change-Id: Ie9ec07c7027b09ada8daf49c5bf3663dd9ff939d
2025-04-09 10:02:14 -04:00
12f603f7d9 contrib: always use CMAKE_BUILD_SHARED_LIBS=OFF
Change-Id: I72d6d80ef3dea7a868acb4fea0f65ff6882e743c
2025-04-09 10:02:06 -04:00
fe20fea2ef cmake: fix inconsistent test names
Some of the unit test executables had different names depending on
whether they were built via CMake or Autotools.

Change-Id: Ie09ba448e0101035e69d95fc639a8bce0251759b
2025-04-03 11:47:45 -04:00
279d6515ea contrib: don't build opendht documentation
The CMake option to build OpenDHT's documentation was already disabled
on Linux but not on Windows.

Change-Id: I66b29e68cc64596ca3066122c27facd871620d05
2025-03-30 17:42:04 -04:00
ece7c37097 archive: report write error
Change-Id: I29fcc7b078799abb3d8c5aba9a7bcb8f48357d2a
2025-03-27 22:51:16 -04:00
252a6bf10f log: cleanup and uniformize
Change-Id: I5bc21822a8c754951a92ac7be8dd2e4af78cce6f
2025-03-27 21:54:07 -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
49b4d63f43 build: fix incorrect use of LIBJAMI_TESTABLE macro
The LIBJAMI_TESTABLE macro was always defined, so using it in ifdef
directives had no effect.

Change-Id: I0f7ac906c70a90230cf224f9dc001712e1d5ca86
2025-03-25 15:32:43 -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
fc3402940f contrib: update dhtnet on Windows
Follow-up to commit 0838e6a.

Change-Id: I26194ca4b404edc3b96f0e15df48e0dd49f320aa
2025-03-21 11:15:18 -04:00
0838e6a973 contrib: update dhtnet
Change-Id: I6c65054f8741d05aac5bd4dcd3357122e6b9e450
2025-03-19 16:18:55 -04:00
f680064f4a fileutils: avoid throwing exception if file doesn't exist
Preserve pre-std::filesystem behavior of returning null if operation fails.

Change-Id: I76414a73f8aa0a74640b92c27c753f0311d86380
2025-03-18 17:51:50 -04:00
74916fa30b filetransfer: rework mutex when sending files
Rework the mutex lock to release it before the sha3 computation
to avoid a lock.

GitLab: #1919
Change-Id: Ic7f065959873bcc9f932e07611ed3c8010ef2979
2025-03-14 15:19:32 -04:00
bffd249776 jni: use syslog
allows to use android logger

Change-Id: I66af2cb8dd05808f353dcc2dee74fa842718a445
2025-03-14 00:55:01 -04:00
0a8609a1d5 p2p device link: check for msgpack objects
Change-Id: I58ceec1d2c58b21f04aaa6a131a014d3b34a8d81
2025-03-14 00:54:08 -04:00
1b155312ea contrib: fix mkdir permissions on Windows for gnutls
This effectively restores a previously removed patch, thought to
be unnecessary (removed in cbba52ef when bumping gnutls). The issue
is fixed in a later version of gnutls, which opendht is not yet
ready to use.

Change-Id: I6d07028f7c5f95803776d1413c7e6a8411902fef
2025-03-12 15:13:40 -04:00
9edaf4df2a logs: make syslog disabled by default
Change-Id: If05e5c35a739b7149b66622c249c303996ba8550
2025-03-11 16:20:11 -04:00
54cda5a9c7 p2p device link: cleanup
Change-Id: I8625be46bcde0c2f69f75cb341a11da7def7e0d0
2025-03-11 15:29:19 -04:00
5e8c060a7f JamiAccount: use shared_mutex for connManager
Change-Id: I73eeb7a3c8f09e147a8ca2713028c94de6a72aa7
2025-03-10 13:05:04 -04:00
8647b933c4 DataTransfer: run shutdown on ioPool
Change-Id: I3e8ccd71a1b5cb906b66837813bd132cc81f697a
2025-03-10 13:05:01 -04:00
7657e4ab8e unitTest: fix error in configuration file
GitLab: #1113
Change-Id: I0772167f692b8551c6009c7b8c1ae4f63cecb73e
2025-03-08 01:22:57 -05:00
8b5fd05239 build: support iOS arm64 simulator
- disable vpx for arm64 simulator

https://git.jami.net/savoirfairelinux/jami-client-ios/-/issues/422
Change-Id: I5369dc6ce8e666dc03a5993a05f38d7a74556d4b
2025-03-07 14:27:53 -05:00
86d3bb6644 ArchiveAccountManager: add support for p2p account import
Gitlab: #930
Change-Id: I76f07a81c4887d0dc127d74bc6c4de2e9f4f2ee8
2025-03-06 12:19:47 -05:00
597cde8d30 contrib: fix gnutls build errors
This patch partially reverts GnuTLS commit 516f48bfbf33d111e4fcd310541baa8f160067ae, which prevents the daemon from building on some old Linux distributions due to increasing the minimum required version of autoconf from 2.64 to 2.71.

The patch also removes the AM_GNU_GETTEXT macros from the configure.ac file. When these macros are present, autoreconf calls autopoint, which overwrites some m4 files in the GnuTLS repository with the version found on the system. This causes the Ubuntu 20.04 and snap builds to fail with "possibly undefined macro" errors.

GitLab: #1111
Change-Id: I45b8225bff148b3cf01aa2ce14adc639de823a8f
2025-03-06 09:05:01 -05:00
48c2497ba5 conference: respect muted state
Ensure the video muted state is properly maintained.

Change-Id: I69d768913e141eca820abe171732d855fc1d8a78
2025-03-03 16:01:12 -05:00
ae1c47e211 conference: identify media by its label (streamId)
Use streamId as the media identifier since it is unique.

Change-Id: I68a0c8a53bdecdb22008260640fb79b6febd5b71
2025-03-03 16:01:12 -05:00
8c5c1c238f TransferChannelHandler: run on io pool
GitLab: #1110
Change-Id: I36e090fcb6c44b2483b1765786d64be108d93d21
2025-03-03 10:54:39 -05:00
8eb66bf80c update dhtnet
Change-Id: I02a995e93c23c2f602295c9c38080f196397e896
2025-02-28 13:35:11 -05:00