Skip to content

Commit 2f24e90

Browse files
author
Kerry
authored
Device manager - last_seen_user_agent device property (#2728)
* add last_seen_user_agent to IMyDevice type * add ubstable value * use unstable value in interface
1 parent f84a339 commit 2f24e90

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/client.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,11 @@ export const CRYPTO_ENABLED: boolean = isCryptoAvailable();
215215
const CAPABILITIES_CACHE_MS = 21600000; // 6 hours - an arbitrary value
216216
const TURN_CHECK_INTERVAL = 10 * 60 * 1000; // poll for turn credentials every 10 minutes
217217

218+
export const UNSTABLE_MSC3852_LAST_SEEN_UA = new UnstableValue(
219+
"last_seen_user_agent",
220+
"org.matrix.msc3852.last_seen_user_agent",
221+
);
222+
218223
interface IExportedDevice {
219224
olmDevice: IExportedOlmDevice;
220225
userId: string;
@@ -688,6 +693,8 @@ export interface IMyDevice {
688693
display_name?: string;
689694
last_seen_ip?: string;
690695
last_seen_ts?: number;
696+
[UNSTABLE_MSC3852_LAST_SEEN_UA.stable]?: string;
697+
[UNSTABLE_MSC3852_LAST_SEEN_UA.unstable]?: string;
691698
}
692699

693700
export interface IDownloadKeyResult {

0 commit comments

Comments
 (0)