updates
This commit is contained in:
parent
39c1384a98
commit
7252e7cad0
|
@ -3,7 +3,7 @@ import { BaseResponse } from './baseResponse';
|
|||
export class GlobalDomainResponse extends BaseResponse {
|
||||
type: number;
|
||||
domains: string[];
|
||||
excluded: number[];
|
||||
excluded: boolean;
|
||||
|
||||
constructor(response: any) {
|
||||
super(response);
|
||||
|
|
|
@ -15,6 +15,8 @@ const CanLaunchWhitelist = [
|
|||
'irc://',
|
||||
'vnc://',
|
||||
'chrome://',
|
||||
'iosapp://',
|
||||
'androidapp://',
|
||||
];
|
||||
|
||||
export class LoginUriView implements View {
|
||||
|
|
|
@ -598,7 +598,7 @@ export class CipherService implements CipherServiceAbstraction {
|
|||
const userId = await this.userService.getUserId();
|
||||
const cData = new CipherData(response, userId, cipher.collectionIds);
|
||||
if (!admin) {
|
||||
this.upsert(cData);
|
||||
await this.upsert(cData);
|
||||
}
|
||||
return new Cipher(cData);
|
||||
}
|
||||
|
@ -728,14 +728,15 @@ export class CipherService implements CipherServiceAbstraction {
|
|||
const aLastUsed = a.localData && a.localData.lastUsedDate ? a.localData.lastUsedDate as number : null;
|
||||
const bLastUsed = b.localData && b.localData.lastUsedDate ? b.localData.lastUsedDate as number : null;
|
||||
|
||||
if (aLastUsed != null && bLastUsed != null && aLastUsed < bLastUsed) {
|
||||
const bothNotNull = aLastUsed != null && bLastUsed != null;
|
||||
if (bothNotNull && aLastUsed < bLastUsed) {
|
||||
return 1;
|
||||
}
|
||||
if (aLastUsed != null && bLastUsed == null) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (bLastUsed != null && aLastUsed != null && aLastUsed > bLastUsed) {
|
||||
if (bothNotNull && aLastUsed > bLastUsed) {
|
||||
return -1;
|
||||
}
|
||||
if (bLastUsed != null && aLastUsed == null) {
|
||||
|
|
Loading…
Reference in New Issue