Switch to new beeper batch send endpoint

This commit is contained in:
Tulir Asokan
2023-06-19 14:55:43 +03:00
parent 11b91dc299
commit 914b360720
6 changed files with 12 additions and 17 deletions

View File

@@ -298,7 +298,7 @@ func (guild *Guild) cleanup() {
return
}
intent := guild.bridge.Bot
if guild.bridge.SpecVersions.UnstableFeatures["com.beeper.room_yeeting"] {
if guild.bridge.SpecVersions.Supports(mautrix.BeeperFeatureRoomYeeting) {
err := intent.BeeperDeleteRoom(guild.MXID)
if err != nil && !errors.Is(err, mautrix.MNotFound) {
guild.log.Errorfln("Failed to delete %s using hungryserv yeet endpoint: %v", guild.MXID, err)