User in multiple groups, title display and group link don't match

I’ve made two changes that can hopefully make the flow a bit more intuitive. :muscle:

  1. If the user’s title is granted by their primary group, we will keep the title in sync when switching primary groups.
    (FEATURE: match user title when primary group changes by xrav3nz · Pull Request #6404 · discourse/discourse · GitHub)

  2. When removing a title (due to leaving a group, etc), we will now automatically grant the user another of their available titles. This favors primary group title over the others.
    (FEATURE: auto grant an available title when removing old title by xrav3nz · Pull Request #6416 · discourse/discourse · GitHub)

「いいね!」 5