diff --git a/src/routes/notifications/helpers/notifications.js b/src/routes/notifications/helpers/notifications.js index 16540ec58..174b51680 100644 --- a/src/routes/notifications/helpers/notifications.js +++ b/src/routes/notifications/helpers/notifications.js @@ -324,6 +324,16 @@ const getNotificationRule = (notification) => { const notificationRule = _.find(NOTIFICATION_RULES, (_notificationRule) => { let match = _notificationRule.eventType === notification.eventType + // For supporting old topic name + if (!match) { + match = notification.eventType.includes('notifications.connect.') + } + + // For supporting old topic name + if (!match) { + match = notification.eventType.includes('connect.action.') + } + if (notification.version) { match = match && _notificationRule.version === notification.version }