-
Notifications
You must be signed in to change notification settings - Fork 731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implements MSC3881 (enabled and device_id fields for Pusher API) #7217
Changes from 3 commits
75935c8
5c27f65
8c79011
65c8963
52171ef
f724751
1f28a2a
40c2e95
4cebfa1
d14570d
f4dc435
0340467
42d0e4f
d191bfe
11e251f
cd2e693
78555ec
31d4fc9
4af2e62
c94884b
618cf7a
267431d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Implements MSC3881: Parses `enabled` and `device_id` fields from updated Pusher API |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,8 @@ class PushersManager @Inject constructor( | |
appNameProvider.getAppName(), | ||
activeSessionHolder.getActiveSession().sessionParams.deviceId ?: "MOBILE", | ||
gateway, | ||
enabled = true, | ||
deviceId = activeSessionHolder.getActiveSession().sessionParams.deviceId ?: "MOBILE", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ouchadam there is some obvious duplication here with the above field There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I opted to use |
||
append = false, | ||
withEventIdOnly = true | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this default to true? That would match the current behaviour when the field is omitted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I missed this, it was only false for testing but it should be true. Good catch!