d2m channel ordering #109

Open
mschae wants to merge 2 commits from mschae/out-of-your-element:channel-ordering into main
First-time contributor

i implemented d->m channel order sync for spaces for the ooye bridge we're running

+ made it keep the suggested flag (and order in selfservice spaces)
+ fixed a bug where updating the everyone role would throw an error instead of triggering a full space sync

basically i just made it encode channel.position into base26 pairs and stitched together category+channel+thread position into one order string :thumbskull:
with voice channels getting an extra offset to force them to be below text channels

this also fixes an issue with updating the everyone role, if I remember correctly

> i implemented d->m channel order sync for spaces for the ooye bridge we're running > > \+ made it keep the suggested flag (and order in selfservice spaces) > \+ fixed a bug where updating the everyone role would throw an error instead of triggering a full space sync > > basically i just made it encode `channel.position` into base26 pairs and stitched together category+channel+thread position into one order string :thumbskull: > with voice channels getting an extra offset to force them to be below text channels this also fixes an issue with updating the `everyone` role, if I remember correctly
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 channel-ordering:mschae-channel-ordering
git switch mschae-channel-ordering

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-channel-ordering
git switch mschae-channel-ordering
git rebase main
git switch main
git merge --ff-only mschae-channel-ordering
git switch mschae-channel-ordering
git rebase main
git switch main
git merge --no-ff mschae-channel-ordering
git switch main
git merge --squash mschae-channel-ordering
git switch main
git merge --ff-only mschae-channel-ordering
git switch main
git merge mschae-channel-ordering
git push origin main
Sign in to join this conversation.
No description provided.