feat(notify): be compatible with mobile in event notify

This commit is contained in:
rainzm
2021-02-18 11:21:25 +08:00
parent 334a47e383
commit c7b8d88d75
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -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