feat: use getNowWithNetworkOffset instead of Date.now

pull/2789/head
William Grant 2 years ago
parent 77bdceb409
commit 0e4a628c20

@ -43,6 +43,7 @@ import { encryptProfile } from '../util/crypto/profileEncrypter';
import { ReleasedFeatures } from '../util/releaseFeature';
import { Storage, setLastProfileUpdateTimestamp } from '../util/storage';
import { UserGroupsWrapperActions } from '../webworker/workers/browser/libsession_worker_interface';
import { GetNetworkTime } from '../session/apis/snode_api/getNetworkTime';
export enum ConversationInteractionStatus {
Start = 'start',
@ -791,7 +792,7 @@ async function saveConversationInteractionErrorAsMessage({
// Add an error message to the database so we can view it in the message history
await conversation?.addSingleIncomingMessage({
source: UserUtils.getOurPubKeyStrFromCache(),
source: GetNetworkTime.getNowWithNetworkOffset().toString(),
sent_at: Date.now(),
interactionNotification: {
interactionType,

Loading…
Cancel
Save