Gajim - 2024-06-14


  1. dln949_

    Running Gajim 1.9 (flatpak) on Ubuntu 22.04, gnome 42.9, Wayland. Since the latest Gajim update, I have a problem in Gajim: For one contact, messages - sent or received - in Gajim do not wrap correctly - the lines wrap, but I cannot see the end of the lines on the right side. Altering the sizes of the sections in Gajim does not help. But - I see this with only one contact. Sending, receiving the exact same messages involving other contacts wrap perfectly in Gajim. What might be causing this? What can I do?

  2. fjklp

    line wrapping was disabled recently due to a pango bug

  3. fjklp

    it's super annoying for me too

  4. fjklp

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

  5. fjklp

    this is the commit that made the change if you want to revert it https://dev.gajim.org/gajim/gajim/-/commit/571f012784fc898e0e780db2aa1114569e014111

  6. fjklp

    >But - I see this with only one contact. Sending, receiving the exact same messages involving other contacts wrap perfectly in Gajim. I don't know why this would be the case

  7. fjklp

    oh, I think I figured it out earlier

  8. fjklp

    people often post long hyperlinks, which since they have no space in them, do not wrap

  9. fjklp

    > line wrapping was disabled recently due to a pango bug This isn't the right way to say it. It now wraps only on word boundaries instead of breaking the line at any given character.

  10. dln949_

    fjklp: thanks the messages I have problems with do not have hyperlinks in them. Question: not a tech guy here, What exactly are the steps I would follow to revert the change? don't know what to do with that url you linked to.

  11. fjklp

    dln949_: are you on linux?

  12. fjklp

    running flatpak?

  13. dln949_

    ubuntu, flatpak

  14. fjklp

    Be warned, this bug might be dangerous, I don't know. At the least, someone posting certain messages in a chat will cause your gajim to crash and you will not be able to view that chat again unless you update/reinstall/revert the commit/ or remove the message from your gajim database

  15. fjklp

    be back in a few

  16. fjklp

    ok

  17. fjklp

    dln949_: firstly, do you understand the warning? I don't want to get in trouble for steering people wrong here.

  18. dln949_

    fjklp: Yes. (I don't understand when this seg fault became a problem and thus led to this recent fix)

  19. fjklp

    someone just mentioned it here in chat and it was fixed because a dev became aware of it

  20. dln949_

    oh. I never saw the problem myself

  21. fjklp

    maybe no one actually did, I think this guy discovered it from elsewhere and that it also applies to gajim

  22. fjklp

    the path to the file you want to edit should be `/var/lib/flatpak/app/org.gajim.Gajim.Devel/current/active/files/lib/python3.11/site-packages/gajim/gtk/conversation/plain_widget.py`

  23. fjklp

    I could give a patch but I guess we'll do it manually

  24. dln949_

    So, *IF* I decide to try undoing this fix, so I simply change the line self.set_line_wrap_mode(Pango.WrapMode.WORD) to be self.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)? Also, I see this same file in my home directory as well - would I make the change in both?

  25. fjklp

    > So, *IF* I decide to try undoing this fix, so I simply change the line self.set_line_wrap_mode(Pango.WrapMode.WORD) to be self.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)? > > Also, I see this same file in my home directory as well - would I make the change in both? yes

  26. fjklp

    yes to the first question

  27. dln949_

    yes to both questions?

  28. dln949_

    oh

  29. fjklp

    >Also, I see this same file in my home directory as well - would I make the change in both? I don't know what file you are referring to

  30. fjklp

    plain_widget.py is in your home directory?

  31. dln949_

    ' /home/main1/.local/share/flatpak/app/org.gajim.Gajim/x86_64/stable/d2a3d1ff2dd30d4a5fe8b346321ea31fded9cd9c9ac165203f5af6a125df6f4e/files/lib/python3.11/site-packages/gajim/gtk/conversation/plain_widget.py

  32. fjklp

    ~/.local/share/flatpak exists for me but it does not contain the app directory

  33. fjklp

    this might be something related to system versus user installs

  34. fjklp

    I don't think I've done anything custom for that

  35. fjklp

    try doing it in the file I pointed to and see if it works

  36. dln949_

    ok, I'm gonna give this some thought, perhaps tomorrow, gotta go now. Thanks very much for your guidance

  37. fjklp

    ok, just remember you'll have to also apply it after every update too

  38. fjklp

    have a good one

  39. ong

    https://files.yowoy.cwnp.cn/upload/58b3317f-8f1e-414d-8adb-80b13096abec/8bdc6379-b5e9-4b82-9f0b-89277df27454.png

  40. ong

    https://files.yowoy.cwnp.cn/upload/4d2f2cb0-562e-4335-a735-52dd15d3b845/67e0de10-08fa-4e21-9479-315dd6fd530b.png

  41. ong

    its over

  42. fjklp

    ong: explain?

  43. ong

    welll

  44. ong

    back in ze day

  45. ong

    the mumble client let you do get requests to routers

  46. ong

    ppl would reboot each others routers this way lol

  47. fjklp

    interesting

  48. ong

    maybe xmpp client needs some way to identify if the file is actually coming from the server their communicating with in the stanza

  49. ong

    like fileserver disco but for other server per contact

  50. fjklp

    what is contained in install.jpg? or does the router interpret this get request url as a command alone?

  51. ong

    ye

  52. ong

    router just gibs response

  53. ong

    https://files.yowoy.cwnp.cn/upload/3ec9d6ae-bfb5-4309-a908-b33eb11b50d3/ffc4fcce-4631-4dd0-aa66-2d1916db4fe9.png

  54. ong

    could resolve upload.gajim.org before downloading the file?

  55. ong

    if message was from gajim.org

  56. ong

    on gyatt

  57. ann

    https://dev.narayana.im/narayana/gajim-otrplugin here we go: experimental OTR plugin for Gajim, now updated for 1.9.

  58. ong

    nice kek

  59. ong

    what otr version is dis?

  60. ann

    OTRv2/3 afaik

  61. ong

    bussin

  62. ann

    and that little one that just adds pixel-perfecy for some esthets https://dev.narayana.im/narayana/gajim-avatarshapeplugin

  63. ong

    beautiful

  64. ann

    now avatars looks like here

  65. ann

    https://im.ebala.net:5821/upload/wUisaNURROxNUZpd4f0bn2Gi/076c911d-4ed8-4c04-a26c-a96728f6ca76.png

  66. ann

    I hope some day we'd be upstreamed, but for now devs are just angry and hardcoded allowed encryption plugins https://dev.gajim.org/gajim/gajim/-/blob/master/gajim/gtk/message_actions_box.py?ref_type=heads#L505

  67. ann

    :(

  68. ann

    so we do need to maintain ugly hacks that will allow to set OTR as one of encryption methods, which changes from version to version, instead of implementing Social-Millonaire Protocol and proper key management

  69. ong

    do you guys sue otr to talk to legacy clients still?

  70. ong

    or keep existing identities?

  71. ann

    otr is means literally off the record, so it is a bit different then OMEMO just theat it as a "Secret chat" in Telegram, where multi-device E2E is not supposed to be, as if it be physically compromised. we have some not legacy xmpp clients with otr support - monocles im, conversations classic (our fork, in nearest furture), psi-plus, and some legacy, like mcabber.

  72. ann

    there are not so legacy clients like monocles(android) and psi(linux/win) with otr support, why not, it also has better way to verify each other using SMP

  73. ong

    ah so like otr on telegram

  74. ong

    or otr on irc

  75. ong

    you want to use it from your xmpp client

  76. ong

    i can vibe with that

  77. ann

    it is already possible, in monocles, psi-plus, conversations legacy, and now in gajim 1.9 with this ugly plugin that works, but with limited (not implemented, I'd say) capabilities of key management and fingerprint verification as well as SMP support.

  78. ann

    and in our plugin, we sending hints not to store in MAM and not to use message carbons, so nothing is disrupted anywhere.

  79. ong

    gyatt dayum

  80. ann

    if the developers give us a chance to be another supported encryption method, we'd implement key management and verification processess, as well as SMP, but they won't, end of story </troll> :}

  81. ong

    wut u guys think about otrv4?

  82. ann

    it is still draft

  83. ann

    what we should think

  84. ong

    it's over

  85. ong

    i blame cloudflare

  86. ann

    in bright future we will altogether with matrix and signal use MLS

  87. ann

    but it seems there is a nuance somewhere

  88. ong

    hm

  89. ong

    I don't think they want ppl using non uniform encryption probably because mls allows for flexibility

  90. fjklp

    in what situation do we expect to see a pink unlocked lock next to the timestamp of each message in a chat?

  91. bot

    lovetox pushed 1 commits to branch gajim/master fix: Settings: Store account jid in dedicated setting - https://dev.gajim.org/gajim/gajim/-/commit/e26113da31121efc7cf28fc025bb607cf8cef708

  92. bodqhrohro

    > fjklp: > in what situation do we expect to see a pink unlocked lock next to the timestamp of each message in a chat? Unencrypted messages?

  93. lovetox

    fjklp, you seem to have a problem with your icon theme

  94. fjklp

    yes, unencrypted messages

  95. fjklp

    > fjklp, you seem to have a problem with your icon theme what does this mean?

  96. lovetox

    i assumed you dont want pink lock icons :D

  97. fjklp

    what icon theme?

  98. fjklp

    the point is that these icons show up at random

  99. fjklp

    something is broken

  100. lovetox

    show me a screenshot

  101. Link Mauve

    lovetox, yes I did, I built the gajim-git and python-nbxmpp-git packages from AUR.

  102. Link Mauve

    I’ll tell the maintainer of python-sqlalchemy then.

  103. lovetox

    Somebody opened a issue recently

  104. lovetox

    Many applications depend on 1.4

  105. lovetox

    They cannot simply upgrade

  106. Link Mauve

    Ah.

  107. rom1dep

    lovetox: FYI my gajim dosn't start anymore on e26113da3112 ``` /python-nbxmpp/nbxmpp/protocol.py", line 656, in from_string raise InvalidJid('Unable to parse "%s"' % jid_string) from error nbxmpp.protocol.InvalidJid: Unable to parse "" ```

  108. lovetox

    Hm check in the config db the account address key

  109. lovetox

    Seems it did not migrate that for some reason

  110. lovetox

    Check the user version of the db

  111. fjklp

    https://upload.gajim.org:5281/upload/O6oWSJo1jtrfj2ue_Q4YLrTe/321ad11d-9ba9-4305-aff4-1db46b01d754.png

  112. fjklp

    when I loaded that chat, every message had that icon. Then I switch to a different chat. Then switch back to that one and the icons are gone.

  113. meson

    fjklp: Sweet :P

  114. fjklp

    it seems to only happen when there are unread messages before viewing the chat

  115. lovetox

    Is it a group chat?

  116. fjklp

    yes

  117. lovetox

    This is shown if encryption is enavled

  118. fjklp

    encryption is not possible in the chat I got that screenshot from

  119. lovetox

    As we have default encryption if the chat supports or the setting can change depending on MUC config

  120. lovetox

    fjklp: currently, but it was maybe back then

  121. lovetox

    It depends on what the owner configures

  122. fjklp

    are you saying these random changes are expected?

  123. fjklp

    this happens in many different chats

  124. fjklp

    > fjklp: currently, but it was maybe back then I don't know what you mean by "back then"

  125. rom1dep

    > Check the user version of the db 6

  126. rom1dep

    > Seems it did not migrate that for some reason looks like I have "name" and "hostname" keys there but no account address

  127. lovetox

    Ok set it back to 5

  128. lovetox

    And restart

  129. rom1dep

    looks like I'm back :) thanks lovetox

  130. lovetox

    really weird, seems your db was already on the version and skipped migration because of that

  131. bot

    lovetox pushed 1 commits to branch gajim/master revert: Windows: Temporarily downgrade gobject-introspection - https://dev.gajim.org/gajim/gajim/-/commit/ae01edfc603836d629ca6e9266467f6d583598e9

  132. lovetox

    fjklp, in all groupchats? only specific ones? maybe on the same server?

  133. lovetox

    you need to dig a little, you are the only person until now that reports this behavior

  134. lovetox

    the icon shows if you enable encryption, then Gajim tells you which messages are unencrypted

  135. lovetox

    my guess is something triggers that your encryption setting for a particular chat changes

  136. lovetox

    i dont see any commit in June that could have triggert this

  137. lovetox

    so my guess is it has to do something with the particular chats you are seeing that

  138. etherport

    How do I actually answer a VoIP call? I get a notification saying that I'm being called but I don't see a popup anywhere or anything in the app that would let me answer the call

  139. lovetox

    featue is unmaintained and probably very borken

  140. lovetox

    featue is unmaintained and probably very broken

  141. cal0pteryx

    > really weird, seems your db was already on the version and skipped migration because of that lovetox: maybe one of my MRs which rom1dep checked out once

  142. lovetox

    hm so there is the request to not downgrade the encryption setting if a server or MUC owner changes the settings of the MUC so that encryption is not possible

  143. lovetox

    basically just telling the user that encryption is not possible, but also dont allow to send messages, until i guess the user downgrades encryption themself

  144. lovetox

    but this also would mean to enable the encryption button again for all chats, currently its disabled with a tooltip

  145. rom1dep

    > lovetox: maybe one of my MRs which rom1dep checked out once sounds likely :)

  146. astanad

    Hello guys ! does ejabberd server support SCRAM-SHA256 ?

  147. lovetox

    you need to ask in the ejabberd support chat

  148. astanad

    it use scram-plus

  149. fjklp

    > you need to dig a little, you are the only person until now that reports this behavior I'll study it more. I can say confidently that it's happening on more than one server. I think it also only happens where there are unread messages. Should I be taking note of all the muc settings where it happens? Any other info?

  150. fjklp

    the annoying this is that it sometimes takes awhile to happen again. Maybe I need to post my own messages to test.

  151. fjklp

    I accidentally started up gajim from git and I haven't yet merged my main db into flatpak. I killed it after about 1 second. Should I expect that something will be messed up?

  152. lovetox

    its unclear what your setup is, what merging a db into flatpak means ..

  153. lovetox

    also which versions you run ..

  154. fjklp

    my main db is from before the db change. It's in ~/.local/share/gajim. Flatpak is current nightly, so I meant that my main db is still the old version, except that I started a current git version briefly.

  155. cal0pteryx

    There is a copy of your old database if the migration started

  156. fjklp

    Looks like it didn't start migration. There is only one logs.db. But I noticed that logs.db got an updated modification time. I guess it should be alright then.