This commit is contained in:
syuilo 2018-05-29 01:25:54 +09:00
parent ab16fb3a3f
commit 016386b350

View file

@ -84,6 +84,8 @@ export interface ILocalUser extends IUserBase {
twoFactorTempSecret?: string; twoFactorTempSecret?: string;
clientSettings: any; clientSettings: any;
settings: any; settings: any;
hasUnreadNotification: boolean;
hasUnreadMessagingMessage: boolean;
} }
export interface IRemoteUser extends IUserBase { export interface IRemoteUser extends IUserBase {
@ -387,8 +389,9 @@ export const pack = (
if (!meId || !meId.equals(_user.id) || !opts.detail) { if (!meId || !meId.equals(_user.id) || !opts.detail) {
delete _user.avatarId; delete _user.avatarId;
delete _user.bannerId; delete _user.bannerId;
delete _user.driveCapacity; delete _user.driveCapacity;
delete _user.hasUnreadMessagingMessage;
delete _user.hasUnreadNotification;
} }
if (meId && !meId.equals(_user.id)) { if (meId && !meId.equals(_user.id)) {