Skip to content

Commit 9c4bf01

Browse files
committed
Send context.traits
1 parent 2ccd569 commit 9c4bf01

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Analytics/Integrations/Segmentio/SEGSegmentioIntegration.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ - (void)enqueueAction:(NSString *)action dictionary:(NSDictionary *)dictionary o
356356
NSDictionary *customContext = options[@"context"];
357357
int capacity = customContext.count + defaultContext.count;
358358
NSMutableDictionary *context = [NSMutableDictionary dictionaryWithCapacity:capacity];
359+
[context setValue:_traits forKey:@"traits"];
359360
[context addEntriesFromDictionary:defaultContext];
360361
[context addEntriesFromDictionary:customContext]; // let the custom context override ours
361362
[payload setValue:context forKey:@"context"];

0 commit comments

Comments
 (0)