Skip to content
Snippets Groups Projects
  1. Jan 19, 2024
    • François-Simon Fauteux-Chapleau's avatar
      tests/qml: fix various issues with the MessageOptions test · 95e36ef8
      François-Simon Fauteux-Chapleau authored and Sébastien Blin's avatar Sébastien Blin committed
      This commit fixes three issues related to tst_MessageOptions.qml:
      1) There was no test to check that the call to createSIPAccount() at the
         beginning of test_createMessageOptionsPopup() actually succeeded
      2) The created account was not deleted at the end of the test
      3) The test would occasionally crash due to an uncaught
         std::out_of_range exception thrown by the
         AccountModelPimpl::slotAccountDetailsChanged function. I've modified
         the function to issue a warning instead, which makes it consistent
         with AccountModelPimpl::slotVolatileAccountDetailsChanged and avoids
         throwing an exception from a Qt slot (which is considered undefined
         behavior according to the Qt documentation)
      
      Change-Id: I4d939b29f27ee27de673aea7046997ef756fbcee
      95e36ef8
  2. Jan 03, 2024
  3. Jan 02, 2024
    • Sébastien Blin's avatar
      messagelist: use history given from daemon (except SIP accounts) · 32b76c8d
      Sébastien Blin authored
      With Jami-Daemon >= 14.0.0, the client doesn't need to construct
      itself the history. This part is now handled by the daemon.
      This patch uses the new API:
      + loadConversationMessages->loadConversation
      + SwarmMessageReceived/SwarmMessageUpdated/ReactionAdded/ReactionRemoved
      + remove MessageReceived
      + ConversationLoaded->SwarmLoaded
      
      + No need to use loadConversationUntil, the daemon will load whatever
      the client needs.
      + No need to clear cache, just reset the body and emit data changes
      
      Everything should work like before (even re-translation & changing
      preview preference)
      
      Change-Id: Iaf1fa3e84e8e157ae2d0bec210977f9a34415ebc
      32b76c8d
  4. Oct 24, 2023
  5. Jun 02, 2023
    • Andreas Traczyk's avatar
      chatview: fix emoji responses under Qt v 6.4.x and up · d94c3083
      Andreas Traczyk authored and Adrien Béraud's avatar Adrien Béraud committed
      Qt.bindings are not supported for properties within when calling createObject anymore. Instead, we can pass component references, or generate bindings post-creation.
      
      Note: in this case, the popup closes and observation is not really needed here.
      
      Gitlab: #1169
      Change-Id: I21c1d95f4ca725c86fcf276834830145587458cc
      d94c3083
Loading