Chats: bridged rooms wear their network's badge #104

Closed
tlasol wants to merge 0 commits from tlasol/fix/room-network-badge into develop AGit
Member

What and why

Telegram groups and channels had no Telegram badge on their picture, while the chats with their people had one. Matrix rooms had none either.

libtacky lists a room in the chat list as room@service?join, and the gateway lookup behind the badge takes a JID with ? for no person's address, so no room in a real chat list ever reached the gateway's domain. The mock and the tests named rooms by their bare JID, which is why nothing caught it.

networkBadges now looks a room up by roomOf(jid). Nothing else of the gateway lookup changes (encryption and the other uses of it stay as they are).

Tests

  • ui/test/network-badge.test.ts: a Telegram group and a Matrix room by their ?join JIDs wear "Telegram room" and "Matrix room", a room of our own server's wears none, and the Telegram group's row in the chat list is badged. It fails without this change.
  • make check STRICT=1 clean.
  • make test-ui: 463 files, 5,471 passed, 8 skipped (macOS, Node 26, NODE_OPTIONS=--no-experimental-webstorage).
  • WebKit smoke on the chat list and Telegram scenes: 37 checks, 0 failed.
  • By hand in a macOS build of this branch on libtacky v1.2.11, with a real Telegram group through tackygram.

Assisted-by: Claude:opus-5-5

## What and why Telegram groups and channels had no Telegram badge on their picture, while the chats with their people had one. Matrix rooms had none either. libtacky lists a room in the chat list as `room@service?join`, and the gateway lookup behind the badge takes a JID with `?` for no person's address, so no room in a real chat list ever reached the gateway's domain. The mock and the tests named rooms by their bare JID, which is why nothing caught it. `networkBadges` now looks a room up by `roomOf(jid)`. Nothing else of the gateway lookup changes (encryption and the other uses of it stay as they are). ## Tests - `ui/test/network-badge.test.ts`: a Telegram group and a Matrix room by their `?join` JIDs wear "Telegram room" and "Matrix room", a room of our own server's wears none, and the Telegram group's row in the chat list is badged. It fails without this change. - `make check STRICT=1` clean. - `make test-ui`: 463 files, 5,471 passed, 8 skipped (macOS, Node 26, `NODE_OPTIONS=--no-experimental-webstorage`). - WebKit smoke on the chat list and Telegram scenes: 37 checks, 0 failed. - By hand in a macOS build of this branch on libtacky v1.2.11, with a real Telegram group through tackygram. Assisted-by: Claude:opus-5-5
ann referenced this pull request from a commit 2026-11-16 15:17:09 +00:00
0.8.6, on libtacky v1.2.14 (add7174f): version 0.8.6 (versionCode 8021) in tauri.conf.json, Cargo.toml/lock and ui/package.json/lock, the CHANGELOG's 0.8.6 entry (the Unreleased lines with the rest of the round: large files never through the page #112/#113, non-Latin file names #39, a declined direct file offered again #38, folders refused #114, the built-in tags and tags per account #108, #107, #109, #110, #104, #105, the Telegram link that survives leaving the app, gateway uploads retried through our own server and scheduled files' slots, window attention for a minimised window and for our own dialogs, #106, #115, #111, Always send files directly, the libtacky version line), the metainfo release and the README's version and figures. Merged for it since c1790c5c: TL fix/r12-tg-link-resume (abb787cd), TU fix/r12-tg-uploads (1090ef90), TV fix/r12-tacky-version (124a2051), FN fix/r12-file-names (c4a2e989) and the pin d2660975. Gate on 4706c70a (this code but the version strings): make check STRICT=1 (2,572 strings in five languages, the ui-copy guard), build, test-ui 472 files 5,580 passed 9 skipped, test-shell 455 passed, test-worker, release-check (pins + RustSec audit), the Windows cargo check, webkit-smoke 11,017 checks 0 failed, coverage-ui 97.7% lines (72,600 of 74,317), coverage-android 94.5% (4,577 of 4,845; free 645 and gms 648 tests passed), coverage-shell-all 94.9% (12,852 of 13,545), coverage-worker 895/895; the window attention's other-own-windows path probed in the real Linux shell (app_tests under broadway, the real capabilities): from the main window getAllWindows listed main and a call window, isFocused, isMinimized and a listen on the other window's focus were allowed.
Owner

Thanks, this is right: the chat list's ?join mark was what kept rooms out of the gateway lookup, and the new test
catches it. Taking it for 0.8.6; the only change on our side was the CHANGELOG line, which had to move
above 0.8.5 (that was the conflict).

Merged by hand into develop and released in 0.8.6; closing.

Thanks, this is right: the chat list's `?join` mark was what kept rooms out of the gateway lookup, and the new test catches it. Taking it for 0.8.6; the only change on our side was the CHANGELOG line, which had to move above 0.8.5 (that was the conflict). Merged by hand into develop and released in [0.8.6](https://dev.another.im/another-im/anotherim-js/releases/tag/v0.8.6); closing.
ann closed this pull request 2026-11-16 15:20:36 +00:00
ann referenced this pull request from a commit 2026-11-16 16:21:53 +00:00

Pull request closed

Sign in to join this conversation.
No description provided.