Sfoglia il codice sorgente

Set topic_set=true in database after setting topic

Tulir Asokan 3 anni fa
parent
commit
51d377c60d
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      portal.go

+ 2 - 0
portal.go

@@ -1388,6 +1388,8 @@ func (portal *Portal) UpdateTopic(topic string) bool {
 		_, err := portal.MainIntent().SetRoomTopic(portal.MXID, portal.Topic)
 		if err != nil {
 			portal.log.Warnln("Failed to update room topic:", err)
+		} else {
+			portal.TopicSet = true
 		}
 	}
 	return true