fix messages going poof

This commit is contained in:
CWX
2025-01-22 19:40:19 +00:00
parent c50b4b7d90
commit 7c347ffdf1
+9 -2
View File
@@ -142,7 +142,14 @@ public class MailSendService(
if (items?.Count > 0)
{
details.Items.AddRange(items);
details.ItemsMaxStorageLifetimeSeconds = maxStorageTimeSeconds ?? 172800;
if (maxStorageTimeSeconds is not null && maxStorageTimeSeconds > 0)
{
details.ItemsMaxStorageLifetimeSeconds = maxStorageTimeSeconds;
}
else
{
details.ItemsMaxStorageLifetimeSeconds = 172800;
}
}
if (systemData is not null)
@@ -571,7 +578,7 @@ public class MailSendService(
};
}
return dialogsInProfile[senderId]; ;
return dialogsInProfile[senderId];
}
/**