[Gekidou] Channel Info screen (#6330)

* Channel Info screen

* Delete the channel & related data when archiving while viewing archived channels is off

* feedback review

* UX feedback

* Add missing isOptionItem prop
This commit is contained in:
Elias Nahum
2022-06-02 16:09:12 -04:00
committed by GitHub
parent 62d2e20441
commit a0f25f0e3b
69 changed files with 2329 additions and 168 deletions

View File

@@ -40,13 +40,28 @@ export const transformUserRecord = ({action, database, value}: TransformerArgs):
user.roles = raw.roles;
user.username = raw.username;
user.notifyProps = raw.notify_props;
user.props = raw.props || null;
user.timezone = raw.timezone || null;
user.isBot = raw.is_bot;
user.remoteId = raw?.remote_id ?? null;
if (raw.status) {
user.status = raw.status;
}
if (raw.bot_description) {
raw.props = {
...raw.props,
bot_description: raw.bot_description,
};
}
if (raw.bot_last_icon_update) {
raw.props = {
...raw.props,
bot_last_icon_update: raw.bot_last_icon_update,
};
}
user.props = raw.props || null;
};
return prepareBaseRecord({