Set topic_set=true in database after setting topic
This commit is contained in:
@@ -1388,6 +1388,8 @@ func (portal *Portal) UpdateTopic(topic string) bool {
|
|||||||
_, err := portal.MainIntent().SetRoomTopic(portal.MXID, portal.Topic)
|
_, err := portal.MainIntent().SetRoomTopic(portal.MXID, portal.Topic)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
portal.log.Warnln("Failed to update room topic:", err)
|
portal.log.Warnln("Failed to update room topic:", err)
|
||||||
|
} else {
|
||||||
|
portal.TopicSet = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user