This commit is contained in:
Karmanyaah Malhotra
2021-04-29 00:16:19 -04:00
parent 0ff534c2df
commit e2daccc250
6 changed files with 46 additions and 20 deletions

View File

@@ -248,8 +248,8 @@ func (puppet *Puppet) UpdateName(source *User, portalMXID id.RoomID, contact gro
if err == nil {
memberRaw.DisplayName = newName
// puppet.NameQuality[portalMXID] = quality
puppet.bridge.StateStore.SetMemberRaw(&memberRaw) //TODO handle; maybe .Update() ?
go puppet.updatePortalName()
puppet.Update()
} else {
puppet.log.Warnln("Failed to set display name:", err)
}