Gajim - 2024-02-10


  1. QStambaugh

    Even chats that have ~1000 people only take a couple of seconds to load up on my slowest laptop (which I'm on right now), and it's from ~2008

  2. fjklp

    It's interesting that switching from a big group chat to a small group chat is a bit slower than small to small. I guess some cleanup has to be done when switching away from a chat.

  3. nicoco

    FWIW, for me the time to switch between chats is OK (even though it would be nice if it was as fast as in the telegram desktop client, and yes, it's better than MS teams), but what's barely usable is the "start chat" dialog. I would like to use it more but the delay between me typing Ctrl+N and being able to actually type the name of the group or contact I want to chat with is off-putting. I tried to improve it by implementing some sort of lazy loading with threads so I can actually type the group or contact name right away after Ctrl+N but failed so far.

  4. lovetox

    nicoco, the way to go would probably, change the filter func so it shows no rows by default

  5. lovetox

    only show rows if there are at least 2 or 3 characters

  6. lovetox

    threads dont help, because the problem is the gui thread creating widgets and need to render it

  7. lovetox

    this cannot be done async, all rendering needs to happen in the GUI thread

  8. lovetox

    async would only help you if the delay comes from IO, like network or disk

  9. nicoco

    lovetox I’ll try to improve the current MRs with your feedback before trying to work on a perf improvement one 😉

  10. bodqhrohro

    Does Gajim still not support Ad-Hoc commands for PM like Psi+ and Cheogram do, huh?

  11. bodqhrohro

    I don't even remember if it ever did, actually.

  12. fjklp

    in the private chat, click the three dot button at top right

  13. fjklp

    I've never used it so don't know if it works

  14. bodqhrohro

    So it was fixed recently? (I still cannot run latest Gajim probably) Or the feature discovery just does not work properly? Cheogram allows to enforce it, it does not work there by default as well.

  15. bodqhrohro

    Oh, libproxy updated in Debian, gonna check.

  16. lovetox

    in PM? this makes not a lot of sense protocol wise

  17. lovetox

    you dont know if behind a user in a muc, is one device or 1

  18. lovetox

    you dont know if behind a user in a muc, is one device or 10

  19. lovetox

    you cannot address a specific resource because you dont see them

  20. bodqhrohro

    Nah, still the same crash when resolving gajim.org.

  21. lovetox

    where would you send an IQ with adhoc commands to?

  22. bodqhrohro

    lovetox: > behind a user in a muc How is that related to users in a MUC?

  23. lovetox

    PM, Private Message this is sending a message to a user in a MUC

  24. bodqhrohro

    My transport provides virtualized users, they always have only one resource anyway.

  25. bodqhrohro

    lovetox: isn't PM writing to a contact by real JID? MUC members are different, some clients name it "whispering" or so.

  26. lovetox

    its called private message in the muc protocol

  27. bodqhrohro

    (and those have one resource actually, as the "resource" is the member nickname)

  28. lovetox

    but ok, so you mean single chat

  29. lovetox

    bodqhrohro, thats just the muc resource, not the resource of the device

  30. lovetox

    IQ you want to reach a specific device

  31. bodqhrohro

    lovetox: yup, and that's why it's unrelated.

  32. bodqhrohro

    I did not even implement MUCs yet lol.

  33. bodqhrohro

    They slowly evolve in a separate branch and would be a major version milestone.

  34. lovetox

    last week a user reported that adhoc to contacts do not work, gajim does not address the adhoc command to the resource

  35. lovetox

    for that we would need some kind of resource chooser dialog

  36. bodqhrohro

    AFAIR, before Gajim allowed to write to a certain resource.

  37. bodqhrohro

    Like I can do in other clients like Tkabber or BombusMod.

  38. lovetox

    yes we dont support this anymore since years

  39. lovetox

    because sending chat message to a resource makes not much sense anymore

  40. lovetox

    but IQs still do

  41. lovetox

    but its currently not supported, though i guess not hard to implement

  42. lovetox

    whats your use case?

  43. bodqhrohro

    lovetox: just numerous commands lol.

  44. bodqhrohro

    They're supported as text commands for a long time already, but I decided to also implement them as Ad-Hoc finally.

  45. lovetox

    you would need to go into more detail, why would i want to send your device a command

  46. bodqhrohro

    lovetox: do you want me to copypaste the command help wall of text? :P

  47. bodqhrohro

    Available commands: https://conference.gajim.org:5281/pastebin/06b917f6-9eb4-4695-9422-752ddba36060

  48. bodqhrohro

    💅

  49. bodqhrohro

    Most of those things are not even natively covered by any XEPs yet.

  50. lovetox

    so this is a bot, and you want to control the bot from a different account?

  51. bodqhrohro

    This is a transport, as I mentioned.

  52. bodqhrohro

    Which provides virtual user JIDs.

  53. lovetox

    a transport as i understand it is a server component which has a domain

  54. lovetox

    it does not have a resource

  55. bodqhrohro

    Yup, those a JIDs on that subdomain.

  56. bodqhrohro

    For the transport itself, I can issue commands via the Service Discovery dialog.

  57. lovetox

    so you want to send a adhoc command to the transport?

  58. lovetox

    you can also simply add a chat now, as we address all adhoc commands to the bare jid

  59. lovetox

    this will work fine

  60. lovetox

    or rather we have a adhoc dialog, and you can trigger it from service discovery or from a single chat

  61. bodqhrohro

    lovetox: no, it has different sets of commands for user JIDs and for the transport's JID.

  62. bodqhrohro

    I'm talking about the former.

  63. bodqhrohro

    Besides of that, I'm also going to implement interaction with Telegram bots, also via Ad-Hoc.

  64. debacle

    lovetox Speaking of adhoc commands: In one public MUC, where I'm owner, I get: `invalid item attributes: AdHocCommand.__new__() missing 1 required positional argument: 'node'` Known problem?

  65. debacle

    When trying to fetch the command list, I guess.

  66. lovetox

    did you implement the adhoc command?

  67. lovetox

    i dont get this error, i would tip on a problem with the stanzas

  68. lovetox

    you would need to send debug logs

  69. debacle

    lovetox No, there probably is none. It's not my server, but I guess the list should be empty?

  70. debacle

    I'll check the stanza right now.

  71. lovetox

    i would expect an iq error, and not an empty list

  72. lovetox

    if no commands are supported

  73. debacle

    lovetox On my iq get (node="http://jabber.org/protocol/commands"), Gajim receives the list of MUC participants as iq result.

  74. debacle

    Btw. the XML console shows SM and presence messages, even if switched off.

  75. lovetox

    yeah please send this to me

  76. lovetox

    so i can take a look at the stanzas

  77. debacle

    done

  78. lovetox

    seems like a invalid disco impl

  79. lovetox

    it ignores the node attribute

  80. lovetox

    and thinks this is a normal disco items request

  81. lovetox

    you can see that it ignores it, because the node attribute is not returned in the answer

  82. lovetox

    which is also not allowed, im pretty sure

  83. debacle

    lovetox It is an older, patched, Ejabberd. AFAIK, it will be upgraded at some point. I'll just check again, when that happened. Not sure, if that will happen this year, though...

  84. cal0pteryx

    > for that we would need some kind of resource chooser dialog lovetox: we have that :) it's used to select a device for jingle file transfers, but the widget is multi purpose

  85. cal0pteryx

    https://dev.gajim.org/gajim/gajim/-/blob/master/gajim/gtk/resource_selector.py

  86. bot

    lovetox pushed 1 commits to branch gajim/master fix: AdHoc: Send adhoc command to resource if there is one - https://dev.gajim.org/gajim/gajim/-/commit/543710538350655698c0cd2c4b80ee1965581631

  87. lovetox

    sch, bodqhrohro ^ next version Gajim will send the adhoc command to the resource if there is one

  88. sch

    Awesome! I will definitely try it out! Thank you, lovetox!

  89. bodqhrohro

    And I have to do something with the libproxy issue finally.