mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Fixed missing e2e encrypted header
This commit is contained in:
parent
fc82c8bcf6
commit
03299bae16
1 changed files with 7 additions and 9 deletions
|
|
@ -280,6 +280,11 @@ class ConversationFragment : SlidingPaneChildFragment() {
|
|||
super.onCreate(savedInstanceState)
|
||||
|
||||
adapter = ConversationEventAdapter()
|
||||
headerItemDecoration = RecyclerViewHeaderDecoration(
|
||||
requireContext(),
|
||||
adapter,
|
||||
false
|
||||
)
|
||||
bottomSheetAdapter = MessageBottomSheetAdapter()
|
||||
}
|
||||
|
||||
|
|
@ -379,15 +384,8 @@ class ConversationFragment : SlidingPaneChildFragment() {
|
|||
sendMessageViewModel.configureChatRoom(viewModel.chatRoom)
|
||||
|
||||
if (viewModel.isEndToEndEncrypted.value == true) {
|
||||
if (binding.eventsList.itemDecorationCount == 0) {
|
||||
headerItemDecoration = RecyclerViewHeaderDecoration(
|
||||
requireContext(),
|
||||
adapter,
|
||||
false
|
||||
)
|
||||
binding.eventsList.addItemDecoration(headerItemDecoration)
|
||||
binding.eventsList.addOnItemTouchListener(listItemTouchListener)
|
||||
}
|
||||
binding.eventsList.addItemDecoration(headerItemDecoration)
|
||||
binding.eventsList.addOnItemTouchListener(listItemTouchListener)
|
||||
}
|
||||
|
||||
// Wait for chat room to be ready before trying to forward a message in it
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue