mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
linted
This commit is contained in:
parent
3a617934e2
commit
d9bb7451a3
3 changed files with 8 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue