We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8b7afc commit dd0e51fCopy full SHA for dd0e51f
apps/meteor/app/api/server/v1/users.ts
@@ -911,7 +911,7 @@ const usersEndpoints = API.v1
911
_id: user?._id,
912
connectionStatus: (user?.statusConnection || 'offline') as 'online' | 'offline' | 'away' | 'busy',
913
status: (user?.status || 'offline') as 'online' | 'offline' | 'away' | 'busy',
914
- message: user?.statusText,
+ ...(user?.statusText && { message: user.statusText }),
915
});
916
}
917
@@ -920,7 +920,7 @@ const usersEndpoints = API.v1
920
return API.v1.success({
921
_id: user._id,
922
status: (user.status || 'offline') as 'online' | 'offline' | 'away' | 'busy',
923
924
925
},
926
);
0 commit comments