Skip to content

Commit

Permalink
chore: apply 4.0.0-beta29 source code
Browse files Browse the repository at this point in the history
  • Loading branch information
kornsitti committed Jan 31, 2025
1 parent aefd375 commit 3efb6d9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 32 deletions.
4 changes: 2 additions & 2 deletions buildsystem/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ buildscript {
amityMockkVersion = "1.10.0"
amitySDKJitpackDependency = 'com.github.AmityCo.Amity-Social-Cloud-SDK-Android'
amitySDKMavenDependency = 'co.amity.android'
amityMessagingSdkVersion = '6.47.0'
amitySDKDependency = amitySDKMavenDependency
amityMessagingSdkVersion = '6.50.0'
amitySDKDependency = amitySDKJitpackDependency
amityRxLifeCycleVersion = '1.1.2-beta01'
amityJacocoVersion = '0.8.5'
amityExoplayerVersion = '2.18.5'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,7 @@ fun AmityPollPostComposerPage(
)
Icon(
Icons.Filled.KeyboardArrowDown,
//painter = painterResource(R.drawable.),
contentDescription = "Select category",
contentDescription = "Select duration",
tint = AmityTheme.colors.baseShade2,
modifier = modifier
.size(24.dp)
Expand Down Expand Up @@ -988,33 +987,6 @@ fun AmityPollDurationOptionContainer(

Spacer(modifier = Modifier.height(40.dp))

// Row(
// verticalAlignment = Alignment.CenterVertically,
// modifier = Modifier
// .height(56.dp)
// .fillMaxWidth()
// .clickableWithoutRipple {
// onSelected(-1)
// }
// .padding(start = 16.dp, end = 18.dp),
//
// ) {
// Text(
// text = "Custom end date",
// style = AmityTheme.typography.body.copy(
// fontWeight = FontWeight.SemiBold,
// ),
// modifier = modifier
// .weight(1f)
// .testTag("custom_poll_duration")
// )
// Icon(
// modifier = Modifier.size(18.dp),
// painter = painterResource(R.drawable.amity_ic_chevron_right),
// contentDescription = "pick date time",
// tint = AmityTheme.colors.baseShade1
// )
// }

}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,8 @@ fun AmityPostPollElement(
"Voted by 1 participant"
}else {
val plusSign = if(voteCount > 1000) "+" else ""
"Voted by ${voteCount.readableNumber()}${plusSign} participants".apply {
val displayVoteCount = if(answer.isVotedByUser) (voteCount - 1).readableNumber() else voteCount.readableNumber()
"Voted by ${displayVoteCount}${plusSign} participants".apply {
if (answer.isVotedByUser) {
this.plus(" and you")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import androidx.paging.LoadState
import androidx.paging.PagingData
import androidx.paging.cachedIn
import com.amity.socialcloud.sdk.api.core.AmityCoreClient
import com.amity.socialcloud.sdk.api.core.user.search.AmityUserSearchMatchType
import com.amity.socialcloud.sdk.api.core.user.search.AmityUserSortOption
import com.amity.socialcloud.sdk.api.social.AmitySocialClient
import com.amity.socialcloud.sdk.helper.core.coroutines.asFlow
Expand Down Expand Up @@ -83,6 +84,7 @@ class AmityGlobalSearchViewModel : AmityBaseViewModel() {
return AmityCoreClient.newUserRepository()
.searchUsers(_keyword.value)
.sortBy(AmityUserSortOption.DISPLAYNAME)
.matchType(AmityUserSearchMatchType.PARTIAL)
.build()
.query()
.subscribeOn(Schedulers.io())
Expand Down

0 comments on commit 3efb6d9

Please sign in to comment.