style(ktlint): Fix formatting

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2024-12-13 11:38:48 +01:00
parent 0687061efd
commit a034fc8237
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B
2 changed files with 10 additions and 14 deletions

View File

@ -510,7 +510,8 @@ class OfflineFirstChatRepository @Inject constructor(
result.second,
blockContainingQueriedMessage,
lookIntoFuture,
hasHistory)
hasHistory
)
} else {
Log.d(TAG, "no data is updated...")
}

View File

@ -1374,13 +1374,15 @@ class ConversationInfoActivity :
items.add(BasicListItemWithImage(R.drawable.baseline_block_24, context.getString(R.string.ban_participant)))
}
when (participant.type) {
when (participant.type) {
Participant.ParticipantType.MODERATOR, Participant.ParticipantType.GUEST_MODERATOR -> {
items.removeAt(1)
}
Participant.ParticipantType.USER, Participant.ParticipantType.GUEST -> {
items.removeAt(2)
}
else -> {
// Self joined users can not be promoted nor demoted
items.removeAt(2)
@ -1457,14 +1459,9 @@ class ConversationInfoActivity :
participant: Participant,
apiVersion: Int,
itemText: String,
@DrawableRes itemIcon: Int = R.drawable.ic_delete_grey600_24dp,
@DrawableRes itemIcon: Int = R.drawable.ic_delete_grey600_24dp
) {
val items = mutableListOf(
BasicListItemWithImage(
itemIcon,
itemText
)
)
val items = mutableListOf(BasicListItemWithImage(itemIcon, itemText))
MaterialDialog(this, BottomSheet(WRAP_CONTENT)).show {
cornerRadius(res = R.dimen.corner_radius)
@ -1481,14 +1478,12 @@ class ConversationInfoActivity :
val apiVersion = ApiUtils.getConversationApiVersion(conversationUser, intArrayOf(ApiUtils.API_V4, 1))
val binding = DialogBanParticipantBinding.inflate(layoutInflater)
val actorTypeConverter = EnumActorTypeConverter()
val dialog = MaterialAlertDialogBuilder(context)
.setView(binding.root)
.create()
val dialog = MaterialAlertDialogBuilder(context).setView(binding.root).create()
binding.avatarImage.loadUserAvatar(
conversationUser,
participant.actorId!!,
true,
false
requestBigSize = true,
ignoreCache = false
)
binding.displayNameText.text = participant.actorId
binding.buttonBan.setOnClickListener {