-
Notifications
You must be signed in to change notification settings - Fork 232
Show poll creator view in timeline #1429
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
Conversation
julioromano
commented
Sep 25, 2023
- Shows edit/end poll buttons when the user is the creator of the poll.
- Only the end poll button is wired right now as there is no "edit poll" screen yet.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #1429 +/- ##
===========================================
- Coverage 58.06% 58.04% -0.03%
===========================================
Files 1129 1129
Lines 29880 29936 +56
Branches 6067 6088 +21
===========================================
+ Hits 17351 17377 +26
- Misses 9931 9953 +22
- Partials 2598 2606 +8
☔ View full report in Codecov by Sentry. |
57f7b88
to
0a5a068
Compare
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
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.
LGTM, thanks!
@@ -216,7 +216,7 @@ class MessagesPresenter @AssistedInject constructor( | |||
TimelineItemAction.ViewSource -> handleShowDebugInfoAction(targetEvent) | |||
TimelineItemAction.Forward -> handleForwardAction(targetEvent) | |||
TimelineItemAction.ReportContent -> handleReportAction(targetEvent) | |||
TimelineItemAction.EndPoll -> handleEndPollAction(targetEvent) | |||
TimelineItemAction.EndPoll -> targetEvent.eventId?.let { timelineState.eventSink(TimelineEvents.PollEndClicked(it)) } |
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.
Not a big deal, but I was happy with all the handle*
fun :)
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.
You'll soon be happy again
if (!isPollEnded) { | ||
if (votesCount == 0) { | ||
Button( | ||
text = "Edit Poll", |
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.
Localazy? Also maybe Edit poll
is better, not sure.
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.
Thanks for noticing, it's a leftover.
) | ||
} else { | ||
Button( | ||
text = "End Poll", |
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.
Localazy? Also maybe End poll
is better, not sure.
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.
Thanks for noticing, it's a leftover.
Only end poll button is wired right now as there is no "edit poll" screen yet.
54a0d3e
to
b4ee302
Compare
Comments addressed! New screenshots underway. |
Kudos, SonarCloud Quality Gate passed!
|