Skip to content

Commit 40f12fd

Browse files
authored
Merge pull request #22 from Bilb/remove-disappearing-legacy-support
chore: remove legacy disappearing message support
2 parents dfc0bf6 + c027594 commit 40f12fd

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"main": "index.js",
33
"name": "libsession_util_nodejs",
44
"description": "Wrappers for the Session Util Library",
5-
"version": "0.4.27",
5+
"version": "0.4.28",
66
"license": "GPL-3.0",
77
"author": {
88
"name": "Oxen Project",

types/user/contacts.d.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,14 @@ declare module 'libsession_util_nodejs' {
2222
export type DisappearingMessageConversationModeType =
2323
| 'off'
2424
| 'deleteAfterRead'
25-
| 'deleteAfterSend'
26-
// TODO legacy messages support will be removed in a future release
27-
| 'legacy';
25+
| 'deleteAfterSend';
2826

2927
type ContactInfoShared = WithPriority & {
3028
id: string;
3129
name?: string;
3230
nickname?: string;
3331
profilePicture?: ProfilePicture;
34-
createdAtSeconds: number; // can only be set the first time a contact is created, a new change won't overide the value in the wrapper.
32+
createdAtSeconds: number; // can only be set the first time a contact is created, a new change won't override the value in the wrapper.
3533
expirationMode?: DisappearingMessageConversationModeType;
3634
expirationTimerSeconds?: number;
3735
};

0 commit comments

Comments
 (0)