Skip to content

Commit 2c312b6

Browse files
Fix_3: validation
1 parent 33da039 commit 2c312b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/meteor/app/api/server/v1/users.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ API.v1.addRoute(
426426
);
427427

428428
type UsersInfoResponseUser = IUser & {
429-
rooms?: Pick<ISubscription, 'rid' | 'name' | 't' | 'roles' | 'unread'>[];
429+
rooms?: Pick<ISubscription, 'rid' | 'name' | 't' | 'roles' | 'unread' | 'federated'>[];
430430
};
431431

432432
const usersInfoEndpoint = API.v1.get(
@@ -488,6 +488,7 @@ const usersInfoEndpoint = API.v1.get(
488488
t: { type: 'string' },
489489
roles: { type: 'array', items: { type: 'string' } },
490490
unread: { type: 'number' },
491+
federated: { type: 'boolean' },
491492
},
492493
required: ['rid', 't', 'unread'],
493494
additionalProperties: false,

0 commit comments

Comments
 (0)