mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 06:09:39 +08:00
feat(notify): be compatible with mobile in event notify
This commit is contained in:
@@ -707,7 +707,7 @@ func (nm *SNotificationManager) ReSend(ctx context.Context, userCred mcclient.To
|
||||
}
|
||||
|
||||
func (n *SNotification) TemplateStore() notifyv2.ITemplateStore {
|
||||
if len(n.Event) == 0 {
|
||||
if len(n.Event) == 0 || n.ContactType == api.MOBILE {
|
||||
return TemplateManager
|
||||
}
|
||||
return LocalTemplateManager
|
||||
|
||||
Reference in New Issue
Block a user