2021-09-20 20:59:25 +02:00
# Quick account switching in FluffyChat
FluffyChat 0.41.0 brings support for using multiple accounts and has an early
2021-09-20 21:38:42 +02:00
implementation of quickly switching accounts via input bar (useful for roleplaying :wink:), which will get
2021-09-20 20:59:25 +02:00
better in a future release, but for now, for impatient people, it can
2021-09-20 21:26:40 +02:00
be used by enabling a prefix with Element's (Web/Desktop) `/devtools` by editing
the account state which can also be used for sorting accounts.
2021-09-21 06:51:18 +02:00
These steps are repeated for every account into which quick switching is
desired, the ones below add prefix "M" for "mikaela:feneas.org", but to
switch that either using the GUI is necessarily or performing the steps as
another account (e.g. for setting "C" for "Ciblia:matrix.org"). The switching happens
once space is pressed after the prefix char.
2021-09-20 21:26:40 +02:00
1. Open FluffyChat
2. Long touch your account name and select "Add to bundle". Name the new
2021-09-20 21:38:02 +02:00
bundle whatever you want as long as it's the same across your quick-switching accounts,
it will be visible below the account switcher and groups accounts (e.g. between personal and work)
2021-09-20 21:26:40 +02:00
3. Open Element Web
4. In any chatbox enter `/devtools` and enter
2021-09-20 21:32:40 +02:00
5. Select "Explore Account Data"
2021-09-20 21:26:40 +02:00
6. Search for and select `im.fluffychat.account_bundles`
2021-09-20 21:32:40 +02:00
7. Above (or below, doesn't matter) the `"bundles": [` line, add `"prefix": "M",` where `M` is your
2021-09-20 21:26:40 +02:00
prefix to quickly switch to this account.
2023-02-26 18:01:13 +01:00
- If this is confusing, see the example of finalized event in the bottom
of this file.
2021-09-20 21:26:40 +02:00
8. Optionally if you wish to sort your account, add a `,` to the line where
your bundle is named and to the next line: `"priority": 0`
9. Start/restart FluffyChat
10. Type `M message` and the account automatically switches from another account
2021-09-20 21:32:40 +02:00
to the one you just configured.
2021-09-20 21:26:40 +02:00
General notes:
2023-02-26 18:01:13 +01:00
- 0.4.1 had a bug where using automatic server discovery through well-known
2021-09-20 21:26:40 +02:00
causes all accounts to get logged out. Use server name instead, e.g. `https://matrix-client.matrix.org` (discovered from https://matrix.org/.well-known/matrix/client)
2023-02-26 18:01:13 +01:00
- This is fixed in 0.4.2.
- Quick account switching will only work within a bundle, which by default is implied to be the MXID, so by default it's disabled
- Note the avatar next to the input bar showing which account you are using. It can also be used for switching accounts.
- Tapping it to change account will also change which account will send any other events like media/reaction etc.
- Long tapping a message and editing a message send as another account will
2021-09-22 17:10:51 +02:00
auto-set the indicator and action-sender as your roleplay character.
2021-09-20 21:26:40 +02:00
Big thank you to FluffyChat contributors who made this feature and Sorunome
for initially explaining how to do this so I could attempt to make a more clearer
note on how to do it and later corrected me a lot on this file.
## Appendix: example `im.fluffychat.account_bundles` account event
2021-09-20 20:59:25 +02:00
```json
{
2021-09-20 21:26:40 +02:00
"type": "im.fluffychat.account_bundles",
"content": {
"prefix": "M",
2021-09-20 20:59:25 +02:00
"bundles": [
{
2021-09-22 17:10:51 +02:00
"name": "😺",
2021-09-20 21:26:40 +02:00
"priority": 0
2021-09-20 20:59:25 +02:00
}
2021-09-20 21:26:40 +02:00
]
}
2021-09-20 20:59:25 +02:00
}
```
2021-09-23 10:00:45 +02:00
on account `@mikaela:feneas.org`
```json
{
2023-02-26 18:01:13 +01:00
"prefix": "P",
"priority": 5,
"bundles": [
{
"name": "💼",
"priority": 5
},
{
"name": "😺"
}
]
2021-09-23 10:00:45 +02:00
}
```
2023-02-26 18:01:13 +01:00
on account `@mikaela.suomalainen:matrix.org`