jellyseerr: fix background daemon auto import of telegram
ChatID fix was done in the TPS implementation but not in the daemon.
This commit is contained in:
+1
-1
@@ -51,7 +51,7 @@ func (app *appContext) SynchronizeJellyseerrUser(jfID string) {
|
|||||||
chatID, _ := strconv.ParseInt(notif.TelegramChatID, 10, 64)
|
chatID, _ := strconv.ParseInt(notif.TelegramChatID, 10, 64)
|
||||||
if ok && tgUser.ChatID != 0 && chatID != tgUser.ChatID {
|
if ok && tgUser.ChatID != 0 && chatID != tgUser.ChatID {
|
||||||
u, _ := app.storage.GetTelegramKey(jfID)
|
u, _ := app.storage.GetTelegramKey(jfID)
|
||||||
contactMethods[jellyseerr.FieldTelegram] = u.ChatID
|
contactMethods[jellyseerr.FieldTelegram] = strconv.FormatInt(u.ChatID, 10)
|
||||||
contactMethods[jellyseerr.FieldTelegramEnabled] = tgUser.Contact
|
contactMethods[jellyseerr.FieldTelegramEnabled] = tgUser.Contact
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user