This commit is contained in:
Vincent 2020-06-05 17:07:54 +10:00
parent 3a617934e2
commit d9bb7451a3
3 changed files with 8 additions and 4 deletions

View file

@ -116,7 +116,14 @@ export class PendingMessageCache {
const barePending = JSON.parse(String(data.value));
const pending = barePending.map((message: any) => {
const { identifier, plainTextBuffer, timestamp, device, ttl, encryption } = message;
const {
identifier,
plainTextBuffer,
timestamp,
device,
ttl,
encryption,
} = message;
return {
identifier,

View file

@ -1,4 +1,3 @@
export class PubKey {
public static readonly PUBKEY_LEN = 66;
private static readonly regex: string = `^05[0-9a-fA-F]{${PubKey.PUBKEY_LEN -
@ -26,5 +25,4 @@ export class PubKey {
return false;
}
}

View file

@ -8,7 +8,6 @@ import { ImportMock } from 'ts-mock-imports';
import { PubKey } from '../../../ts/session/types';
import { ChatMessage } from '../../session/messages/outgoing';
const sandbox = sinon.createSandbox();
// We have to do this in a weird way because Data uses module.exports