mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 20:15:21 +00:00
[SES-206, SES-359] Enable reply with voice and fix layout
This commit is contained in:
commit
fbf448f889
@ -1606,7 +1606,12 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe
|
||||
return Pair(recipient.address, sentTimestamp)
|
||||
}
|
||||
|
||||
private fun sendAttachments(attachments: List<Attachment>, body: String?, quotedMessage: MessageRecord? = null, linkPreview: LinkPreview? = null): Pair<Address, Long>? {
|
||||
private fun sendAttachments(
|
||||
attachments: List<Attachment>,
|
||||
body: String?,
|
||||
quotedMessage: MessageRecord? = binding?.inputBar?.quote,
|
||||
linkPreview: LinkPreview? = null
|
||||
): Pair<Address, Long>? {
|
||||
val recipient = viewModel.recipient ?: return null
|
||||
val sentTimestamp = SnodeAPI.nowWithOffset
|
||||
processMessageRequestApproval()
|
||||
|
@ -36,15 +36,6 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
<include layout="@layout/view_voice_message"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
android:visibility="gone"
|
||||
android:id="@+id/voiceMessageView"
|
||||
android:layout_width="160dp"
|
||||
android:layout_height="36dp"/>
|
||||
|
||||
<include layout="@layout/view_open_group_invitation"
|
||||
tools:visibility="gone"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
@ -75,6 +66,15 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
<include layout="@layout/view_voice_message"
|
||||
app:layout_constraintTop_toBottomOf="@id/quoteView"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
android:visibility="gone"
|
||||
android:id="@+id/voiceMessageView"
|
||||
android:layout_width="160dp"
|
||||
android:layout_height="36dp"/>
|
||||
|
||||
<include layout="@layout/view_link_preview"
|
||||
app:layout_constraintTop_toBottomOf="@+id/quoteView"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
Loading…
Reference in New Issue
Block a user