Skip to content

Commit

Permalink
Adjust position of the participant list in live streams.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorpamplona committed Jan 5, 2024
1 parent 89fb83c commit eaaa9a6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
46 changes: 23 additions & 23 deletions app/src/main/java/com/vitorpamplona/amethyst/ui/note/NoteCompose.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3459,29 +3459,6 @@ fun RenderLiveActivityEventInner(baseNote: Note, accountViewModel: AccountViewMo
}
}

participantUsers.forEach {
Row(
verticalAlignment = CenterVertically,
modifier = Modifier
.padding(top = 5.dp, start = 10.dp, end = 10.dp)
.clickable {
nav("User/${it.second.pubkeyHex}")
}
) {
ClickableUserPicture(it.second, 25.dp, accountViewModel)
Spacer(StdHorzSpacer)
UsernameDisplay(it.second, Modifier.weight(1f))
Spacer(StdHorzSpacer)
it.first.role?.let {
Text(
text = it.capitalize(Locale.ROOT),
color = MaterialTheme.colorScheme.placeholderText,
maxLines = 1
)
}
}
}

media?.let { media ->
if (status == STATUS_LIVE) {
CheckIfUrlIsOnline(media, accountViewModel) { isOnline ->
Expand Down Expand Up @@ -3529,6 +3506,29 @@ fun RenderLiveActivityEventInner(baseNote: Note, accountViewModel: AccountViewMo
}
}
}

participantUsers.forEach {
Row(
verticalAlignment = CenterVertically,
modifier = Modifier
.padding(vertical = 5.dp)
.clickable {
nav("User/${it.second.pubkeyHex}")
}
) {
ClickableUserPicture(it.second, 25.dp, accountViewModel)
Spacer(StdHorzSpacer)
UsernameDisplay(it.second, Modifier.weight(1f))
Spacer(StdHorzSpacer)
it.first.role?.let {
Text(
text = it.capitalize(Locale.ROOT),
color = MaterialTheme.colorScheme.placeholderText,
maxLines = 1
)
}
}
}
}

@Composable
Expand Down
2 changes: 1 addition & 1 deletion quartz/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dependencies {
// Bitcoin secp256k1 bindings to Android
api 'fr.acinq.secp256k1:secp256k1-kmp-jni-android:0.12.0'

// LibSodium for XChaCha encryption
// LibSodium for ChaCha encryption
implementation "com.goterl:lazysodium-android:5.1.0@aar"
implementation 'net.java.dev.jna:jna:5.14.0@aar'

Expand Down

0 comments on commit eaaa9a6

Please sign in to comment.