BlueGit

ict rusty-teams

chore: remove trail

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-10-21 · 5 weeks ago

Hash
1f1eeb0ee8285ff193ff07ef73d8b5a7f161f2f1
Parent
69d2a268
1 file changed +0 −29
.trail/learnings/2026-10-19-org-custom-emoji-reactions-render-via-daniel.md deleted +0 −29
@@ -1,29 +0,0 @@
1 ---
2 title: Org (custom) emoji reactions render via AMS image
3 author: Daniel
4 date: 2026-10-19
5 branch: main
6 touches:
7 - Cargo.lock
8 - crates/app-state/src/reaction_model.rs
9 - crates/app-state/src/rows.rs
10 - crates/app/src/views/conversation/render_env.rs
11 - crates/app/src/views/reaction_pills.rs
12 - crates/chatsvc/src/lib.rs
13 - crates/chatsvc/src/reactions.rs
14 - crates/core/examples/live_custom_emoji_tmp.rs
15 ---
16
17 ## Decided
18 - Reaction key `name;<amsObjectId>` (e.g. `absolute-cinema;0-wcde-d3-...`) is a tenant custom emoji. Teams (bundle module 280767, fn JT) builds `{amsV2Domain}v1/objects/{id}/views/imgt2_anim` (or `views/img_thumb_tiny` for stills).
19 - We use `https://de-prod.asyncgw.teams.microsoft.com/` as amsV2Domain, same host as URLP link previews (chatsvc/links.rs). Parsing + URL in `chatsvc::custom_emoji`.
20 - Fetch goes through the existing image pipeline: `external_image_url` returns None -> `hosted_content` -> `is_link_image_url` (asyncgw host) -> `Messages::link_image`.
21 - UI: `reaction_pills::reaction_emoji` renders the image in pill, tabs and reactor list; request via `render_env::request_missing_media`.
22
23 ## Tried and ruled out
24 - `eu-api.asm.skype.com/v1/objects/...` answers 401 from the Teams web page; asyncgw answers 200 image/gif.
25 - Graph `reactionContentUrl` route: emotion_sync overwrites reactions from chatsvc keys, so it would be lost; also not how Teams does it.
26
27 ## Watch out
28 - `cargo fmt -p app` reformats dozens of unrelated files (repo is not fmt clean). Use `rustfmt --check` on single files instead.
29 - Validate the object id (alnum and `-` only) before putting it in a URL.
@@ -1,29 +0,0 @@
1---
2title: Org (custom) emoji reactions render via AMS image
3author: Daniel
4date: 2026-10-19
5branch: main
6touches:
7 - Cargo.lock
8 - crates/app-state/src/reaction_model.rs
9 - crates/app-state/src/rows.rs
10 - crates/app/src/views/conversation/render_env.rs
11 - crates/app/src/views/reaction_pills.rs
12 - crates/chatsvc/src/lib.rs
13 - crates/chatsvc/src/reactions.rs
14 - crates/core/examples/live_custom_emoji_tmp.rs
15---
16
17## Decided
18- Reaction key `name;<amsObjectId>` (e.g. `absolute-cinema;0-wcde-d3-...`) is a tenant custom emoji. Teams (bundle module 280767, fn JT) builds `{amsV2Domain}v1/objects/{id}/views/imgt2_anim` (or `views/img_thumb_tiny` for stills).
19- We use `https://de-prod.asyncgw.teams.microsoft.com/` as amsV2Domain, same host as URLP link previews (chatsvc/links.rs). Parsing + URL in `chatsvc::custom_emoji`.
20- Fetch goes through the existing image pipeline: `external_image_url` returns None -> `hosted_content` -> `is_link_image_url` (asyncgw host) -> `Messages::link_image`.
21- UI: `reaction_pills::reaction_emoji` renders the image in pill, tabs and reactor list; request via `render_env::request_missing_media`.
22
23## Tried and ruled out
24- `eu-api.asm.skype.com/v1/objects/...` answers 401 from the Teams web page; asyncgw answers 200 image/gif.
25- Graph `reactionContentUrl` route: emotion_sync overwrites reactions from chatsvc keys, so it would be lost; also not how Teams does it.
26
27## Watch out
28- `cargo fmt -p app` reformats dozens of unrelated files (repo is not fmt clean). Use `rustfmt --check` on single files instead.
29- Validate the object id (alnum and `-` only) before putting it in a URL.