mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Fix forward completer after delegate rework
This commit is contained in:
parent
f8041d176a
commit
07fd58e59f
1 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@ import im.nheko 1.0
|
||||||
Popup {
|
Popup {
|
||||||
id: forwardMessagePopup
|
id: forwardMessagePopup
|
||||||
|
|
||||||
property var mid
|
property string mid: ""
|
||||||
|
|
||||||
function setMessageEventId(mid_in) {
|
function setMessageEventId(mid_in) {
|
||||||
mid = mid_in;
|
mid = mid_in;
|
||||||
|
@ -55,7 +55,7 @@ Popup {
|
||||||
id: replyPreview
|
id: replyPreview
|
||||||
|
|
||||||
eventId: mid
|
eventId: mid
|
||||||
userColor: TimelineManager.userColor(modelData.userId, palette.window)
|
userColor: TimelineManager.userColor(replyPreview.userId, palette.window)
|
||||||
maxWidth: parent.width
|
maxWidth: parent.width
|
||||||
}
|
}
|
||||||
MatrixTextField {
|
MatrixTextField {
|
||||||
|
@ -64,7 +64,7 @@ Popup {
|
||||||
color: palette.text
|
color: palette.text
|
||||||
width: forwardMessagePopup.width - forwardMessagePopup.leftPadding * 2
|
width: forwardMessagePopup.width - forwardMessagePopup.leftPadding * 2
|
||||||
|
|
||||||
Keys.onPressed: {
|
Keys.onPressed: (event) => {
|
||||||
if (event.key == Qt.Key_Up || event.key == Qt.Key_Backtab) {
|
if (event.key == Qt.Key_Up || event.key == Qt.Key_Backtab) {
|
||||||
event.accepted = true;
|
event.accepted = true;
|
||||||
completerPopup.up();
|
completerPopup.up();
|
||||||
|
@ -97,7 +97,7 @@ Popup {
|
||||||
}
|
}
|
||||||
Connections {
|
Connections {
|
||||||
function onCompletionSelected(id) {
|
function onCompletionSelected(id) {
|
||||||
room.forwardMessage(messageContextMenu.eventId, id);
|
room.forwardMessage(forwardMessagePopup.mid, id);
|
||||||
forwardMessagePopup.close();
|
forwardMessagePopup.close();
|
||||||
}
|
}
|
||||||
function onCountChanged() {
|
function onCountChanged() {
|
||||||
|
|
Loading…
Reference in a new issue