mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-20 08:28:17 +01:00
Use X-Signal-Timestamp header
This commit is contained in:
@@ -6,14 +6,13 @@ import type {
|
||||
WebAPIType,
|
||||
RemoteConfigResponseType,
|
||||
} from '../../textsecure/WebAPI';
|
||||
import { SECOND } from '../../util/durations';
|
||||
|
||||
export async function updateRemoteConfig(
|
||||
newConfig: RemoteConfigResponseType['config']
|
||||
): Promise<void> {
|
||||
const fakeServer = {
|
||||
async getConfig() {
|
||||
return { config: newConfig, serverEpochTime: Date.now() / SECOND };
|
||||
return { config: newConfig, serverTimestamp: Date.now() };
|
||||
},
|
||||
} as Partial<WebAPIType> as unknown as WebAPIType;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user