-
Notifications
You must be signed in to change notification settings - Fork 29
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
feat: Send Text Formatting message #1857
Conversation
Build 1 failed. |
app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/RichTextOptions.kt
Outdated
Show resolved
Hide resolved
Build 2 failed. |
# Conflicts: # kalium
Codecov Report
@@ Coverage Diff @@
## develop #1857 +/- ##
=============================================
- Coverage 37.23% 37.10% -0.13%
Complexity 809 809
=============================================
Files 276 276
Lines 10511 10558 +47
Branches 1378 1390 +12
=============================================
+ Hits 3914 3918 +4
- Misses 6198 6243 +45
+ Partials 399 397 -2
Continue to review full report in Codecov by Sentry.
|
Build (beta-debug) available here. Scroll down to Artifacts! |
Build (dev-debug) available here. Scroll down to Artifacts! |
Build 3 succeeded. The build produced the following APK's: |
app/src/main/kotlin/com/wire/android/ui/common/button/WireSecondaryIconButton.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/state/MessageComposeInputState.kt
Outdated
Show resolved
Hide resolved
@Stable | ||
data class NewMessage( | ||
val attachmentOptionsDisplayed: Boolean = false, | ||
val richTextFormattingOptionsDisplayed: Boolean = false | ||
) : MessageComposeInputType() | ||
|
||
@Stable | ||
data class EditMessage( | ||
val messageId: String, | ||
val originalText: String, | ||
val richTextFormattingOptionsDisplayed: Boolean = false | ||
) : MessageComposeInputType() | ||
|
||
@Stable | ||
data class SelfDeletingMessage( | ||
val selfDeletionDuration: SelfDeletionDuration, | ||
val isEnforced: Boolean, | ||
val attachmentOptionsDisplayed: Boolean = false | ||
val attachmentOptionsDisplayed: Boolean = false, | ||
val richTextFormattingOptionsDisplayed: Boolean = false | ||
) : MessageComposeInputType() |
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.
Had to add in each type instead of directly into the sealed class, otherwise the value wouldn't update into the screen.
Build 4 failed. |
Build (beta-debug) available here. Scroll down to Artifacts! |
Build (dev-debug) available here. Scroll down to Artifacts! |
Build 5 succeeded. The build produced the following APK's: |
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
No way to send text with formatting options (Bold, Italic, Header)
Causes (Optional)
Not implemented.
Solutions
Created a new
MessageComposeInputType
calledRichTextFormattingMessage
, so when clicking the RichText icon button when typing a (new/edit/ephemeral) message, it will show the text formatting options.Currently some of the logic is living inside the composables, but this will hopefully change as soon as we have the refactor on message composer so we can better split stuff.
Testing
How to Test
Multiple markdowns are accepted.
Attachments (Optional)
| | |