Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Sync
Config::Displayname
across devices (#4893)
We already synchronise status/footer when we see a self-sent message with a Chat-Version header. Would be nice to do the same for display name. But let's do it the same way as for `Config::{MdnsEnabled,ShowEmails}`. Otherwise, if we sync the display name using the "From" header, smth like `Param::StatusTimestamp` is needed then to reject outdated display names. Also this timestamp needs to be updated when `Config::Displayname` is set locally. Also this wouldn't work if system time isn't synchronised on devices. Also using multiple approaches to sync different config values would lead to more code and bugs while having almost no value -- using "From" only saves some bytes and allows to sync some things w/o the synchronisation itself to be enabled. But the latter also can be a downside -- if it's usual synchonisation, you can (potentially) disable it and share the same email account across people in some organisation allowing them to have different display names. With using "From" for synchronisation such a capability definitely requires a new config option.
- Loading branch information