From bf36df8de893724613c6290e13c4d3d0f4dc5a01 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Thu, 21 Jul 2022 09:54:40 -0700 Subject: [PATCH] Add Attribute Map to Contact Struct --- utils/contacts.go | 1 + utils/eventHandler.go | 1 + 2 files changed, 2 insertions(+) diff --git a/utils/contacts.go b/utils/contacts.go index ed8b958..1fbb554 100644 --- a/utils/contacts.go +++ b/utils/contacts.go @@ -21,4 +21,5 @@ type Contact struct { IsArchived bool `json:"isArchived"` Identifier int `json:"identifier"` NotificationPolicy string `json:"notificationPolicy"` + Attributes map[string]string `json:"attributes"` } diff --git a/utils/eventHandler.go b/utils/eventHandler.go index efd434e..36715e6 100644 --- a/utils/eventHandler.go +++ b/utils/eventHandler.go @@ -282,6 +282,7 @@ func (eh *EventHandler) handleAppBusEvent(e *event.Event) string { GroupServer: groupServer, IsArchived: isArchived == event.True, NotificationPolicy: notificationPolicy, + Attributes: conversationInfo.Attributes, }) } }