Allow image drag/drop in communities
This commit is contained in:
parent
3f35bad846
commit
fbbfa30b1b
|
@ -33,6 +33,8 @@ StackLayout {
|
||||||
property string activeChatId: chatsModel.activeChannel.id
|
property string activeChatId: chatsModel.activeChannel.id
|
||||||
property bool isBlocked: profileModel.contacts.isContactBlocked(activeChatId)
|
property bool isBlocked: profileModel.contacts.isContactBlocked(activeChatId)
|
||||||
|
|
||||||
|
property var input: chatInput
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
chatInput.textInput.forceActiveFocus(Qt.MouseFocusReason)
|
chatInput.textInput.forceActiveFocus(Qt.MouseFocusReason)
|
||||||
}
|
}
|
||||||
|
|
|
@ -418,7 +418,10 @@ RowLayout {
|
||||||
section: Constants.chat
|
section: Constants.chat
|
||||||
doNotHandleClick: true
|
doNotHandleClick: true
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
if (chatsModel.communities.activeCommunity.active) {
|
||||||
|
chatLayoutContainer.chatColumn.input.hideExtendedArea();
|
||||||
chatsModel.communities.activeCommunity.active = false
|
chatsModel.communities.activeCommunity.active = false
|
||||||
|
}
|
||||||
appMain.changeAppSection(Constants.chat)
|
appMain.changeAppSection(Constants.chat)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -275,7 +275,9 @@ ApplicationWindow {
|
||||||
)
|
)
|
||||||
) ||
|
) ||
|
||||||
// in timeline view
|
// in timeline view
|
||||||
loader.item.currentView === timelineView
|
loader.item.currentView === timelineView ||
|
||||||
|
// In community section
|
||||||
|
chatsModel.communities.activeCommunity.active
|
||||||
)
|
)
|
||||||
|
|
||||||
width: applicationWindow.width
|
width: applicationWindow.width
|
||||||
|
|
Loading…
Reference in New Issue