mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-23 18:08:05 +01:00
Rename files
This commit is contained in:
17
ts/util/getMessageSentTimestampSet.std.ts
Normal file
17
ts/util/getMessageSentTimestampSet.std.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
// Copyright 2023 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { ReadonlyMessageAttributesType } from '../model-types.d.ts';
|
||||
|
||||
export function getMessageSentTimestampSet({
|
||||
sent_at: sentAt,
|
||||
editHistory,
|
||||
}: Pick<
|
||||
ReadonlyMessageAttributesType,
|
||||
'sent_at' | 'editHistory'
|
||||
>): ReadonlySet<number> {
|
||||
return new Set([
|
||||
sentAt,
|
||||
...(editHistory?.map(({ timestamp }) => timestamp) ?? []),
|
||||
]);
|
||||
}
|
||||
Reference in New Issue
Block a user