XIO

xWire

Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.

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…

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…

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 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…

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 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 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…

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