Add support for setting group description from Matrix

This commit is contained in:
Tulir Asokan
2020-03-31 16:27:42 +03:00
parent 3f60a6f28e
commit 78d3d22cd4
4 changed files with 8 additions and 6 deletions

View File

@@ -157,9 +157,9 @@ func (mx *MatrixHandler) HandleRoomMetadata(evt *mautrix.Event) {
switch evt.Type {
case mautrix.StateRoomName:
resp, err = user.Conn.UpdateGroupSubject(evt.Content.Name, portal.Key.JID)
case mautrix.StateRoomAvatar:
return
case mautrix.StateTopic:
resp, err = user.Conn.UpdateGroupDescription(portal.Key.JID, evt.Content.Topic)
case mautrix.StateRoomAvatar:
return
}
if err != nil {