Allow image drag/drop in communities

This commit is contained in:
Richard Ramos 2021-05-05 14:19:55 -04:00 committed by Iuri Matias
parent 3f35bad846
commit fbbfa30b1b
3 changed files with 9 additions and 2 deletions

View File

@ -33,6 +33,8 @@ StackLayout {
property string activeChatId: chatsModel.activeChannel.id
property bool isBlocked: profileModel.contacts.isContactBlocked(activeChatId)
property var input: chatInput
Component.onCompleted: {
chatInput.textInput.forceActiveFocus(Qt.MouseFocusReason)
}

View File

@ -418,7 +418,10 @@ RowLayout {
section: Constants.chat
doNotHandleClick: true
onClicked: {
if (chatsModel.communities.activeCommunity.active) {
chatLayoutContainer.chatColumn.input.hideExtendedArea();
chatsModel.communities.activeCommunity.active = false
}
appMain.changeAppSection(Constants.chat)
}

View File

@ -275,7 +275,9 @@ ApplicationWindow {
)
) ||
// in timeline view
loader.item.currentView === timelineView
loader.item.currentView === timelineView ||
// In community section
chatsModel.communities.activeCommunity.active
)
width: applicationWindow.width