Do not append domain twice when updating mailbox (again)

Fixes:

> `mailbox` of this room set to `test@domain@domain`

Previously fixed in 97a4d6c7bc, but it seems like we unintentionally
reintroduced this bug again at some point after that.
This commit is contained in:
Slavi Pantaleev
2022-08-31 09:16:16 +03:00
parent 75e5ed8245
commit 4b1ce195b4

View File

@@ -98,9 +98,5 @@ func (b *Bot) setOption(ctx context.Context, name, value string) {
return
}
if name == roomOptionMailbox {
value = value + "@" + b.domain
}
b.SendNotice(ctx, evt.RoomID, fmt.Sprintf("`%s` of this room set to `%s`", name, value))
}