move migration to the postmoogle inital room sync

This commit is contained in:
Aine
2022-10-17 19:01:21 +03:00
parent 42cb5221a1
commit 4dd09dacb4
2 changed files with 48 additions and 31 deletions

View File

@@ -41,6 +41,7 @@ func (b *Bot) syncRooms() error {
if serr != nil {
continue
}
b.migrateRoomSettings(roomID)
mailbox := cfg.Mailbox()
if mailbox != "" {
b.rooms.Store(mailbox, roomID)