diff --git a/go.mod b/go.mod index 1862924cead78d89e6911c32100c9549b7475eb4..e828ead684c97fe995402e365ea89197e8d7a502 100644 --- a/go.mod +++ b/go.mod @@ -8,9 +8,9 @@ require ( gitlab.mashroom.com/mashroom/backend/account/api v0.0.0-20211227153109-c2bf7bb69dfe gitlab.mashroom.com/mashroom/backend/common/api v0.0.0-20211227153508-bdc86167c701 gitlab.mashroom.com/mashroom/backend/common/generic v0.0.0-20211227153508-bdc86167c701 - gitlab.mashroom.com/mashroom/backend/messaging/api v0.0.0-20211227154856-4871c6459e91 + gitlab.mashroom.com/mashroom/backend/messaging/api v0.0.0-20220117090325-319e24f2c92a gitlab.mashroom.com/mashroom/backend/mixpanel/api v0.0.0-20211227154826-2021212c59fe - gitlab.mashroom.com/mashroom/backend/notification/api v0.0.0-20211227154712-600f6e6c97ed + gitlab.mashroom.com/mashroom/backend/notification/api v0.0.0-20220117092738-2fe749bcc696 gitlab.mashroom.com/mashroom/backend/property/api v0.0.0-20211227154459-d6398dc6b371 golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93 google.golang.org/api v0.30.0 diff --git a/impl/gmailparser.go b/impl/gmailparser.go index 2aa693fc973a3144bd859026a9c8b8101163dfff..c450c998779384e70dfeb9b0823e689c56e2da78 100644 --- a/impl/gmailparser.go +++ b/impl/gmailparser.go @@ -218,6 +218,11 @@ func sendEventLink( log.WithError(err).Error("Tracking ViewingInvitation event") } + authOrigin := "zoopla" + if source == mixpanel.ListingPlatform_LISTING_PLATFORM_RIGHTMOVE { + authOrigin = "rightmove" + } + _, err = NotificationService.SendNotification(ctx, ¬ification.SendNotificationRequest{ Entity: notification.Entity_ENTITY_PROPERTY_QUESTION, Action: notification.Action_ACTION_CREATE, @@ -241,6 +246,10 @@ func sendEventLink( EmbedType: messaging.EmbedType_EMBED_TYPE_USER, EmbedValue: user, }, + { + EmbedType: messaging.EmbedType_EMBED_TYPE_AUTH_ORIGIN, + EmbedValue: authOrigin, + }, }, }) if err != nil {