mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
fix(notifications): disable notification and events have no effect (#1754)
fix(notifications): disable notificatio nand events
This commit is contained in:
parent
009647fcd1
commit
ca2d956e02
13 changed files with 118 additions and 125 deletions
|
@ -30,7 +30,7 @@ type TelegramMessage struct {
|
|||
|
||||
type telegramSender struct {
|
||||
log zerolog.Logger
|
||||
Settings domain.Notification
|
||||
Settings *domain.Notification
|
||||
ThreadID int
|
||||
builder MessageBuilderHTML
|
||||
|
||||
|
@ -41,7 +41,7 @@ func (s *telegramSender) Name() string {
|
|||
return "telegram"
|
||||
}
|
||||
|
||||
func NewTelegramSender(log zerolog.Logger, settings domain.Notification) domain.NotificationSender {
|
||||
func NewTelegramSender(log zerolog.Logger, settings *domain.Notification) domain.NotificationSender {
|
||||
threadID := 0
|
||||
if t := settings.Topic; t != "" {
|
||||
var err error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue