diff --git a/CMakeLists.txt b/CMakeLists.txt
index c962d2da..36403890 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -333,7 +333,7 @@ if(USE_BUNDLED_MTXCLIENT)
FetchContent_Declare(
MatrixClient
GIT_REPOSITORY https://github.com/Nheko-Reborn/mtxclient.git
- GIT_TAG 1018c0822b80cdfc5d6b589fe94d1fd759113ef6
+ GIT_TAG f5c78f4331b62a1e25a2d839cb38b07bb9bd7829
)
FetchContent_MakeAvailable(MatrixClient)
else()
diff --git a/io.github.NhekoReborn.Nheko.json b/io.github.NhekoReborn.Nheko.json
index 3de04370..50fa3b33 100644
--- a/io.github.NhekoReborn.Nheko.json
+++ b/io.github.NhekoReborn.Nheko.json
@@ -146,9 +146,9 @@
"name": "mtxclient",
"sources": [
{
- "sha256": "537f4e6b280f351ad950cd6598c2407505a55f0d6c856b4ff97a9c59fc6fdb7a",
+ "sha256": "16203a92b03c488178b31bedca9d9015b1d406443f7e5363a2e09171e50f8dfc",
"type": "archive",
- "url": "https://github.com/Nheko-Reborn/mtxclient/archive/1018c0822b80cdfc5d6b589fe94d1fd759113ef6.tar.gz"
+ "url": "https://github.com/Nheko-Reborn/mtxclient/archive/f5c78f4331b62a1e25a2d839cb38b07bb9bd7829.tar.gz"
}
]
},
diff --git a/resources/langs/nheko_de.ts b/resources/langs/nheko_de.ts
index 24c6cea7..3936febc 100644
--- a/resources/langs/nheko_de.ts
+++ b/resources/langs/nheko_de.ts
@@ -18,7 +18,7 @@
-
+
Eingeladener Benutzer: %1
@@ -151,6 +151,12 @@
Räume niedriger Priorität
+
+
+
+ Tag translation for m.server_notice
+
+
@@ -189,7 +195,7 @@
EmojiPicker
-
+
@@ -494,12 +500,59 @@ Beispiel: https://mein.server:8787
RoomInfoListItem
-
+
Raum verlassen
-
+
+
+
+
+
+
+
+ Standard matrix tag for favourites
+
+
+
+
+
+ Standard matrix tag for low priority rooms
+
+
+
+
+
+ Standard matrix tag for server notices
+
+
+
+
+
+ WhatsThis hint for tag menu actions
+
+
+
+
+
+ Add a new tag to the room
+
+
+
+
+
+ Tag name prompt title
+
+
+
+
+
+ Tag name prompt
+
+
+
+
Akzeptieren
@@ -563,7 +616,7 @@ Beispiel: https://mein.server:8787
TextInputWidget
-
+
Versende Datei
@@ -584,7 +637,7 @@ Beispiel: https://mein.server:8787
Emoji
-
+
Datei auswählen
@@ -602,7 +655,7 @@ Beispiel: https://mein.server:8787
TimelineModel
-
+
Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.
-- Entschlüsselungsfehler (Fehler bei Kommunikation mit Datenbank) --
@@ -771,12 +824,12 @@ Beispiel: https://mein.server:8787
%1 hat das Anklopfen zurückgezogen.
-
+
Du bist dem Raum beigetreten.
-
+
Hat das Anklopfen von %1 abgewiesen.
@@ -800,12 +853,12 @@ Beispiel: https://mein.server:8787
TimelineRow
-
+
-
+
Antworten
@@ -818,7 +871,7 @@ Beispiel: https://mein.server:8787
TimelineView
-
+
@@ -863,7 +916,7 @@ Beispiel: https://mein.server:8787
Kein Raum geöffnet
-
+
Schließen
@@ -925,7 +978,7 @@ Beispiel: https://mein.server:8787
UserSettingsPage
-
+
Ins Benachrichtigungsfeld minimieren
@@ -979,6 +1032,11 @@ Beispiel: https://mein.server:8787
Desktopbenachrichtigungen
+
+
+
+
+
@@ -1010,7 +1068,7 @@ Beispiel: https://mein.server:8787
Gerätefingerabdruck
-
+
Sitzungsschlüssel
@@ -1030,22 +1088,22 @@ Beispiel: https://mein.server:8787
VERSCHLÜSSELUNG
-
+
ALLGEMEINES
-
+
OBERFLÄCHE
-
+
Emojischriftart
-
+
Öffne Sessions Datei
diff --git a/resources/langs/nheko_el.ts b/resources/langs/nheko_el.ts
index 6c186504..c92e29d6 100644
--- a/resources/langs/nheko_el.ts
+++ b/resources/langs/nheko_el.ts
@@ -18,7 +18,7 @@
-
+
@@ -151,6 +151,12 @@
+
+
+
+ Tag translation for m.server_notice
+
+
@@ -189,7 +195,7 @@
EmojiPicker
-
+
@@ -490,12 +496,59 @@ Example: https://server.my:8787
RoomInfoListItem
-
+
Βγές
-
+
+
+
+
+
+
+
+ Standard matrix tag for favourites
+
+
+
+
+
+ Standard matrix tag for low priority rooms
+
+
+
+
+
+ Standard matrix tag for server notices
+
+
+
+
+
+ WhatsThis hint for tag menu actions
+
+
+
+
+
+ Add a new tag to the room
+
+
+
+
+
+ Tag name prompt title
+
+
+
+
+
+ Tag name prompt
+
+
+
+
Αποδοχή
@@ -559,7 +612,7 @@ Example: https://server.my:8787
TextInputWidget
-
+
@@ -580,7 +633,7 @@ Example: https://server.my:8787
-
+
Διάλεξε ένα αρχείο
@@ -598,7 +651,7 @@ Example: https://server.my:8787
TimelineModel
-
+
Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.
@@ -767,12 +820,12 @@ Example: https://server.my:8787
-
+
-
+
@@ -796,12 +849,12 @@ Example: https://server.my:8787
TimelineRow
-
+
-
+
@@ -814,7 +867,7 @@ Example: https://server.my:8787
TimelineView
-
+
@@ -859,7 +912,7 @@ Example: https://server.my:8787
-
+
@@ -921,7 +974,7 @@ Example: https://server.my:8787
UserSettingsPage
-
+
Ελαχιστοποίηση
@@ -975,6 +1028,11 @@ Example: https://server.my:8787
+
+
+
+
+
@@ -1006,7 +1064,7 @@ Example: https://server.my:8787
-
+
@@ -1026,22 +1084,22 @@ Example: https://server.my:8787
-
+
ΓΕΝΙΚΑ
-
+
-
+
-
+
diff --git a/resources/langs/nheko_en.ts b/resources/langs/nheko_en.ts
index d6f5336b..ea2241f1 100644
--- a/resources/langs/nheko_en.ts
+++ b/resources/langs/nheko_en.ts
@@ -18,7 +18,7 @@
-
+
Invited user: %1
@@ -151,6 +151,12 @@
Low priority rooms
+
+
+
+ Tag translation for m.server_notice
+
+
@@ -189,7 +195,7 @@
EmojiPicker
-
+
@@ -494,12 +500,59 @@ Example: https://server.my:8787
RoomInfoListItem
-
+
Leave room
-
+
+
+
+
+
+
+
+ Standard matrix tag for favourites
+
+
+
+
+
+ Standard matrix tag for low priority rooms
+
+
+
+
+
+ Standard matrix tag for server notices
+
+
+
+
+
+ WhatsThis hint for tag menu actions
+
+
+
+
+
+ Add a new tag to the room
+
+
+
+
+
+ Tag name prompt title
+
+
+
+
+
+ Tag name prompt
+
+
+
+
Accept
@@ -563,7 +616,7 @@ Example: https://server.my:8787
TextInputWidget
-
+
Send a file
@@ -584,7 +637,7 @@ Example: https://server.my:8787
Emoji
-
+
Select a file
@@ -602,7 +655,7 @@ Example: https://server.my:8787
TimelineModel
-
+
Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.
-- Decryption Error (failed to communicate with DB) --
@@ -771,12 +824,12 @@ Example: https://server.my:8787
%1 redacted their knock.
-
+
You joined this room.
-
+
Rejected the knock from %1.
@@ -800,12 +853,12 @@ Example: https://server.my:8787
TimelineRow
-
+
-
+
Reply
@@ -818,7 +871,7 @@ Example: https://server.my:8787
TimelineView
-
+
@@ -863,7 +916,7 @@ Example: https://server.my:8787
No room open
-
+
Close
@@ -925,7 +978,7 @@ Example: https://server.my:8787
UserSettingsPage
-
+
Minimize to tray
@@ -979,6 +1032,11 @@ Example: https://server.my:8787
Desktop notifications
+
+
+
+
+
@@ -1010,7 +1068,7 @@ Example: https://server.my:8787
Device Fingerprint
-
+
Session Keys
@@ -1030,22 +1088,22 @@ Example: https://server.my:8787
ENCRYPTION
-
+
GENERAL
-
+
INTERFACE
-
+
Emoji Font Family
-
+
Open Sessions File
diff --git a/resources/langs/nheko_fi.ts b/resources/langs/nheko_fi.ts
index b8aa463f..01f78691 100644
--- a/resources/langs/nheko_fi.ts
+++ b/resources/langs/nheko_fi.ts
@@ -18,7 +18,7 @@
-
+
@@ -151,6 +151,12 @@
Alhaisen prioriteetin huoneet
+
+
+
+ Tag translation for m.server_notice
+
+
@@ -189,7 +195,7 @@
EmojiPicker
-
+
@@ -490,12 +496,59 @@ Example: https://server.my:8787
RoomInfoListItem
-
+
Poistu huoneesta
-
+
+
+
+
+
+
+
+ Standard matrix tag for favourites
+
+
+
+
+
+ Standard matrix tag for low priority rooms
+
+
+
+
+
+ Standard matrix tag for server notices
+
+
+
+
+
+ WhatsThis hint for tag menu actions
+
+
+
+
+
+ Add a new tag to the room
+
+
+
+
+
+ Tag name prompt title
+
+
+
+
+
+ Tag name prompt
+
+
+
+
Hyväksy
@@ -559,7 +612,7 @@ Example: https://server.my:8787
TextInputWidget
-
+
Lähetä tiedosto
@@ -580,7 +633,7 @@ Example: https://server.my:8787
Emoji
-
+
Valitse tiedosto
@@ -598,7 +651,7 @@ Example: https://server.my:8787
TimelineModel
-
+
Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.
-- Virhe purkaessa salausta (tietokannan kanssa kommunikointi epäonnistui) --
@@ -767,12 +820,12 @@ Example: https://server.my:8787
-
+
-
+
@@ -796,12 +849,12 @@ Example: https://server.my:8787
TimelineRow
-
+
-
+
@@ -814,7 +867,7 @@ Example: https://server.my:8787
TimelineView
-
+
@@ -859,7 +912,7 @@ Example: https://server.my:8787
-
+
Sulje
@@ -921,7 +974,7 @@ Example: https://server.my:8787
UserSettingsPage
-
+
Pienennä ilmoitusalueelle
@@ -975,6 +1028,11 @@ Example: https://server.my:8787
Työpöytäilmoitukset
+
+
+
+
+
@@ -1006,7 +1064,7 @@ Example: https://server.my:8787
Laitteen sormenjälki
-
+
Istunnon avaimet
@@ -1026,22 +1084,22 @@ Example: https://server.my:8787
SALAUS
-
+
YLEISET ASETUKSET
-
+
-
+
-
+
Avaa Istuntoavaintiedosto
diff --git a/resources/langs/nheko_fr.ts b/resources/langs/nheko_fr.ts
index cc8c8238..2efe7777 100644
--- a/resources/langs/nheko_fr.ts
+++ b/resources/langs/nheko_fr.ts
@@ -18,7 +18,7 @@
-
+
@@ -151,6 +151,12 @@
+
+
+
+ Tag translation for m.server_notice
+
+
@@ -189,7 +195,7 @@
EmojiPicker
-
+
@@ -490,12 +496,59 @@ Example: https://server.my:8787
RoomInfoListItem
-
+
Quitter le salon
-
+
+
+
+
+
+
+
+ Standard matrix tag for favourites
+
+
+
+
+
+ Standard matrix tag for low priority rooms
+
+
+
+
+
+ Standard matrix tag for server notices
+
+
+
+
+
+ WhatsThis hint for tag menu actions
+
+
+
+
+
+ Add a new tag to the room
+
+
+
+
+
+ Tag name prompt title
+
+
+
+
+
+ Tag name prompt
+
+
+
+
Accepter
@@ -559,7 +612,7 @@ Example: https://server.my:8787
TextInputWidget
-
+
@@ -580,7 +633,7 @@ Example: https://server.my:8787
-
+
Sélectionnez un fichier
@@ -598,7 +651,7 @@ Example: https://server.my:8787
TimelineModel
-
+
Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.
@@ -767,12 +820,12 @@ Example: https://server.my:8787
-
+
-
+
@@ -796,12 +849,12 @@ Example: https://server.my:8787
TimelineRow
-
+
-
+
@@ -814,7 +867,7 @@ Example: https://server.my:8787
TimelineView
-
+
@@ -859,7 +912,7 @@ Example: https://server.my:8787
-
+
@@ -921,7 +974,7 @@ Example: https://server.my:8787
UserSettingsPage
-
+
Réduire à la barre des tâches
@@ -975,6 +1028,11 @@ Example: https://server.my:8787
+
+
+
+
+
@@ -1006,7 +1064,7 @@ Example: https://server.my:8787
-
+
@@ -1026,22 +1084,22 @@ Example: https://server.my:8787
-
+
GÉNÉRAL
-
+
-
+
-
+
diff --git a/resources/langs/nheko_ja.ts b/resources/langs/nheko_ja.ts
index aaba8bd4..40840af3 100644
--- a/resources/langs/nheko_ja.ts
+++ b/resources/langs/nheko_ja.ts
@@ -18,7 +18,7 @@
-
+
招待されたユーザー: %1
@@ -151,6 +151,12 @@
優先度の低い部屋
+
+
+
+ Tag translation for m.server_notice
+
+
@@ -189,7 +195,7 @@
EmojiPicker
-
+
@@ -490,12 +496,59 @@ Example: https://server.my:8787
RoomInfoListItem
-
+
部屋を出る
-
+
+
+
+
+
+
+
+ Standard matrix tag for favourites
+
+
+
+
+
+ Standard matrix tag for low priority rooms
+
+
+
+
+
+ Standard matrix tag for server notices
+
+
+
+
+
+ WhatsThis hint for tag menu actions
+
+
+
+
+
+ Add a new tag to the room
+
+
+
+
+
+ Tag name prompt title
+
+
+
+
+
+ Tag name prompt
+
+
+
+
容認
@@ -559,7 +612,7 @@ Example: https://server.my:8787
TextInputWidget
-
+
ファイルを送信
@@ -580,7 +633,7 @@ Example: https://server.my:8787
絵文字
-
+
ファイルを選択
@@ -598,7 +651,7 @@ Example: https://server.my:8787
TimelineModel
-
+
Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.
-- 復号エラー (データベースと通信できませんでした) --
@@ -766,12 +819,12 @@ Example: https://server.my:8787
%1がノックを編集しました。
-
+
-
+
%1からのノックを拒否しました。
@@ -795,12 +848,12 @@ Example: https://server.my:8787
TimelineRow
-
+
-
+
返信
@@ -813,7 +866,7 @@ Example: https://server.my:8787
TimelineView
-
+
@@ -858,7 +911,7 @@ Example: https://server.my:8787
部屋が開いていません
-
+
閉じる
@@ -920,7 +973,7 @@ Example: https://server.my:8787
UserSettingsPage
-
+
トレイへ最小化
@@ -974,6 +1027,11 @@ Example: https://server.my:8787
デスクトップ通知
+
+
+
+
+
@@ -1005,7 +1063,7 @@ Example: https://server.my:8787
デバイスの指紋
-
+
セッション鍵
@@ -1025,22 +1083,22 @@ Example: https://server.my:8787
暗号化
-
+
全般
-
+
-
+
-
+
セッションファイルを開く
diff --git a/resources/langs/nheko_nl.ts b/resources/langs/nheko_nl.ts
index 8f5a9f21..3994c843 100644
--- a/resources/langs/nheko_nl.ts
+++ b/resources/langs/nheko_nl.ts
@@ -18,7 +18,7 @@
-
+
@@ -151,6 +151,12 @@
+
+
+
+ Tag translation for m.server_notice
+
+
@@ -189,7 +195,7 @@
EmojiPicker
-
+
@@ -490,12 +496,59 @@ Example: https://server.my:8787
RoomInfoListItem
-
+
Kamer verlaten
-
+
+
+
+
+
+
+
+ Standard matrix tag for favourites
+
+
+
+
+
+ Standard matrix tag for low priority rooms
+
+
+
+
+
+ Standard matrix tag for server notices
+
+
+
+
+
+ WhatsThis hint for tag menu actions
+
+
+
+
+
+ Add a new tag to the room
+
+
+
+
+
+ Tag name prompt title
+
+
+
+
+
+ Tag name prompt
+
+
+
+
Accepteren
@@ -559,7 +612,7 @@ Example: https://server.my:8787
TextInputWidget
-
+
@@ -580,7 +633,7 @@ Example: https://server.my:8787
-
+
Kies een bestand
@@ -598,7 +651,7 @@ Example: https://server.my:8787
TimelineModel
-
+
Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.
@@ -767,12 +820,12 @@ Example: https://server.my:8787
-
+
-
+
@@ -796,12 +849,12 @@ Example: https://server.my:8787
TimelineRow
-
+
-
+
@@ -814,7 +867,7 @@ Example: https://server.my:8787
TimelineView
-
+
@@ -859,7 +912,7 @@ Example: https://server.my:8787
-
+
@@ -921,7 +974,7 @@ Example: https://server.my:8787
UserSettingsPage
-
+
Minimaliseren naar systeemvak
@@ -975,6 +1028,11 @@ Example: https://server.my:8787
+
+
+
+
+
@@ -1006,7 +1064,7 @@ Example: https://server.my:8787
-
+
@@ -1026,22 +1084,22 @@ Example: https://server.my:8787
-
+
ALGEMEEN
-
+
-
+
-
+
diff --git a/resources/langs/nheko_pl.ts b/resources/langs/nheko_pl.ts
index 7e4495fa..ce1478f4 100644
--- a/resources/langs/nheko_pl.ts
+++ b/resources/langs/nheko_pl.ts
@@ -18,7 +18,7 @@
-
+
@@ -151,6 +151,12 @@
+
+
+
+ Tag translation for m.server_notice
+
+
@@ -189,7 +195,7 @@
EmojiPicker
-
+
@@ -490,12 +496,59 @@ Example: https://server.my:8787
RoomInfoListItem
-
+
Opuść pokój
-
+
+
+
+
+
+
+
+ Standard matrix tag for favourites
+
+
+
+
+
+ Standard matrix tag for low priority rooms
+
+
+
+
+
+ Standard matrix tag for server notices
+
+
+
+
+
+ WhatsThis hint for tag menu actions
+
+
+
+
+
+ Add a new tag to the room
+
+
+
+
+
+ Tag name prompt title
+
+
+
+
+
+ Tag name prompt
+
+
+
+
Akceptuj
@@ -559,7 +612,7 @@ Example: https://server.my:8787
TextInputWidget
-
+
Wyślij plik
@@ -580,7 +633,7 @@ Example: https://server.my:8787
Emoji
-
+
Wybierz plik
@@ -598,7 +651,7 @@ Example: https://server.my:8787
TimelineModel
-
+
Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.
@@ -768,12 +821,12 @@ Example: https://server.my:8787
-
+
-
+
@@ -797,12 +850,12 @@ Example: https://server.my:8787
TimelineRow
-
+
-
+
@@ -815,7 +868,7 @@ Example: https://server.my:8787
TimelineView
-
+
@@ -860,7 +913,7 @@ Example: https://server.my:8787
-
+
@@ -922,7 +975,7 @@ Example: https://server.my:8787
UserSettingsPage
-
+
Zminimalizuj do paska zadań
@@ -976,6 +1029,11 @@ Example: https://server.my:8787
Powiadomienia na pulpicie
+
+
+
+
+
@@ -1007,7 +1065,7 @@ Example: https://server.my:8787
Odcisk palca urządzenia
-
+
@@ -1027,22 +1085,22 @@ Example: https://server.my:8787
SZYFROWANIE
-
+
OGÓLNE
-
+
-
+
-
+
diff --git a/resources/langs/nheko_ru.ts b/resources/langs/nheko_ru.ts
index 99a31673..42b0948e 100644
--- a/resources/langs/nheko_ru.ts
+++ b/resources/langs/nheko_ru.ts
@@ -18,7 +18,7 @@
-
+
@@ -151,6 +151,12 @@
Комнаты с низким приоритетом
+
+
+
+ Tag translation for m.server_notice
+
+
@@ -189,7 +195,7 @@
EmojiPicker
-
+
@@ -490,12 +496,59 @@ Example: https://server.my:8787
RoomInfoListItem
-
+
Покинуть комнату
-
+
+
+
+
+
+
+
+ Standard matrix tag for favourites
+
+
+
+
+
+ Standard matrix tag for low priority rooms
+
+
+
+
+
+ Standard matrix tag for server notices
+
+
+
+
+
+ WhatsThis hint for tag menu actions
+
+
+
+
+
+ Add a new tag to the room
+
+
+
+
+
+ Tag name prompt title
+
+
+
+
+
+ Tag name prompt
+
+
+
+
Принять
@@ -559,7 +612,7 @@ Example: https://server.my:8787
TextInputWidget
-
+
Отправить файл
@@ -580,7 +633,7 @@ Example: https://server.my:8787
-
+
Выберите файл
@@ -598,7 +651,7 @@ Example: https://server.my:8787
TimelineModel
-
+
Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.
@@ -768,12 +821,12 @@ Example: https://server.my:8787
-
+
-
+
@@ -797,12 +850,12 @@ Example: https://server.my:8787
TimelineRow
-
+
-
+
@@ -815,7 +868,7 @@ Example: https://server.my:8787
TimelineView
-
+
@@ -860,7 +913,7 @@ Example: https://server.my:8787
-
+
Закрыть
@@ -922,7 +975,7 @@ Example: https://server.my:8787
UserSettingsPage
-
+
Сворачивать в системную панель
@@ -976,6 +1029,11 @@ Example: https://server.my:8787
Уведомления на рабочем столе
+
+
+
+
+
@@ -1007,7 +1065,7 @@ Example: https://server.my:8787
Отпечаток устройства
-
+
Ключи сеанса
@@ -1027,22 +1085,22 @@ Example: https://server.my:8787
ШИФРОВАНИЕ
-
+
ГЛАВНОЕ
-
+
-
+
-
+
Открыть файл сеансов
diff --git a/resources/langs/nheko_zh_CN.ts b/resources/langs/nheko_zh_CN.ts
index 8afd6e3b..33598230 100644
--- a/resources/langs/nheko_zh_CN.ts
+++ b/resources/langs/nheko_zh_CN.ts
@@ -18,7 +18,7 @@
-
+
@@ -151,6 +151,12 @@
+
+
+
+ Tag translation for m.server_notice
+
+
@@ -189,7 +195,7 @@
EmojiPicker
-
+
@@ -490,12 +496,59 @@ Example: https://server.my:8787
RoomInfoListItem
-
+
离开聊天室
-
+
+
+
+
+
+
+
+ Standard matrix tag for favourites
+
+
+
+
+
+ Standard matrix tag for low priority rooms
+
+
+
+
+
+ Standard matrix tag for server notices
+
+
+
+
+
+ WhatsThis hint for tag menu actions
+
+
+
+
+
+ Add a new tag to the room
+
+
+
+
+
+ Tag name prompt title
+
+
+
+
+
+ Tag name prompt
+
+
+
+
接受
@@ -559,7 +612,7 @@ Example: https://server.my:8787
TextInputWidget
-
+
发送一个文件
@@ -580,7 +633,7 @@ Example: https://server.my:8787
-
+
选择一个文件
@@ -598,7 +651,7 @@ Example: https://server.my:8787
TimelineModel
-
+
Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.
@@ -766,12 +819,12 @@ Example: https://server.my:8787
-
+
-
+
@@ -795,12 +848,12 @@ Example: https://server.my:8787
TimelineRow
-
+
-
+
@@ -813,7 +866,7 @@ Example: https://server.my:8787
TimelineView
-
+
@@ -858,7 +911,7 @@ Example: https://server.my:8787
-
+
@@ -920,7 +973,7 @@ Example: https://server.my:8787
UserSettingsPage
-
+
最小化至托盘
@@ -974,6 +1027,11 @@ Example: https://server.my:8787
桌面通知
+
+
+
+
+
@@ -1005,7 +1063,7 @@ Example: https://server.my:8787
设备指纹
-
+
会话密钥
@@ -1025,22 +1083,22 @@ Example: https://server.my:8787
加密
-
+
通用
-
+
-
+
-
+
打开会话文件
diff --git a/src/Cache.cpp b/src/Cache.cpp
index 3a388bb9..1061e60e 100644
--- a/src/Cache.cpp
+++ b/src/Cache.cpp
@@ -915,8 +915,8 @@ Cache::saveState(const mtx::responses::Sync &res)
bool has_new_tags = false;
for (const auto &evt : room.second.account_data.events) {
// for now only fetch tag events
- if (std::holds_alternative>(evt)) {
- auto tags_evt = std::get>(evt);
+ if (std::holds_alternative>(evt)) {
+ auto tags_evt = std::get>(evt);
has_new_tags = true;
for (const auto &tag : tags_evt.content.tags) {
updatedInfo.tags.push_back(tag.first);
@@ -1081,7 +1081,7 @@ Cache::roomsWithTagUpdates(const mtx::responses::Sync &res)
for (const auto &room : res.rooms.join) {
bool hasUpdates = false;
for (const auto &evt : room.second.account_data.events) {
- if (std::holds_alternative>(evt)) {
+ if (std::holds_alternative>(evt)) {
hasUpdates = true;
}
}
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp
index 6670532c..1e06da5d 100644
--- a/src/ChatPage.cpp
+++ b/src/ChatPage.cpp
@@ -300,6 +300,29 @@ ChatPage::ChatPage(QSharedPointer userSettings, QWidget *parent)
connect(text_input_, &TextInputWidget::sendBanRoomRequest, this, &ChatPage::banUser);
connect(text_input_, &TextInputWidget::sendUnbanRoomRequest, this, &ChatPage::unbanUser);
+ connect(
+ text_input_, &TextInputWidget::changeRoomNick, this, [this](const QString &displayName) {
+ mtx::events::state::Member member;
+ member.display_name = displayName.toStdString();
+ member.avatar_url =
+ cache::avatarUrl(currentRoom(),
+ QString::fromStdString(http::client()->user_id().to_string()))
+ .toStdString();
+ member.membership = mtx::events::state::Membership::Join;
+
+ http::client()
+ ->send_state_event(
+ currentRoom().toStdString(),
+ http::client()->user_id().to_string(),
+ member,
+ [](mtx::responses::EventId, mtx::http::RequestErr err) {
+ if (err)
+ nhlog::net()->error("Failed to set room displayname: {}",
+ err->matrix_error.error);
+ });
+ });
+
connect(
text_input_,
&TextInputWidget::uploadMedia,
diff --git a/src/ChatPage.h b/src/ChatPage.h
index 94a5db59..b6b72319 100644
--- a/src/ChatPage.h
+++ b/src/ChatPage.h
@@ -77,6 +77,8 @@ public:
QSharedPointer userSettings() { return userSettings_; }
void deleteConfigs();
+ CommunitiesList *communitiesList() { return communitiesList_; }
+
//! Calculate the width of the message timeline.
uint64_t timelineWidth();
bool isSideBarExpanded();
diff --git a/src/CommunitiesList.cpp b/src/CommunitiesList.cpp
index bb57ca40..8a938646 100644
--- a/src/CommunitiesList.cpp
+++ b/src/CommunitiesList.cpp
@@ -257,6 +257,18 @@ CommunitiesList::roomList(const QString &id) const
return {};
}
+std::vector
+CommunitiesList::currentTags() const
+{
+ std::vector tags;
+ for (auto &entry : communities_) {
+ CommunitiesListItem *item = entry.second.data();
+ if (item->is_tag())
+ tags.push_back(entry.first.mid(4).toStdString());
+ }
+ return tags;
+}
+
void
CommunitiesList::sortEntries()
{
diff --git a/src/CommunitiesList.h b/src/CommunitiesList.h
index d3cbeeff..63f7af07 100644
--- a/src/CommunitiesList.h
+++ b/src/CommunitiesList.h
@@ -28,6 +28,7 @@ public:
void syncTags(const std::map &info);
void setTagsForRoom(const QString &id, const std::vector &tags);
+ std::vector currentTags() const;
signals:
void communityChanged(const QString &id);
diff --git a/src/CommunitiesListItem.cpp b/src/CommunitiesListItem.cpp
index 274271e5..c56c74a2 100644
--- a/src/CommunitiesListItem.cpp
+++ b/src/CommunitiesListItem.cpp
@@ -137,6 +137,8 @@ CommunitiesListItem::updateTooltip()
setToolTip(tr("Favourite rooms"));
else if (tag == "m.lowpriority")
setToolTip(tr("Low priority rooms"));
+ else if (tag == "m.server_notice")
+ setToolTip(tr("Server Notices", "Tag translation for m.server_notice"));
else if (tag.startsWith("u."))
setToolTip(tag.right(tag.size() - 2) + tr(" (tag)"));
else
diff --git a/src/RoomInfoListItem.cpp b/src/RoomInfoListItem.cpp
index ee8d532d..ad774360 100644
--- a/src/RoomInfoListItem.cpp
+++ b/src/RoomInfoListItem.cpp
@@ -16,6 +16,7 @@
*/
#include
+#include
#include
#include
#include
@@ -23,7 +24,10 @@
#include "AvatarProvider.h"
#include "Cache.h"
+#include "ChatPage.h"
#include "Config.h"
+#include "Logging.h"
+#include "MatrixClient.h"
#include "RoomInfoListItem.h"
#include "Splitter.h"
#include "UserSettingsPage.h"
@@ -97,7 +101,106 @@ RoomInfoListItem::init(QWidget *parent)
menu_ = new Menu(this);
leaveRoom_ = new QAction(tr("Leave room"), this);
connect(leaveRoom_, &QAction::triggered, this, [this]() { emit leaveRoom(roomId_); });
- menu_->addAction(leaveRoom_);
+
+ connect(menu_, &QMenu::aboutToShow, this, [this]() {
+ menu_->clear();
+ menu_->addAction(leaveRoom_);
+
+ menu_->addSection(QIcon(":/icons/icons/ui/tag.png"), tr("Tag room as:"));
+
+ auto roomInfo = cache::singleRoomInfo(roomId_.toStdString());
+
+ auto tags = ChatPage::instance()->communitiesList()->currentTags();
+
+ // add default tag, remove server notice tag
+ if (std::find(tags.begin(), tags.end(), "m.favourite") == tags.end())
+ tags.push_back("m.favourite");
+ if (std::find(tags.begin(), tags.end(), "m.lowpriority") == tags.end())
+ tags.push_back("m.lowpriority");
+ if (auto it = std::find(tags.begin(), tags.end(), "m.server_notice");
+ it != tags.end())
+ tags.erase(it);
+
+ for (const auto &tag : tags) {
+ QString tagName;
+ if (tag == "m.favourite")
+ tagName = tr("Favourite", "Standard matrix tag for favourites");
+ else if (tag == "m.lowpriority")
+ tagName =
+ tr("Low Priority", "Standard matrix tag for low priority rooms");
+ else if (tag == "m.server_notice")
+ tagName =
+ tr("Server Notice", "Standard matrix tag for server notices");
+ else if ((tag.size() > 2 && tag.substr(0, 2) == "u.") ||
+ tag.find(".") !=
+ std::string::npos) // tag manager creates tags without u., which
+ // is wrong, but we still want to display them
+ tagName = QString::fromStdString(tag.substr(2));
+
+ if (tagName.isEmpty())
+ continue;
+
+ auto tagAction = menu_->addAction(tagName);
+ tagAction->setCheckable(true);
+ tagAction->setWhatsThis(tr("Adds or removes the specified tag.",
+ "WhatsThis hint for tag menu actions"));
+
+ for (const auto &riTag : roomInfo.tags)
+ if (riTag == tag) {
+ tagAction->setChecked(true);
+ break;
+ }
+
+ connect(tagAction, &QAction::triggered, this, [this, tag](bool checked) {
+ if (checked)
+ http::client()->put_tag(
+ roomId_.toStdString(),
+ tag,
+ {},
+ [tag](mtx::http::RequestErr err) {
+ if (err) {
+ nhlog::ui()->error(
+ "Failed to add tag: {}, {}",
+ tag,
+ err->matrix_error.error);
+ }
+ });
+ else
+ http::client()->delete_tag(
+ roomId_.toStdString(),
+ tag,
+ [tag](mtx::http::RequestErr err) {
+ if (err) {
+ nhlog::ui()->error(
+ "Failed to delete tag: {}, {}",
+ tag,
+ err->matrix_error.error);
+ }
+ });
+ });
+ }
+
+ auto newTagAction = menu_->addAction(tr("New tag...", "Add a new tag to the room"));
+ connect(newTagAction, &QAction::triggered, this, [this]() {
+ QString tagName =
+ QInputDialog::getText(this,
+ tr("New Tag", "Tag name prompt title"),
+ tr("Tag:", "Tag name prompt"));
+ if (tagName.isEmpty())
+ return;
+
+ std::string tag = "u." + tagName.toStdString();
+
+ http::client()->put_tag(
+ roomId_.toStdString(), tag, {}, [tag](mtx::http::RequestErr err) {
+ if (err) {
+ nhlog::ui()->error("Failed to add tag: {}, {}",
+ tag,
+ err->matrix_error.error);
+ }
+ });
+ });
+ });
}
RoomInfoListItem::RoomInfoListItem(QString room_id,
diff --git a/src/TextInputWidget.cpp b/src/TextInputWidget.cpp
index af5c278e..3e3915bb 100644
--- a/src/TextInputWidget.cpp
+++ b/src/TextInputWidget.cpp
@@ -279,6 +279,7 @@ FilteredTextEdit::canInsertFromMimeData(const QMimeData *source) const
void
FilteredTextEdit::insertFromMimeData(const QMimeData *source)
{
+ qInfo() << "Got mime formats: \n" << source->formats();
const auto formats = source->formats().filter("/");
const auto image = formats.filter("image/", Qt::CaseInsensitive);
const auto audio = formats.filter("audio/", Qt::CaseInsensitive);
@@ -576,6 +577,8 @@ TextInputWidget::command(QString command, QString args)
sendBanRoomRequest(args.section(' ', 0, 0), args.section(' ', 1, -1));
} else if (command == "unban") {
sendUnbanRoomRequest(args.section(' ', 0, 0), args.section(' ', 1, -1));
+ } else if (command == "roomnick") {
+ changeRoomNick(args);
} else if (command == "shrug") {
sendTextMessage("¯\\_(ツ)_/¯");
} else if (command == "fliptable") {
diff --git a/src/TextInputWidget.h b/src/TextInputWidget.h
index addb61ec..a0105eb0 100644
--- a/src/TextInputWidget.h
+++ b/src/TextInputWidget.h
@@ -167,6 +167,7 @@ signals:
void sendKickRoomRequest(const QString &userid, const QString &reason);
void sendBanRoomRequest(const QString &userid, const QString &reason);
void sendUnbanRoomRequest(const QString &userid, const QString &reason);
+ void changeRoomNick(const QString &displayname);
void startedTyping();
void stoppedTyping();
diff --git a/src/dialogs/PreviewUploadOverlay.cpp b/src/dialogs/PreviewUploadOverlay.cpp
index 42558d67..20959b0a 100644
--- a/src/dialogs/PreviewUploadOverlay.cpp
+++ b/src/dialogs/PreviewUploadOverlay.cpp
@@ -136,6 +136,11 @@ PreviewUploadOverlay::setLabels(const QString &type, const QString &mime, uint64
void
PreviewUploadOverlay::setPreview(const QImage &src, const QString &mime)
{
+ nhlog::ui()->info("Pasting image with size: {}x{}, format: {}",
+ src.height(),
+ src.width(),
+ mime.toStdString());
+
auto const &split = mime.split('/');
auto const &type = split[1];