mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
Fix home tab item width on Firefox.
Fix inability to leave server, for #95. Add warning to invite bot.
This commit is contained in:
@@ -43,13 +43,13 @@ function useEntries(channel: Channel, keys: string[], isServer?: boolean) {
|
||||
|
||||
const categoryInfo: { [key: string]: string } = {};
|
||||
|
||||
let roles: Server["roles"];
|
||||
let roles: Server["roles"] | undefined;
|
||||
let roleList: string[];
|
||||
if (
|
||||
channel.channel_type === "TextChannel" ||
|
||||
channel.channel_type === "VoiceChannel"
|
||||
) {
|
||||
roles = channel.server!.roles;
|
||||
roles = channel.server?.roles;
|
||||
if (roles) {
|
||||
const list = Object.keys(roles)
|
||||
.map((id) => {
|
||||
|
||||
Reference in New Issue
Block a user