Add first pass at IndieAuth modal. For #1863
This commit is contained in:
@@ -6,11 +6,13 @@ export default function handleConnectedClientInfoMessage(
|
||||
setChatDisplayColor: (number) => void,
|
||||
setChatUserId: (number) => void,
|
||||
setIsChatModerator: (boolean) => void,
|
||||
setChatAuthenticated: (boolean) => void,
|
||||
) {
|
||||
const { user } = message;
|
||||
const { id, displayName, displayColor, scopes } = user;
|
||||
const { id, displayName, displayColor, scopes, authenticated } = user;
|
||||
setChatDisplayName(displayName);
|
||||
setChatDisplayColor(displayColor);
|
||||
setChatUserId(id);
|
||||
setIsChatModerator(scopes?.includes('moderator'));
|
||||
setChatAuthenticated(authenticated);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user