d2m username colors #107
1 changed files with 2 additions and 2 deletions
disable profile propagation entirely
commit
98b7615f8b
|
|
@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue