The discussion addresses two issues with chat retention days in Discourse. First, the chat channel retention days setting was incorrectly applied to personal message settings, which has been fixed Don. Second, when retention is set to 0 (meaning indefinite retention), the system incorrectly displayed messages as being saved for 0 days, which has also been resolved Don. The fix was implemented and confirmed to work correctly by the reporter Don, with thanks to j.jaffeux for the fix j.jaffeux.
1. There are separate settings to set up chat channel retention days and chat dm retention days. But it seems it use the chat channel retention days value on personal message settings page too.
2. When the chat channel retention days and/or chat dm retention days set to 0 it means retain messages forever. But now on (channel / personal) retention day messages it seems like it saved for 0 day.