-
Notifications
You must be signed in to change notification settings - Fork 759
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
Feature/pending edits ux #407
Conversation
+ Fix issues with edits local echo management in aggregation
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, just 2 remarks
@@ -31,7 +31,8 @@ data class MessageInformationData( | |||
val showInformation: Boolean = true, | |||
/*List of reactions (emoji,count,isSelected)*/ | |||
var orderedReactionList: List<ReactionInfoData>? = null, | |||
var hasBeenEdited: Boolean = false | |||
var hasBeenEdited: Boolean = false, |
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.
we should only get val on this class, could you please change that on the 3 fields?
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.
done
@@ -163,7 +164,9 @@ abstract class AbsMessageItem<H : AbsMessageItem.Holder> : BaseEventItem<H>() { | |||
|
|||
protected fun renderSendState(root: View, textView: TextView?) { | |||
root.isClickable = informationData.sendState.isSent() | |||
textView?.setTextColor(colorProvider.getMessageTextColor(informationData.sendState)) | |||
val state = SendState.UNSENT.takeIf { informationData.hasPendingEdits } |
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 think a basic If else would be more readable
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.
done
Show pending edits by fading the event body
Fixes #193