diff --git a/frontend/openchat-shared/src/domain/user/user.utils.ts b/frontend/openchat-shared/src/domain/user/user.utils.ts index 93926a693f..4e18cfec93 100644 --- a/frontend/openchat-shared/src/domain/user/user.utils.ts +++ b/frontend/openchat-shared/src/domain/user/user.utils.ts @@ -36,7 +36,7 @@ export function userOrUserGroupId(u: UserOrUserGroup): string | undefined { switch (u.kind) { case "user": case "bot": - return u.username; + return u.userId; default: return undefined; } } \ No newline at end of file