Gajim - 2025-09-27


  1. Anon Ymous

    I suddenly have several MUCs where all the messages since the last time I started it are simply not listed. However, the chats list _does_ show a preview of those last messages, so Gajim did receive them. The messages show just fine in other clients. Restarting Gajim does not make them appear either.

  2. Anon Ymous

    I also couldn't find the messages by searching for what the message preview in the chat list showed.

  3. Anon Ymous

    I also couldn't find the messages by searching for what the message preview in the chat list showed. New messages that are sent afterwards do show up, but evidently there's holes in the history now.

  4. Anon Ymous

    And now the preview in the chat list shows one of the missing messages, even though a newer message is already present _and_ shown in the history.

  5. lovetox

    Sounds very weird

  6. lovetox

    Care to look in the database if they are there?

  7. lovetox

    Or enable debug logging and check if there are errors when loading

  8. lovetox

    Is only one MUC affacred?

  9. kalkin

    hi

    👋 1
  10. Anon Ymous

    > Or enable debug logging and check if there are errors when loading I couldn't find errors, but the debug log is insane (8MB after a few seconds), so it's quite difficult to get through, plus it's a privacy nightmare, so I'd rather not post it. Any keywords I should look for?

  11. Anon Ymous

    > Is only one MUC affacred? No, all of them.

  12. Anon Ymous

    > Care to look in the database if they are there? They can't _not_ be there, because they show as message previews in the chat list.

  13. Anon Ymous

    But... this is ridiculous. I wish I made screenshots, because even after multiple restarts of Gajim (and _with_ the presence of those messages in the chat list previews), they did not show and couldn't be found via search, but now, all those messages _are_ showing. What the hell?

  14. Anon Ymous

    Damn it... I think I've got a possible reason... the clock! I dual-booted into Linux, which tends to set back the clock 2 hours when booting to Windows (I still have to check the reason for that). The messages were within that time slot of 2 hours. Let's see if I can reproduce.

  15. Anon Ymous

    Yess, that's it!

  16. kalkin

    @devs: https://conference.gajim.org:5281/pastebin/7f7cac5e-5fc2-4353-8eca-103d85ef5781

  17. kalkin

    @devs: https://conference.gajim.org:5281/pastebin/013a6ea2-1a01-45f5-babe-02c9a7821373

  18. kalkin

    @devs: https://conference.gajim.org:5281/pastebin/e557c4ca-1eab-40db-bd15-8b8dca32be13

  19. kalkin

    I used `locate` to figure out if i have the icon it tries to find. I do: ``` /var/lib/flatpak/app/org.gajim.Gajim/aarch64/stable/270e422730acd6214a37fb125a793ddf6a0b6b223eda62d46ce15ba948e4052f/files/lib/python3.13/site-packages/gajim/data/icons/hicolor/scalable/devices/lucide-cloud-off-symbolic.svg /var/lib/flatpak/app/org.gajim.Gajim/aarch64/stable/270e422730acd6214a37fb125a793ddf6a0b6b223eda62d46ce15ba948e4052f/files/lib/python3.13/site-packages/gajim/data/icons/hicolor/scalable/devices/lucide-cloud-off.svg ```

  20. mesonium

    > @devs: > https://conference.gajim.org:5281/pastebin/e557c4ca-1eab-40db-bd15-8b8dca32be13 https://dev.gajim.org/gajim/gajim/-/issues/12473

  21. mesonium

    Just got fixed ;)

  22. kalkin

    > https://dev.gajim.org/gajim/gajim/-/issues/12473 awesome!

  23. nicoco

    > Damn it... I think I've got a possible reason... the clock! I dual-booted into Linux, which tends to set back the clock 2 hours when booting to Windows (I still have to check the reason for that). The messages were within that time slot of 2 hours. Let's see if I can reproduce. that's because traditionnally linux set the system clock to UTC while windows set it to local time. I think you should be able to configure your linux such that it follows windows behaviour (or the other way around). Anyway it's a rather common issue with dualbooting windows and linux, I'm sure there are workarounds.

  24. alexia

    voidlinux happens to document this, it's that windows doesn't use UTC by default and this will conflict, the fix is to set `HARDWARECLOCK=localtime` globally (e.g `rc.conf`, `/etc/environment`)

  25. alexia

    (source: https://docs.voidlinux.org/config/date-time.html#hardware-clock )

  26. Anon Ymous

    alexia, thx! I found an alternative fix `sudo timedatectl set-local-rtc 1`, but when applying it, it gave me a long warning that it could really cause issues with e.g. summertime.

  27. alexia

    oh huh, TIL

  28. Anon Ymous

    Maybe it's better to change this in Windows and leave the default in Linux: https://wiki.gentoo.org/wiki/System_time#Dual_booting_with_Windows

    👍 1
  29. lovetox

    indeed we query the database with timestamps, basically give me everything before now()

  30. lovetox

    if now() is 2 hours in the past, you will not see the two hours

  31. Anon Ymous

    Isn't that a bit odd? "give me everything after ..." makes sense, but everything before now()?

  32. Anon Ymous

    I'm saying this, because I've seen this cause issues, even with the clock set to the right time: new messages simply wouldn't show up in the chat, but they would in the chat list message preview.

  33. Anon Ymous

    And if your local time changes due to travel or spoofing, you won't be able to see the latest messages.

  34. lovetox

    i think you are confusing 2 different things

  35. lovetox

    changing a timezone in your DE does not change your system clock

  36. Anon Ymous

    It does in Windows

  37. Anon Ymous

    By default, that is. Unless you change a registry value (https://wiki.gentoo.org/wiki/System_time#Dual_booting_with_Windows) which nobody does.

  38. lovetox

    https://docs.python.org/3/library/time.html#time.time

  39. lovetox

    https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getsystemtimepreciseasfiletime

  40. lovetox

    > The retrieved information is in Coordinated Universal Time (UTC) format.

  41. lovetox

    so Gajim should always store in UTC

  42. lovetox

    independent of the OS

  43. Anon Ymous

    Okay, it could be that it _stores_ in UTC, but the history sure doesn't, otherwise I couldn't have reproduced the issue by manually turning back the clock.

  44. Anon Ymous

    And apparently it's also an issue when the clock is only seconds behind, which can happen for anyone, so it's a real problem, I'd say.

  45. lovetox

    why, thats exactly what happens when you turn the clock back, your now() changes 2 hours because you adjusted system time

  46. lovetox

    turning your clock back is not equivalent with changing a timezone

  47. Anon Ymous

    Ah that's true.

  48. lovetox

    i can see that there can be a problem, if your system time is wrong, especially if the server has another time

  49. Anon Ymous

    The problem remains that if the clock is just a few seconds behind, which is a very plausible situation, then Gajim's current implementation of the chat history panel might not show the most recent messages because of the "get messages up until now()" logic.

  50. lovetox

    so yes good observation, i think we need to adjust the query

    👍 1
  51. lovetox

    https://dev.gajim.org/gajim/gajim/-/issues/12479

  52. Anon Ymous

    There's a bug in the title 😉 but thx!

  53. Marco

    Hello! Is there a way to add calls and videocalls in Gajim?

    👍 1
  54. lovetox

    no

    😭 1
  55. Anon Ymous

    > Hello! Is there a way to add calls and videocalls in Gajim? Send a Jitsi link and you're good to go 😉

  56. Marco

    my parents wouldn't agree xD

    👍 2😅 1
  57. betarays

    > The problem remains that if the clock is just a few seconds behind, which is a very plausible situation, then Gajim's current implementation of the chat history panel might not show the most recent messages because of the "get messages up until now()" logic. oh that's what causes it

  58. bot

    lovetox pushed 1 commits to branch gajim/master imprv: Delete more metadata when purging history - https://dev.gajim.org/gajim/gajim/-/commit/2ebab009fdf658b37db51c41b10754552668c876

  59. mm

    > Maybe it's better to change this in Windows and leave the default in Linux: https://wiki.gentoo.org/wiki/System_time#Dual_booting_with_Windows 👍

  60. mm

    > Hello! Is there a way to add calls and videocalls in Gajim? 👍

  61. mm

    > no 😭

  62. mm

    > my parents wouldn't agree xD 👍

  63. danielstein

    mesonium:

  64. mesonium

    danielstein: ?