-
-
Notifications
You must be signed in to change notification settings - Fork 595
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
Poll model - validate end events #3072
Merged
kerryarchibald
merged 38 commits into
develop
from
psg-1014/poll-model-only-valid-end-events
Feb 1, 2023
Merged
Changes from 3 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
5ca533c
first cut poll model
984e5eb
process incoming poll relations
e578d84
allow alt event types in relations model
1123f1d
allow alt event types in relations model
ea71efe
remove unneccesary checks on remove relation
dfe4038
comment
515db7a
Revert "allow alt event types in relations model"
ae6ffb7
Revert "Revert "allow alt event types in relations model""
f189901
Merge branch 'psg-1014/relations-alt-event-types' into psg-1014/poll-…
cace5d4
basic handling for new poll relations
6b4f630
Merge branch 'develop' into psg-1014/poll-model
0f7829a
tests
32abfed
test room.processPollEvents
797123c
join processBeaconEvents and poll events in client
51896e1
Merge branch 'develop' into psg-1014/poll-model
ad49a00
Merge branch 'develop' into psg-1014/poll-model
b158dcc
tidy and set 23 copyrights
924a6c0
use rooms instance of matrixClient
d09700f
tidy
9e0d95e
more copyright
b173130
simplify processPollEvent code
15dd1c4
Merge branch 'develop' into psg-1014/poll-model
4a0494c
throw when poll start event has no roomId
07d154a
Merge branch 'develop' into psg-1014/poll-model
68ffea1
updates for events-sdk move
7d8f51c
more type changes for events-sdk changes
10117e7
validate poll end event senders
0a618a2
reformatted copyright
68291e8
undo more comment reformatting
9c239b2
Merge branch 'develop' into psg-1014/poll-model-only-valid-end-events
7588f07
Merge branch 'develop' into psg-1014/poll-model-only-valid-end-events
a2fc0b9
Merge branch 'develop' into psg-1014/poll-model-only-valid-end-events
2c457a6
Merge branch 'develop' into psg-1014/poll-model-only-valid-end-events
2dc4a81
fix poll end validation logic to allow poll creator to end poll regar…
3b3870b
Merge branch 'develop' into psg-1014/poll-model-only-valid-end-events
1d2edc2
Update src/models/poll.ts
ebbe6d4
correct creator == sender validationin poll end
1d164f7
Merge branch 'develop' into psg-1014/poll-model-only-valid-end-events
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
this is checking if the sender of the end event is the current user? Don't we want to check if it was the sender of the
rootEvent
?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.
🤦♀️ fixed and improved the tests to catch this. Thanks!