aboutsummaryrefslogtreecommitdiff
path: root/qml/ChatlistItem.qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml/ChatlistItem.qml')
-rw-r--r--qml/ChatlistItem.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/qml/ChatlistItem.qml b/qml/ChatlistItem.qml
index aa05d42..6e37331 100644
--- a/qml/ChatlistItem.qml
+++ b/qml/ChatlistItem.qml
@@ -36,6 +36,15 @@ Kirigami.AbstractListItem {
id: contextMenu
Action {
+ text: "Block chat"
+ onTriggered: {
+ root.context.blockChat(root.chatId)
+ updateChatlist()
+ }
+
+ }
+
+ Action {
icon.name: "pin"
text: "Pin chat"
onTriggered: root.context.setChatVisibility(root.chatId, 2)