Skip to content

Commit 3f28928

Browse files
committed
Merge pull request #313 from segmentio/send-context.traits
Send context.traits
2 parents 9097464 + 9c4bf01 commit 3f28928

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
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"];

Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ SPEC CHECKSUMS:
7575
TRVSDictionaryWithCaseInsensitivity: 51d2ccf52c6d645d27b63467a98fa02c556e01b0
7676
TRVSKit: cbc09d442ce631c6b0f9e4ee4fb666a96146e4b3
7777

78-
COCOAPODS: 0.35.0
78+
COCOAPODS: 0.37.1

0 commit comments

Comments
 (0)