1. 27 Jun, 2019 1 commit
  2. 26 Jun, 2019 2 commits
    • Linus Jahn's avatar
      Rewrite database models to not block the GUI · e8750bad
      Linus Jahn authored
      This rewrites parts of the main database class. All classes working on
      the database have been moved to the new database thread, so inserting
      records into the database isn't blocking the user interface anymore.
      What also improved the performance *massively* is the use of SQLite
      transactions, when inserting multiple records. So inserting is so fast
      now that it actually wouldn't necessarily require another thread, but
      with this we're safe in the future.
      
      The message model and the roster model have been splitted up into a
      database manager and the list model that is used to present cached data
      to the user. The XMPP managers are connected to both the model and the
      db classes, so both are updated in parallel.
      
      There are also two new classes for the RosterItem and the Message,
      because we need to cache those in the models in a vector. The Message
      class inherits from QXmppMessage, so we can now use the same class for
      sending messages and inserting messages into the database.
      
      Closes #273.
      e8750bad
    • Linus Jahn's avatar
      Rename Utils to QmlUtils · a6ba2a0a
      Linus Jahn authored
      a6ba2a0a
  3. 25 Jun, 2019 3 commits
  4. 21 Jun, 2019 1 commit
    • Filipe Azevedo's avatar
      Use default font in emoji picker · 51d47c02
      Filipe Azevedo authored
      This fix the emoji picker to present the real system emoji that would
       appear in the message view.
      There is no reason to present emojis for a font the message view will
       not render identically.
      51d47c02
  5. 15 Jun, 2019 3 commits
  6. 11 Jun, 2019 1 commit
  7. 23 May, 2019 1 commit
    • Linus Jahn's avatar
      Fix settings layer bugs · 668121b0
      Linus Jahn authored
      There were several problems with the settings layer (on mobile):
       - You could open the settings layer multiple times
       - When you logged out while being in the settings the settings layer
         didn't disappear
      668121b0
  8. 13 May, 2019 1 commit
  9. 11 May, 2019 1 commit
  10. 03 May, 2019 2 commits
  11. 28 Apr, 2019 1 commit
  12. 18 Apr, 2019 4 commits
  13. 17 Apr, 2019 1 commit
    • Linus Jahn's avatar
      Fix message editing bugs · 30db3ee1
      Linus Jahn authored
      There were three edge cases:
      1) The wrong message was replaced:
         - You send a message
         - You open the edit menu
         - Contact or another device of you sends a message
           (lastMessageId is updated)
         - You finish your edit and a message is sent to replace your contacts
           message, which is obviously not what we want. Database and XMPP
           both get the wrong message id to replace.
      2) Can't edit last message:
         - You send a message
         - Contact sends a message
           (lastMessageId is updated)
         - You can't edit your last message, although that is expected to work.
      
      The solution was to only update the lastMessageId for own messages.
      
      Also the QML code has been slightly beautified by the use of a signal.
      30db3ee1
  14. 14 Apr, 2019 1 commit
  15. 13 Apr, 2019 2 commits
  16. 12 Apr, 2019 2 commits
  17. 02 Apr, 2019 3 commits
  18. 31 Mar, 2019 1 commit
  19. 16 Mar, 2019 3 commits
  20. 09 Mar, 2019 1 commit
  21. 08 Mar, 2019 1 commit
  22. 06 Mar, 2019 1 commit
  23. 02 Mar, 2019 2 commits
  24. 08 Feb, 2019 1 commit