Chat tags: tags should belong to the account they're made in #108

Open
opened 2026-11-12 23:24:45 +00:00 by tlasol · 1 comment
Member

right now a new tag shows up in every account BY DEFAULT, so the tab stays there even empty and chats leak, that gets utterly confusing tbh.

Example 1. I have chepuja@work.example and chepuja@home.example, and Bob is a contact in both. On the work account I make a tag "Work" and pick Bob's chat by hand. Then I switch to the home account: "Work" is there too, with Bob's home chat in it. Picked chats match by JID only, not by account.

Example 2. There is a way to limit "Work" to the work account (More filters → Accounts). But the home account still has the "Work" tab in its bar, just empty.

Proposal: by default, a tag shows only in the account it was made in. In the editor you tick which accounts it shows in: one, some, or all. Sharing is something you choose, not what you get.

Maybe later also: the address pattern only knows * and ? now. How about full regular expressions there (and maybe on the chat name too), e.g. ^-100\d+@telegram\.example$ for all Telegram groups and channels etc.

right now a new tag shows up in every account BY DEFAULT, so the tab stays there even empty and chats leak, that gets utterly confusing tbh. **Example 1.** I have `chepuja@work.example` and `chepuja@home.example`, and Bob is a contact in both. On the work account I make a tag "Work" and pick Bob's chat by hand. Then I switch to the home account: "Work" is there too, with Bob's home chat in it. Picked chats match by JID only, not by account. **Example 2.** There is a way to limit "Work" to the work account (More filters → Accounts). But the home account still has the "Work" tab in its bar, just empty. Proposal: by default, a tag shows only in the account it was made in. In the editor you tick which accounts it shows in: one, some, or all. Sharing is something you choose, not what you get. Maybe later also: the address pattern only knows `*` and `?` now. How about full regular expressions there (and maybe on the chat name too), e.g. `^-100\d+@telegram\.example$` for all Telegram groups and channels etc.
ann referenced this issue 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

Fixed in 0.8.6. A new tag now shows only in the account it is made in. The tag editor has an Accounts card where you tick one, some or all accounts, and a tag has no tab in an account it does not show in. A chat you pick by hand counts only on the account you picked it on.
Tags made before 0.8.6 still show in every account until you edit them. Regular expressions in the address pattern are not part of this fix.

Fixed in [0.8.6](https://dev.another.im/another-im/anotherim-js/releases/tag/v0.8.6). A new tag now shows only in the account it is made in. The tag editor has an Accounts card where you tick one, some or all accounts, and a tag has no tab in an account it does not show in. A chat you pick by hand counts only on the account you picked it on. Tags made before 0.8.6 still show in every account until you edit them. Regular expressions in the address pattern are not part of this fix.
ann referenced this issue from a commit 2026-11-16 16:21:53 +00:00
ann referenced this issue from a commit 2026-11-16 16:28:44 +00:00
Tag picks per account synced with the tag (#108, on libtacky 1.3.0's TagFilter chat_accounts and exclude_accounts): the accounts a chat was picked or left out on in a tag are no longer the page's per-installation tag_picked_on but the tag's own chat_accounts and exclude_accounts, sent whole with tags set and synced to the other devices. tag-filter.ts reads the two keys (pickedHere as before; no entry is every account, as an older client's tag) and drops the PickedOn type and picked_on; the tag editor reads them and writes them only for chats still in chats or exclude, which libtacky refuses otherwise; Tags.save no longer strips them, and the old keep/prune code and the tag_picked_on listener are gone. What 0.8.6 left in tag_picked_on moves over once when the tags are read: a tag with an entry and no keys of its own is saved with the entry's chats it still lists, the entry cleared once tags set took it and the setting emptied when none is left; a tag that already has keys (another device moved first) keeps them, the entry of a tag gone just goes, and a refused move keeps the entry, read in as before until it moves or the tag is saved. The mock's tags set takes the two keys as tags.tcl does (keys as listed, accounts bare, an empty list no entry) and refuses a value that is no dict or a chat its list does not name. CHANGELOG line. Tests (14 failing before): tag-filter (the keys narrow, picked_on no longer does), tag-bar (the editor's filters, chat_accounts sent with tags set, the mock's refusals and normalising, another device's keys read and none meaning every account, the migration: moved and cleared, synced wins, refused kept). Gates: make check STRICT=1 ok; make test-ui 474 files, 5,639 passed, 9 skipped; WebKit smoke on the tag screens (tags, tags menu, tags phone, tags off, tag editor, tag editor phone, tag editor chips, tag kinds, and the day ones) 134 checks 0 failed.
ann referenced this issue from a commit 2026-11-17 04:23:34 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
another-im/anotherim-js#108
No description provided.