1. 24 Jul, 2019 1 commit
  2. 21 Jul, 2019 2 commits
  3. 20 Jul, 2019 2 commits
  4. 27 Jun, 2019 1 commit
  5. 26 Jun, 2019 1 commit
    • LNJ's avatar
      Rewrite database models to not block the GUI · e8750bad
      LNJ 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
  6. 17 Apr, 2019 1 commit
    • LNJ's avatar
      Fix message editing bugs · 30db3ee1
      LNJ 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
  7. 13 Apr, 2019 1 commit
  8. 12 Apr, 2019 1 commit
  9. 02 Apr, 2019 1 commit
  10. 16 Mar, 2019 1 commit
  11. 09 Mar, 2019 1 commit
  12. 02 Mar, 2019 1 commit
  13. 06 Feb, 2019 2 commits
  14. 05 Feb, 2019 2 commits
  15. 22 Jan, 2019 1 commit
  16. 28 Dec, 2018 1 commit
    • LNJ's avatar
      chat: Make HTTP/HTTPS links highlighted and usable · a12910dd
      LNJ authored
      This will highlight links starting with http:// or https:// and will
      make them open externally when clicked. Unfortunately (in Material and
      (KDE) Desktop style) the link color doesn't change when hovered.
      a12910dd
  17. 14 Dec, 2018 1 commit
    • LNJ's avatar
      media-sharing: Display images in chat, Fix chat colour issues · 9ba820bf
      LNJ authored
      Images are now displayed in the chat. For the case that they are
      available locally (currently only possible by sending them), the images
      are loaded directly, otherwise they're loaded via. HTTP. Of course that
      still needs to be changed since those images are not cached and thus are
      downloaded every time.
      
      Fixes the `mediaLocation` attribute in the database of messages; it's
      now the full file path, before it was accidently set to the folder's
      path.
      
      The colour for timestamp labels of incoming messages wasn't clearly
      visible in some configurations, it is now always a bit darker (1.3
      times) and well visible in all common styles.
      9ba820bf
  18. 24 Nov, 2018 1 commit
  19. 20 Sep, 2018 1 commit
  20. 30 Jul, 2018 1 commit
  21. 03 Apr, 2018 1 commit
  22. 14 Feb, 2018 1 commit
  23. 08 Feb, 2018 1 commit
    • Ilya Bizyaev's avatar
      New chat page look (#179) · bfb720ab
      Ilya Bizyaev authored
      This commit:
      * Updates Kirigami and Breeze submodules to make use of layout fixes and new icon
      * Adds tool buttons for attachments and sending
      * Changes text input appearance to a more traditional for messengers
      * Adds "Enter to send, Ctrl-Enter for newline"
      * Changes messages layout and corner radius
      bfb720ab
  24. 21 Jan, 2018 1 commit
    • LNJ's avatar
      Fix RichText labels in Plasma (Mobile) (#175) · 8740918f
      LNJ authored
      This adds explicit textFormat settings in most labels, so labels are always
      parsed, if wanted and never if not. So now, the messages aren't parsed anymore,
      so the "send image hack" won't work anymore. This is also for security reasons,
      because you probably don't want your system to always check any incoming links
      in img tags.
      8740918f
  25. 13 Jan, 2018 1 commit
    • LNJ's avatar
      Bump copyright to 2018 · 14b7183a
      LNJ authored
      This updates all copyright headers in the source files to 2018. Also,
      there are not all contributors listed with a seperate copyright line,
      only one line for all Kaidan developers and contributors with a 'link'
      to a full list of contributors in the LICENSE file.
      
      It would be very hard to maintain the old strategy and adding each
      contributor to each file. Also the copyright lines were get too long then.
      
      All Kaidan headings are uniform, now. I replaced 'A cross platform XMPP
      client' with 'A user-friendly XMPP client for every device!'.
      14b7183a
  26. 16 Dec, 2017 1 commit
  27. 14 Aug, 2017 1 commit
    • LNJ's avatar
      ChatPage: Show real avatars using new RoundImage (#124) · 31ea5630
      LNJ authored
      This adds a new RoundImage QML type, that has a QtGraphicalEffect for
      removing the corners and making it rounded (this is currently the only
      way doing it, since an Image has no radius property as a Rectangle).
      
      The avatar is now also a bit larger, I think it looks better so.
      I removed mipmap filtering for the avatars on the ChatPage, because it
      looked not good and a bit blurred on the avatars I tested it with. Maybe
      I'll change that later again.
      31ea5630
  28. 12 Aug, 2017 1 commit
    • LNJ's avatar
      ChatPage: New design showing time/isDelivered (#123) · 56a6ddea
      LNJ authored
      This changes the design of the ChatPage or the underlying ChatMessage
      object to show the date and a green checkmark if delivered.
      
      The green checkmark is from Conversations (GPLv3).
      
      The time format is 'dd MMM, hh:mm' / '31 Dec, 23:59', but it would
      probably be better if this format would be changed dynamically, so that
      all messages of the current day only show hours and minutes and messages
      older than one year also show the year.
      
      Closes #103, closes #104.
      56a6ddea
  29. 10 Aug, 2017 1 commit