This patch fixes the conversation Id used when creating
conversations from iOS notifications extension.
Change-Id: Ifcf6c414b978e12aa1d7c5f4bd34536a07b7137f
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
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
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
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
Some of the unit test executables had different names depending on
whether they were built via CMake or Autotools.
Change-Id: Ie09ba448e0101035e69d95fc639a8bce0251759b
The CMake option to build OpenDHT's documentation was already disabled
on Linux but not on Windows.
Change-Id: I66b29e68cc64596ca3066122c27facd871620d05
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
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
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