d2m username colors #107

Open
mschae wants to merge 8 commits from mschae/out-of-your-element:role-colors into main
Showing only changes of commit 98b7615f8b - Show all commits

disable profile propagation entirely

mschae23 2026-11-07 15:26:09 +01:00
Signed by untrusted user: mschae
GPG key ID: A87721D300DE88AB

View file

@ -283,12 +283,12 @@ async function _sendSyncUser(roomID, mxid, content, powerLevel, options) {
// Update global profile (if supported by server)
if (!!options?.globalProfile && (support.msc4069 || support.msc4466)) {
for (const key of Object.keys(options.globalProfile)) {
actions.push(api.profileSetKey(mxid, key, options.globalProfile[key], "unchanged", support))
actions.push(api.profileSetKey(mxid, key, options.globalProfile[key], "none", support))
}
const oldProfile = await api.getProfile(mxid).catch(e => { return {}})
for (const key of Object.keys(oldProfile)) {
if (!options.globalProfile[key]) {
actions.push(api.profileDeleteKey(mxid, key, "unchanged", support))
actions.push(api.profileDeleteKey(mxid, key, "none", support))
}
}
}