gajim activity
László Károlyi commented on merge request !1411 at gajim / gajim
You're right, that order defeats the purpose of the inhibitor. I released it first so that a core shutdown that blocks or raises could not keep the session waiting for its timeout. But a raise is handled just as well by releasing in a finally. A block is bounded by the session's inhibitor timeout anyway, so the worst case is a slow logout. Releasing first instead lets the session terminate Gajim in the middle of the commit, and the restored default SIGTERM handler would then kill it…
lovetox commented on merge request !1411 at gajim / gajim
But why do we release the inhibitor before _shutdown_core() ? this is the whole reason we hold a inhibitor to ensure that the database can commit all outstanding transactions.
João Sacramento opened merge request !1414: imprv: ContactPopover: Simplify the context menu of links at gajim / gajim
Based on !1413; only the last commit is new. Problem Right-clicking a link in the contact popover (XMPP address, email, phone number) shows GTK's default context menu for labels. It always lists Cut, Copy, Paste and Delete, but they do nothing: the label is not editable and nothing is selected. Only Select All works. To copy the plain address, one has to choose Select All and then Copy. "Copy Link Address" copies the URI with its scheme (xmpp:, mailto:, tel:). Before (Gajim 2.7.0): Fix Handle…
mesonium commented on merge request !1412 at gajim / gajim
The comment mostly restates what the code does.
László Károlyi commented on merge request !1411 at gajim / gajim
Thank you for testing! I guess this MR is good to go then.
João Sacramento opened merge request !1413: fix: ContactPopover: Close popover when a link is activated at gajim / gajim
Problem Activating a link in the contact popover (the XMPP address, email or phone number) opens its target but leaves the popover open: With several accounts, the XMPP address opens Start / Join Chat, and the popover stays visible behind that window. With one account, the address opens the chat directly. If that chat is already shown, nothing seems to happen and the popover just stays open. The info rows of the popover were also never finalized: the template callback for activate-link kept a…
João Sacramento commented on issue #12809 at gajim / gajim
Thanks! Opened !1412: "Edit…" now edits the selected message, Ctrl+Up still edits the last one. The one-hour limit is unchanged for now. If that's one of the problems we hit, it's a one-line change.
João Sacramento opened merge request !1412: fix: Edit the selected message instead of the last one at gajim / gajim
Fixes #12759 Fixes #12809 Problem "Edit…" in a message row's menu is shown for every correctable message, but it always edited the last sent message, regardless of which row was clicked. Fix Add a win.edit-message action with the message's pk as parameter; the row menu uses it. win.correct-message (Ctrl+Up) still edits the last message. The shared part of starting a correction moves into _start_correction(); the message is looked up within the current chat and must pass…
boyska commented on issue #12874 at gajim / gajim
nice feature! I'm not sure how convenient it would be for our setup, though: while environment variables are easy to set globally before the install (in ~/.local/share/flatpak/overrides/org.gajim.Gajim), I'm afraid this solution would be much more complex, and we will end up not implementing it.
João Sacramento commented on merge request !1407 at gajim / gajim
I could reproduce the duplicate displayed marker and pushed a fix to the same fork branch. Cause: in _publish_remote(), send_chat_marker was only cleared when the server supports MDS assist. Without assist (jabber-germany.de doesn't advertise urn:xmpp:mds:server-assist:0), the pending state kept send_chat_marker=True after the marker was sent. When the in-flight publish was confirmed, _on_mds_published() republished the newest pending state and sent the marker for the last message a second…
João Sacramento commented on merge request !1407 at gajim / gajim
@mesonium the two patches are on my fork, on top of your current branch (e99eb7e6): 1e6c65786 change: Storage: Remove fallback for contact values 3c86df5e9 change: Storage: Only resolve unique received message ids for markers GitLab doesn't let me open an MR into another fork, so to take them: git fetch https://gitlab.com/JoaoSacramento/gajim.git mds-review-fixes git cherry-pick 1e6c65786 3c86df5e9 The second one keeps stanza-id matches as they are. For message-id matches, it only considers…
João Sacramento commented on merge request !1407 at gajim / gajim
Thanks! Going through them: _set_contact_values(): I checked it. EpochTimestampType stores a float (datetime.timestamp()), so two writes with the same timestamp practically never happen; the upsert only returns None when the stored timestamp is newer than now, e.g. after the clock went backwards. To verify, I logged a warning in the fallback branch and used Gajim with this MR for a while: MDS read states at login, saving and clearing drafts, renaming a contact and renaming it back. The fallback…
João Sacramento commented on merge request !1411 at gajim / gajim
@karolyi Thanks for the thorough analysis and the trace; that explains why !1400 (merged) wasn't enough on your machine. I tested this MR on macOS. There's no session manager or portal here, so I simulated a session end: emit query-end, then quit the application from an idle callback, like GTK does on ENDING. Normal quit (Cmd+Q): unchanged, Shutdown core → Shutdown complete, no "Main loop ended" warning. SIGTERM while running: clean shutdown, the process ends. Simulated session end: Release…
lovetox pushed to project branch master at gajim / gajim
lovetox (cc8bf1a8) at 25 Nov 21:34 cfix: WorkspaceListbox: Skip updating unread count on deletion
lovetox accepted merge request !1404: fix: WorkspaceListbox: Skip updating unread count on deletion at gajim / gajim
If a workspace gets deleted, all its chats are marked as read, which may trigger an unread count change for the workspace itself. Simply skip the update, when workspace does not exist anymore. Testplan Create workspace Have a chat with unread messages, the workspace should show unread messages too Delete the workspace Deletion no longer triggers an exception.
lovetox accepted merge request !1405: fix: Styling: Don't include trailing punctuation in links at gajim / gajim
Fixes #12772 (closed) Problem _parse_uris() only trimmed one trailing comma (and a closing parenthesis). A link at the end of a sentence included the full stop, colon, semicolon, question or exclamation mark: see https://example.com. linked https://example.com., which opens a wrong page. The same happened for addresses (user@example.com.). Fix Trailing . , : ; ! ? are trimmed from a match (repeatedly, e.g. ?!), also before a trimmed closing parenthesis ((see https://example.com.)). Punctuation…
lovetox pushed to project branch master at gajim / gajim
lovetox (b66eb916) at 25 Nov 21:13 fix: Styling: Don't include trailing punctuation in links
lovetox closed issue #12772: URLs hyperlinking parsing includes the period (.) dot at the end of sentences at gajim / gajim
Versions Gajim 2.5.0.1 from Flathub, running on Fedora 44's GNOME 50.3 GTK Version: 4.22.4 Adw Version: 1.9.2 GLib Version: 2.88.2 Pango Version: 1.57.1 PyGObject Version: 3.56.3 cairo Version: 1.18.4 pycairo Version: 1.29.0 python-nbxmpp Version: 7.3.0 libsoup Version: 3.6.6 Steps to reproduce the problem Receive a message like this in a 1:1 chat (or presumably a MUC too): Hello Alice, please have a look at this wonderful website : https://example.com. Thanks! Expected behavior…
lovetox closed issue #12772: URLs hyperlinking parsing includes the period (.) dot at the end of sentences at gajim / gajim
Versions Gajim 2.5.0.1 from Flathub, running on Fedora 44's GNOME 50.3 GTK Version: 4.22.4 Adw Version: 1.9.2 GLib Version: 2.88.2 Pango Version: 1.57.1 PyGObject Version: 3.56.3 cairo Version: 1.18.4 pycairo Version: 1.29.0 python-nbxmpp Version: 7.3.0 libsoup Version: 3.6.6 Steps to reproduce the problem Receive a message like this in a 1:1 chat (or presumably a MUC too): Hello Alice, please have a look at this wonderful website : https://example.com. Thanks! Expected behavior…
lovetox pushed to project branch master at gajim / gajim
lovetox (760de281) at 21 Nov 19:18 fix: ComponentSearch: Don't allow to send invalid form
mesonium commented on merge request !1397 at gajim / gajim
It's a bit odd to import start_chat here. Maybe we should refactor it and have a common shared modul, both widgets can use?
João Sacramento commented on merge request !1392 at gajim / gajim
pyinstaller/pyinstaller#9580 is merged (in develop), so builds with the current PyInstaller collect the GdkMacos typelib.
João Sacramento commented on issue #12867 at gajim / gajim
I'll post here once gtk!10733 is merged. Since Gajim's macOS build uses the stable GTK 4.24, I'll also ask for a backport to gtk-4-24, as for the input method fixes (gtk!10746).
mesonium commented on merge request !1396 at gajim / gajim
Might need more discussion first, this was a bit rushed yesterday.
mesonium closed merge request !1395: Some Unread Counter related fixes at gajim / gajim
Commit 1 fix: ChatListRow: Keep unread count until the chat is removed Testplan Have a chat with some unread counter badge Middle click on it: This opens the Confirmation Dialog to leave the chat Before: The unread counter vanished if the dialog was canceled Now: The unread counter stays Commit 2 fix: ChatList: Reset unread count when a chat is removed Testplan Leave a chat Before: The unread count remained in the cache.db Now: The unread count is purged from the cache.db
mesonium commented on merge request !1395 at gajim / gajim
You are right, I am going to solve it differently by switching to run destroy.
lovetox pushed to project branch master at gajim / gajim
lovetox (56ae266e) at 21 Nov 12:03 fix: ComponentSearch: Make search work again ... and 1 more commit