Fix client crash when opening a user context menu in query

This commit is contained in:
Max Leiter 2021-03-30 22:33:48 -07:00
parent 4f6659897f
commit e4069f8ce9
No known key found for this signature in database
GPG Key ID: A3512F2F2F17EBDA

View File

@ -245,8 +245,8 @@ export function generateUserContextMenu($root, channel, network, user) {
}, },
]; ];
// Bail because we don't have a special mode. // Bail because we're in a query or we don't have a special mode.
if (currentChannelUser.modes.length < 1) { if (!currentChannelUser.modes || currentChannelUser.modes.length < 1) {
return items; return items;
} }