Skip to content

Track recently used emojis and quick reactions per workspace - #53

Merged
Yannicked merged 2 commits into
mainfrom
feat/workspace-recent-emoji
Oct 26, 2026
Merged

Yannicked merged 2 commits into
mainfrom
feat/workspace-recent-emoji

Conversation

@Yannicked

Copy link
Copy Markdown
Owner

Summary

Slack custom emojis are workspace-dependent, but previously recent_emoji was stored globally across all workspaces in Settings. As a result, custom emojis used in one workspace could appear in the quick reaction toolbars or recent lists across all workspaces.

This PR tracks recently used emojis and quick reactions per workspace:

  • Per-workspace storage (src/settings.rs): recent_emoji is now a BTreeMap<String, Vec<String>> keyed by workspace ID (team_id). Backwards-compatible deserialization migrates existing global recent lists to the active workspace.
  • Recording per workspace (src/app/compose.rs): Sending messages, replies, files, and reactions records recently used emojis under their corresponding team_id.
  • Quick reactions toolbar (src/app/compose.rs, src/ui/mod.rs, src/ui/message/menu.rs): quick_reactions resolves emojis for each message's workspace and excludes custom emojis not belonging to that workspace.
  • Emoji picker (src/ui/overlays.rs): The "Recently used" group is now scoped and cached per workspace.

@Yannicked
Yannicked merged commit ae5bf95 into main Oct 26, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant