-
Notifications
You must be signed in to change notification settings - Fork 19
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: federation stopped system messages [WPB-1815] #2040
Conversation
@Garzas looks like you are rolling back kalium to a previous commitish. This means that the PR's target branch (develop) is using a newer version of Kalium, and the changes in this PR will rollback Kalium to an older version.
Is this intentional? |
@Garzas looks like you are rolling back kalium to a previous commitish. This means that the PR's target branch (develop) is using a newer version of Kalium, and the changes in this PR will rollback Kalium to an older version.
Is this intentional? |
Build 819 failed. |
@Garzas looks like you are rolling back kalium to a previous commitish. This means that the PR's target branch (develop) is using a newer version of Kalium, and the changes in this PR will rollback Kalium to an older version.
Is this intentional? |
Build 820 failed. |
is MessagePreviewContent.FederatedMembersRemoved -> { | ||
val membersRemovedContent = (content as MessagePreviewContent.FederatedMembersRemoved) | ||
val isSelfRemoved = membersRemovedContent.isSelfUserRemoved | ||
val otherUsersSize = membersRemovedContent.otherUserIdList.size | ||
|
||
val previewMessageContent = when { | ||
isSelfMessage && otherUsersSize > 0 -> { | ||
UIText.PluralResource(R.plurals.last_message_self_removed_users, otherUsersSize, otherUsersSize) | ||
} | ||
|
||
!isSelfMessage && isSelfRemoved -> { | ||
if (otherUsersSize == 0) { | ||
UIText.StringResource(R.string.last_message_other_removed_only_self_user) | ||
} else { | ||
UIText.PluralResource( | ||
R.plurals.last_message_other_removed_self_user_and_others, | ||
otherUsersSize, | ||
otherUsersSize | ||
) | ||
} | ||
} | ||
|
||
else -> { | ||
UIText.PluralResource(R.plurals.last_message_other_removed_other_users, otherUsersSize, otherUsersSize) | ||
} | ||
} | ||
|
||
UILastMessageContent.TextMessage(MessageBody(previewMessageContent)) | ||
} | ||
|
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.
Can you cover this section with test ?
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.
Sure, I didn't start writing any test until kalium PR will be approved: wireapp/kalium#1930
@Garzas looks like you are rolling back kalium to a previous commitish. This means that the PR's target branch (develop) is using a newer version of Kalium, and the changes in this PR will rollback Kalium to an older version.
Is this intentional? |
Codecov Report
@@ Coverage Diff @@
## develop #2040 +/- ##
=============================================
+ Coverage 39.63% 40.34% +0.70%
- Complexity 939 953 +14
=============================================
Files 305 305
Lines 11269 11297 +28
Branches 1506 1512 +6
=============================================
+ Hits 4467 4558 +91
+ Misses 6373 6302 -71
- Partials 429 437 +8
Continue to review full report in Codecov by Sentry.
|
APKs built during tests are available here. Scroll down to Artifacts! |
Build 952 succeeded. The build produced the following APK's: |
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 left a comment, about the localization of the link :D
Co-authored-by: Yamil Medina <yamilmedina@users.noreply.github.com>
Build 965 succeeded. The build produced the following APK's: |
APKs built during tests are available here. Scroll down to Artifacts! |
…wire-android-reloaded into feat/federation-system-messages
Build 1009 succeeded. The build produced the following APK's: |
APKs built during tests are available here. Scroll down to Artifacts! |
Build 1010 succeeded. The build produced the following APK's: |
APKs built during tests are available here. Scroll down to Artifacts! |
Build 1120 succeeded. The build produced the following APK's: |
Build 1121 failed. |
APKs built during tests are available here. Scroll down to Artifacts! |
Build 1124 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?
Attachments (Optional)
Attachments like images, videos, etc. (drag and drop in the text box)