add noreplies option

This commit is contained in:
Aine
2023-04-10 14:03:43 +03:00
parent e8ade4173f
commit 84102d5b5b
6 changed files with 40 additions and 2 deletions

View File

@@ -146,6 +146,9 @@ func (b *Bot) SendEmailReply(ctx context.Context) {
if !b.allowSend(evt.Sender, evt.RoomID) {
return
}
if !b.allowReply(evt.Sender, evt.RoomID) {
return
}
cfg, err := b.cfg.GetRoom(evt.RoomID)
if err != nil {
b.Error(ctx, evt.RoomID, "cannot retrieve room settings: %v", err)