-
luna
curious, will Gajim have any plans for parsing xmpp: URIs especially for account invites?
š 1 -
Kris
> curious, will Gajim have any plans for parsing xmpp: URIs especially for account invites? š ↺
-
lissine
https://dev.gajim.org/gajim/gajim/-/issues/11745
-
Kris
Ok do the plan is there at least š✎ -
Kris
Ok so the plan is there at least š ✏
-
Kris
Does Dino support this?
-
Kris
Hmm apparently not
-
lissine
No https://github.com/dino/dino/issues/232
-
Kris
Ugh, very stale issue š¢
-
luna
> https://dev.gajim.org/gajim/gajim/-/issues/11745 Huh, there has been no further activity whatsoever? But anyone can still contribute to that issue? :o ↺
-
Kris
Well, if there was no plan to add that someone woukd have probably closed the issue by now.✎ -
Kris
Well, if there was no plan to add that someone would have probably closed the issue by now. ✏
-
moparisthebest
who closes issues ? gajim has 240 open and dino has 530 :)
-
dln9mobster
How do I select several - but not all - messages in one conversation and delete them all at once?
-
lovetox
moparisthebest: hm and over 10.000 closed?
š 1 -
egnun
Good morning folks, I saw that there is a feature block contact ("Kontakt sperren"). I was wondering, is there also a way to unblock contacts?
-
lovetox
egnun: check the accounts advanced menu
-
lovetox
Does message menu select messages then delete not work?✎ -
lovetox
dln9mobster: Does message menu select messages then delete not work? ✏
-
nigel
>> I was asking because of how fast you translated it š > ah, no i'm just a strange person and I read lot of XMPP dev channels :D ⤠↺
-
moparisthebest
> moparisthebest: hm and over 10.000 closed? š ↺
-
killathegoat
Hello all
š 2 -
jonasā
is it known that gajim re-orders messages sometimes?
-
jonasā
poezio shows me a different order for messages in a MUC than gajim.
-
jonasā
this has caused quite the confusion right now.
š 1 -
maximus
hello, I've noticed that after a while that gajim is running in the background, the tray icon suddendly disappears even though the application is still running
-
maximus
and you have to close and reopen to make it appear again
-
maximus
is it a known issue?
-
lovetox
jonasā, depends but yeah this can happen in multiple scenarios
-
lovetox
if you compare side by side clients
-
emru
maximus, sounds like GTK4
-
maximus
emru, you think it's a gtk issue?
-
lovetox
no GTK4 does not provide a tray icon anymore
-
maximus
oh ok
-
lovetox
so its either a issue with the app that draws the draw icon
-
emru
but if you had for a moment, and then it disappears, I think it's something different
-
lovetox
or some problem with the dbus connection in gajim which should show in the logs
-
maximus
I use waybar btw
-
jonasā
lovetox, okay, why? MUC has a fixed message order, why does gajim reorder messages?
-
Link Mauve
jonasā, one reason I could think of is 0203 delays, another is 0308.
-
jonasā
Link Mauve, neither was the case (delays are shown by poezio differently, right?) and the message wasn't edited.
-
Link Mauve
Indeed.
-
lovetox
jonasā, we sort by timestamp
-
jonasā
with which precision?
-
lovetox
its a integer
-
jonasā
that doesn't answer the question :D
-
lovetox
depending on the server
-
jonasā
what does the server have to do with that?
-
lovetox
because it decides the precision
-
jonasā
where does the timestamp come from, then?
-
lovetox
i can come from the server or the users machine
-
jonasā
normal message stanzas don't have timestamps
-
jonasā
and when it comes from the users machine, which precision do you use?
-
lovetox
whatever the machine gives us, usually ms
-
jonasā
so those messages must've arrived in the same millisecond to be reordered?
-
lovetox
thats impossible
-
lovetox
because message processing takes more then 1 ms
-
jonasā
does gajim store the original, unaltered message XML somewhere?
-
jonasā
oh
-
jonasā
wait
-
jonasā
I got those from MAM
-
jonasā
right
-
jonasā
so the MAM likely has second precision
-
jonasā
and gajim does nothing to disambiguate
-
jonasā
are there plans to fix that?
-
lovetox
why are you assuming that
-
jonasā
assuming what?
-
lovetox
what you just said 2 sentences ago
-
jonasā
that gajim does nothing to disambiguate?
-
lovetox
yes
-
jonasā
well because the order I see in poezio differs from the order I see in gajim.
-
jonasā
(and the order other people see also differs from what I see in gajim)
-
lovetox
yes still assumptions
-
jonasā
alright, what *does* gajim do to disambiguate?
-
lovetox
it sorts by time and insertion order in the database
-
lovetox
but your theory is easy to test, create a muc on the server, send 2 messages in the same second (should be easy) watch MAM stanzas flow in
-
jonasā
which column contains the insertion order? I only see `timestamp`.
-
jonasā
(in the `message` table)
-
Timestamp
i just got pinged, lmao
š 1 -
jonasā
sorry for that :D
-
lovetox
the column "pk"
-
jonasā
that's the rowid
-
jonasā
in sqlite
-
jonasā
without AUTOINCREMENT, sqlite may reuse rowids
-
jonasā
(that the pk got mapped to the rowid can be confirmed by looking at the output of `select rowid, pk from message where rowid != pk limit 10;` and `select rowid, pk from message limit 10;` (where it shows `pk` as column header for both). and the claim that without AUTOINCREMENT, things may get reused is noted here https://sqlite.org/autoinc.html )
-
jonasā
so apologies for my assumption there, I didn't expect to fall into the rowid rabbithole today.
-
jonasā
gotta run for lunch now, see you later.
-
lovetox
ok before i read into that, it would be interesting what this query returns on your machine
-
nigel
hmm, Gajim 2.1.0 (Arch Linux) doesn't want to remove account or a server that doesnt exist anymore, and Disabling the Account first doesnt work; it switches it back on when my back is turned. Removed an account that does exist just fine. Just a heads up, think I'll nuke it and pave over
-
lovetox
nigel, bevor you pave over, please check the debug logs and send me what it says once you try to disable the account
-
nigel
can do.
-
lovetox
disabling an account should have nothing to do with the fact if this account is sable to connect or not
-
nigel
umm, never done that before haha
-
mrdoctorwho
seems like pasting files to the gajim window with ctrl+v is not working anymore
-
lovetox
preferences -> advanced -> enable debug logs, and restart
ā¤ļø 1 -
mrdoctorwho
(gajim:56192): Gtk-WARNING **: 11:28:54.082: Trying to measure GtkGrid 0x562fa8769f50 for height of 260, but it needs at least 1339 Traceback (most recent call last): File "/home/gajim/gajim/.venv/lib/python3.13/site-packages/gajim/gtk/message_actions_box.py", line 884, in _on_clipboard_read_value_finished file_list = clipboard.read_value_finish(result) gi.repository.GLib.GError: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Invalid transfer (9)
-
nigel
oh ffs.... as soonas debugging turnde on, ti worked nistantly.✎ -
nigel
oh ffs.... as soonas debugging turnde on, it worked instantly. ✏
-
nigel
oh ffs.... as soon as I turned debugging on, it worked instantly. ✏
-
nigel
I had restarted client several times and it still would not disable nor remove.
-
nigel
debugging on, restarted, account, Remove, succesful instantly.
-
lovetox
mrdoctorwho, no idea what that error means but on first glance i would say thats not a problem in Gajim
-
mrdoctorwho
lovetox, the same file can be pasted to chrome, but not in gajim for some reason
-
mrdoctorwho
I also upgraded my distro release, maybe that could be the cause though
-
nigel
> preferences -> advanced -> enable debug logs, and restart DM sent with log file, in case it is useful. Thanks. ↺
-
Link Mauve
Weird that it would use DBus for transfers, I would expect Wayland to be used instead.
-
lovetox
mrdoctorwho, are you using flatpak?
-
lovetox
We request a file type Gdk.FileList
-
lovetox
docs says, Gdk will try to convert content if it does not fit the type, i assume something fails there
-
mrdoctorwho
lovetox, no, but gajim is running under a different user, plus using xwayland, which likely does not have access anywhere and dbus is not running there. Although the file I'm pasting has the 777 access. I recall it was working just yesterday, but today I upgraded both fedora release and gajim
-
lovetox
we didnt change anything on the code for a long time
-
lovetox
access denied seems to hint to a problem with permissions
-
mrdoctorwho
lovetox, could you maybe suggest where to look? As I said, the file has 777 permissions, plus the same file can be pasted into chrome without any issues
-
mrdoctorwho
chrome is running under a different user as well
-
mrdoctorwho
so there is the user A which has copied the file, then there are users G and C (running gajim & chrome). Gajim can't retrieve the file, but Chrome can
-
lovetox
no sorry, i have no clue about linux internals regarding how clipboards operate
-
lovetox
all we do is call a API from GLib Clipboard.read_async()
-
lovetox
and the error tells us that we are not allowed to read the clipboard for whatever reason
-
cal0pteryx
I'll add a fix to catch the error (same for pasted text)
-
lovetox
cal0pteryx, in case of exception please also print a debug log what the content of mime_types is
š 1 -
mrdoctorwho
if you copy the file to clipboard under the gajim user, it works fine
-
jonasā
lovetox, https://paste.debian.net/hidden/1a8d7598/
-
lovetox
i dont understand the query, it says that row_id = pk if we dont use autoincrement
-
lovetox
so what sense would it make to select row_id != pk?
-
jonasā
it was meant to prove that✎ -
jonasā
it was meant to prove exactly that ✏
-
lovetox
it return no results, and thats what we would expect here
-
jonasā
I wanted to make sure that the table indeed uses rowid for pk
-
jonasā
before making the claim that this might be a problem without AUTOINCREMENT
-
jonasā
(having burned by unfounded claims before today :-))✎ -
jonasā
(having been burned by unfounded claims before today :-)) ✏
-
lovetox
i read a bit into it, and you are right rowids can be reused, but the way they would be reused is not a problem for our sort algo
-
lovetox
the standard row id picking is still incremental from the max row id in the current table
-
lovetox
and thats whats important
-
lovetox
its just that when you remove the last 100 rows, it reuses these 100 row ids, but again still incremental
-
lovetox
with the only exception from that rule if you go over MAX ROW ID
-
lovetox
which is a number so big that you would need to pull all messages from all xmpp servers in the history of humanity
-
jonasā
that seems correct
-
jonasā
makes me scratch my head as to what went wrong here
-
jonasā
the rowid of the first message is larger than the rowid of the second message.
- jonasā joins with a fresh account to sniff the exact order of MAM responses somehow
-
lovetox
which would tell us that we received the first message later, and its indeed not the first message
-
jonasā
is there some kind of gajim XML console?
-
lovetox
yes, under View menu
-
jonasā
ah, the protocol tab in the debug console, thanks
-
lovetox
and do the 2 messages have the same timestamp in the database?
-
jonasā
yes
-
jonasā
so
-
jonasā
the MAM response indeed has the wrong order
-
jonasā
I rest my case and stand confused.
-
lovetox
did you type the messages and send it, maybe its time to question that information
-
jonasā
I don't understand that question
-
lovetox
did you send the messages yourself? as you are so sure about the correct order
-
jonasā
no
-
jonasā
but three other clients agree on the order
-
jonasā
it's just my gajim from mam which disagrees
-
lovetox
so the other clients might received the message live
-
lovetox
which is still weird, that the server would insert it with a different order into the database
-
lovetox
but as said should be easy to reproduce, sending messages in the same second can be done by a human
-
mesonium
jonasā: my Gajim, Dino and Conversations show the same order of the confusing two messages fwiw. First 2.jpg and then 1.jpg All fetched from mam
-
jonasā
lovetox, if that was indeed the reason and not some complicating circumstance. in any case, gajim is doing nothing wrong here. Thanks for the patience.
š 2 -
wildegim
Hello everyone. I just joined this group because I have a question about Gajim. If I upload a file on an XMPP server in a private chat encrypted with OMEMO, is the file name encrypted (or changed) as well?
-
lissine
jonas', FYI prosody 13 supports sub-second precision timestamps
-
lovetox
wildegim, no, filename stays the same
-
lovetox
and is not encrypted
-
wildegim
> wildegim, no, filename stays the same Ok thanks. Maybe an option to at least randomize the name would be a good idea š¤ Has it ever been explored as far as you know?✎ -
lovetox
there are better long term solutions
-
wildegim
> wildegim, no, filename stays the same Ok thanks. Maybe an option to at least randomize the name would be a good idea? š¤ Has it ever been explored as far as you know? ✏
-
wildegim
> there are better long term solutions Which ones? š¤
-
lovetox
randomizing the filename will be part of the long term solution, but right now we cannot send the original filename with the message, which means its lost
-
lovetox
someday we will be able to send that, and then you can have both things, random filenames on the server, but real filename in your client
-
wildegim
> someday we will be able to send that, and then you can have both things, random filenames on the server, but real filename in your client This is much better than randomization only... Does this require a support from the XMPP standard or only from the client?
-
lissine
> someday we will be able to send that, and then you can have both things, random filenames on the server, but real filename in your client Will this be a new spec (based on XEP-0454 or entirely new) or is it already specced?
-
wildegim
It seems like that the relevant pull request has been closed: https://dev.gajim.org/gajim/gajim/-/merge_requests/588
-
EXWM-user
Hi, has anybody experience with EXWM here? I am experiencing issues after updating to gajim 2.0 (and later) regarding the send-key functionality of EXWM. It looks to me like the user interface toolkit GTK 4 and EXWM are not interacting well. The issue is that I cannot send control keys, e. g. CTRL-C, to gajim anymore. It worked well before gajim 2.0 and it still works with other applications like firefox. Any hints highly welcome! Thanks.
-
lissine
wildegim: randomizing the filename will keep it a secret from the server, but will also keep it a secret from the receiver. A better thing would be to randomize the file name, and send the original filename omemo-encrypted in the upload's metadata
-
lissine
Though I'm not sure if this has been proposed as a protocol extension yet.
-
lissine
Randomizing the filename can be a good intermediary step for now.
-
EXWM-user
Talking about this: https://github.com/emacs-exwm/exwm/wiki#simulation-keys
-
wildegim
> wildegim: randomizing the filename will keep it a secret from the server, but will also keep it a secret from the receiver. > A better thing would be to randomize the file name, and send the original filename omemo-encrypted in the upload's metadata Yes, I have understood this. I noticed now that the pull request I linked does only half of the job. I would propose to open a full issue on the Gitlab to discuss on this, because I believe this feature is of utmost importance, since I notice that uploading a file on a server, exposes it via HTTP to *everyone*.
-
wildegim
Which normally is not a problem if it is encrypted and the encryption key is not present, but if the filename reveals its content (e.g. a popular image on the internet, "political-party-A-manifesto.pdf" and so on) encryption becomes useless.
-
Link Mauve
wildegim, everyone who knows the URL, which should be only you and the recipient(s) and the server admin who can do a ls in the right directory.
-
Link Mauve
Thatās far from everyone.
-
lovetox
EXWM-user, as i understand it this happens before the toolkit gets it, as it translates some keys before sending it to the window
-
egnun
> egnun: check the accounts advanced menu lovetox: Thanks. The list ist empty. Also Dino didn't show the contact as blocked.
-
lovetox
egnun, then the contact is not blocked.
-
lovetox
EXWM-user, maybe check other GTK4 applications, to see if it affects other apps as well
-
egnun
Ah, but if I try to block a contact again, it now gives me the warning again.
-
lovetox
and after you block it, and reopen the dialog, the address does not show up in the blocking list?
-
EXWM-user
lovetox: Thanks. Yes, it uses xcb:SendEvent to simulate a key. The thing is, that this worked with gajim < 2.0 and stopped working with gajim >= 2.0. And the suspicious change is about using GTK 4.
-
wildegim
> Thatās far from everyone. But by knowing the URL everyone can check. If the server has a security vulnerability that allows for directory enumeration users are screwed. For instance, conversations.im saves all files sent by a user under a directory called <username> and the link has the structure share.conversations.im/<username>/randomstring/<filename>. If I, as an attacker, can somehow do an ls -R I can see every file uploaded by <username> with cleartext filenames.✎ -
EXWM-user
lovetox: Good idea. I will try that.
-
wildegim
> Thatās far from everyone. But by knowing the URL everyone can check. If the server has a security vulnerability that allows for directory enumeration users' privacy is at stake. For instance, conversations.im saves all files sent by a user under a directory called <username> and the link has the structure share.conversations.im/<username>/randomstring/<filename>. If I, as an attacker, can somehow do an ls -R I can see every file uploaded by <username> with cleartext filenames. ✏
-
lovetox
wildegim, yes using a random file name is better security
-
lovetox
but using the real one is better user experience right now
-
lissine
Maybe use a random filename for encrypted uploads, and the original filename for unencrypted ones.
-
wildegim
lovetox, since the final idea is to have both (i.e. the server seeing a random name and the user the right one), would it be a good idea to open an issue to track efforts in implementing this?
-
lovetox
https://dev.gajim.org/gajim/gajim/-/issues/11470
-
lovetox
there is already an issue
-
hannibal
I get a Gtk-WARNING when hovering the edited icon ``` > Failed to set text 'Message corrected. Original message: > Thatās far from everyone. But by knowing the URL everyone can check. If the server has a security vulnerability that allows for directory enumeration users are screwed. For instance, conversations.im saves all files sent by a user under a directory called <username> and the link has the structure share.conversations.im/<username>/randomstring/<filename>. If I, as an attacker, can somehow do an ls -R I can see every file uploaded by <username> with cleartext filenames.' from markup due to error parsing markup: Error on line 5 char 46: Element āmarkupā was closed, but the currently open element is āusernameā ```
-
wildegim
> https://dev.gajim.org/gajim/gajim/-/issues/11470 Wow, thanks š
-
bot
lovetox pushed 1 commits to branch gajim/master fix: Chat: Donāt fail in some cases to show correction/error tooltip - https://dev.gajim.org/gajim/gajim/-/commit/d0ae74a0b2f77c07f9a426546fb7fd9df547e5de
-
lovetox
fixed hannibal
-
hannibal
thanks
-
luna
question regarding creation of group chats in Gajim: is there a way where you have a group chat that has this: 1) people, who aren't part of the server in which the group chat is based in, wishing to join inside need to be invited by a member of said server 2) the group chat is however visible for anyone that is a member of said server and even is visible to them for them to join?
-
lovetox
1) if your server federates with other servers it does not matter where a groupchat is, and yes you can configure a groupchat to be invite only
-
lissine
luna: that's solved on the server side
-
lovetox
2) there is a global groupchat search in Gajim, some clients offer you to search your home server for groupchats, but they still need to be invited
-
luna
ohhh, so like, I can't have more finer grained control regarding who gets in?
-
lovetox
no, just invite only or public
-
luna
dang, but yeah
-
lissine
luna: you could make the group invite-only, add everyone in your server to the group, and allow them to invite other users
-
lissine
But once users from other servers join, you can't prevent them from inviting other users
-
lissine
you could write a prosody module that allows you to restrict group invites to the group's admins. Then you can make all your server's users admins in the group, and you'll have the desired behavior✎ -
luna
oh huh
-
lissine
you could write a prosody module that allows you to restrict the group invites permission to the group's admins. Then you can make all your server's users admins in the group, and you'll have the desired behavior ✏
-
luna
but isn't that kinda a hack?
-
luna
have there been XMPP proposals to expand more upon permissions regarding chat?
-
lovetox
your "permission only for people on my server" is not a use case i ever heard
-
lovetox
people invite other people into groupchats and manage them on their own
-
lovetox
they should not need to care on which server another user is registered
-
luna
I mean, I'm big into having much more customization but fair
-
luna
because I'm mostly worried about moderation if I have a public chat that is listed
-
luna
in that area, are there even like, moderation bots for that, or similar?
-
lovetox
what does a moderation bot do?
-
luna
filter out any messages containing inappropriate words? spammers?
-
lovetox
servers have anti spam measures, like limits on how much you can send
-
lovetox
but yeah, if you operate a big chat, you need people to moderate it
-
lovetox
like any community
-
luna
i mean, isn't that exactly also good, having a bot on top of moderators?
-
lovetox
nobody stops you from writing a bot
-
luna
okay... but are there any, if someone has already implemented them?
-
lovetox
maybe, im not aware of any
-
lovetox
i think you overthinking stuff a bit, think about that if you manage to get a groupchat that has so many users that something needs to be automated
-
lovetox
this is a groupchat with 400 people, and we never had the need for a moderation bot
-
luna
ah fair, i prolly don't need it if i don't have many people in the gc
-
luna
as long as they are chill so yeah!!
-
lovetox
you are in luck, xmpp is not that popular that you need to fear that many people join your chat :d
⤠3 -
luna
oh dam, yeah!!
-
luna
but yup, I usually always think first with security and privacy in mind before anything else
-
luna
as you can see that c:
-
luna
thank you for letting me know in case!!
-
toastal
RE rejoining room issue: I enabled `mod_private` in Ejabberd & everything seems to work now. Very strange.
-
lovetox
toastal, i fixed a bug recently that can lead to not joining rooms after standby
-
toastal
Neat
-
toastal
Also neat: hello, world from Cheogram from Sailfish OSās AndroidApp Support
š 1 -
jamie
I recently noticed that typing a few letters of a user who is in the chat and hitting tab no longer auto completes their usernames (instead I get a tab character). Any suggestions on how to debug this problem?
-
moparisthebest
jamie: its removed in 2.0
-
cal0pteryx
jamie, try "@"
-
moparisthebest
Now you have to @ like the bad systems, slack etc
-
jamie
ahhhh. I see - thank you!
-
dln9mobster
> dln9mobster: Does message menu select messages then delete not work? It does, but no option to delete appears, and pressing the deletion key also does nothing. Deletion option appears only when I select only one message. ↺
-
lovetox
in the message menu, it says "Delete messages locally"
-
lovetox
ah yeah
-
lovetox
hm seems we didnt implement multiple delete yet
-
lovetox
do you really want to delete specific messages, or everything?
-
lovetox
we have a option for everything
-
EXWM-user
lovetox: You are right. It looks like my issue is a thing between exwm and gtk4 in general. Because I could reproduce it with another gtk4 application and not just gajim. I will file a bug for exwm. Thanks a lot!
-
dln9mobster
> do you really want to delete specific messages, or everything? Well, sometimes all messages (but without deleting the conversation), and sometimes a number of messages, but not all. ↺
-
lovetox
all messages, you can do in the chat settings
-
lovetox
multiple message delete is on the feature list
-
nigel
> you are in luck, xmpp is not that popular that you need to fear that many people join your chat :d ⤠↺
-
nigel
> Also neat: hello, world from Cheogram from Sailfish OSās AndroidApp Support š ↺
-
bot
lovetox pushed 1 commits to branch python-nbxmpp/master change: Retraction: Rewrite parsing code - https://dev.gajim.org/gajim/python-nbxmpp/-/commit/b9d6b25c55ec437294a998291da3018f7eca8957
-
bot
lovetox pushed 1 commits to branch gajim/master cq: Message: Add type annotations - https://dev.gajim.org/gajim/gajim/-/commit/1550705a99c23717fb736e6d3103a4dde0a2e036