From 4ac39d72ff59a495a81a03e629bbe1e8c463fd77 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Sun, 27 Feb 2022 12:29:17 +0530 Subject: [PATCH] fix: map eph duration on legacy group metadata --- src/LegacySocket/groups.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/LegacySocket/groups.ts b/src/LegacySocket/groups.ts index 67ceea2..1c5a6a3 100644 --- a/src/LegacySocket/groups.ts +++ b/src/LegacySocket/groups.ts @@ -58,7 +58,8 @@ const makeGroupsSocket = (config: LegacySocketConfig) => { id: jidNormalizedUser(p.id), admin: p.isSuperAdmin ? 'super-admin' : p.isAdmin ? 'admin' : undefined }) - ) + ), + ephemeralDuration: metadata.ephemeralDuration } return meta