d2m username colors #107

Open
mschae wants to merge 8 commits from mschae/out-of-your-element:role-colors into main
First-time contributor
  • assign d2m bridged users a color based on their Discord username color (taken from their highest role that has a color)
  • if they have no role color, fall back to accent color (banner color)
  • sort guild roles when they are updated
    • when this is merged, it should be possible to remove the sorting at use sites. I think there's a guild.roles.sort in a pug file somewhere
  • add support for MSC 4466, in addition to the existing support for MSC 4069
    • the query for whether the homeserver supports specific MSCs is memoized. This mechanism can be reused by other features that require unstable MSCs in the future
- assign d2m bridged users a color based on their Discord username color (taken from their highest role that has a color) - if they have no role color, fall back to accent color (banner color) - sort guild roles when they are updated - when this is merged, it should be possible to remove the sorting at use sites. I think there's a `guild.roles.sort` in a pug file somewhere - add support for MSC 4466, in addition to the existing support for MSC 4069 - the query for whether the homeserver supports specific MSCs is memoized. This mechanism can be reused by other features that require unstable MSCs in the future
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u role-colors:mschae-role-colors
git switch mschae-role-colors

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff mschae-role-colors
git switch mschae-role-colors
git rebase main
git switch main
git merge --ff-only mschae-role-colors
git switch mschae-role-colors
git rebase main
git switch main
git merge --no-ff mschae-role-colors
git switch main
git merge --squash mschae-role-colors
git switch main
git merge --ff-only mschae-role-colors
git switch main
git merge mschae-role-colors
git push origin main
Sign in to join this conversation.
No description provided.