mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Add un-encrypted warning icon for messages in encrypted rooms
This commit is contained in:
parent
279bcd1bf2
commit
18f934efad
17 changed files with 127 additions and 53 deletions
BIN
resources/icons/ui/unlock.png
Normal file
BIN
resources/icons/ui/unlock.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 385 B |
BIN
resources/icons/ui/unlock@2x.png
Normal file
BIN
resources/icons/ui/unlock@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 741 B |
|
@ -189,10 +189,15 @@
|
||||||
<context>
|
<context>
|
||||||
<name>EncryptionIndicator</name>
|
<name>EncryptionIndicator</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/EncryptionIndicator.qml" line="+12"/>
|
<location filename="../qml/EncryptionIndicator.qml" line="+36"/>
|
||||||
<source>Encrypted</source>
|
<source>Encrypted</source>
|
||||||
<translation>Verschlüsselt</translation>
|
<translation>Verschlüsselt</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location line="+2"/>
|
||||||
|
<source>This message is not encrypted!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>InviteeItem</name>
|
<name>InviteeItem</name>
|
||||||
|
@ -310,7 +315,7 @@ Beispiel: https://mein.server:8787</translation>
|
||||||
<context>
|
<context>
|
||||||
<name>MessageDelegate</name>
|
<name>MessageDelegate</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/delegates/MessageDelegate.qml" line="+64"/>
|
<location filename="../qml/delegates/MessageDelegate.qml" line="+66"/>
|
||||||
<source>redacted</source>
|
<source>redacted</source>
|
||||||
<translation>gelöscht</translation>
|
<translation>gelöscht</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -548,7 +553,7 @@ Beispiel: https://mein.server:8787</translation>
|
||||||
<context>
|
<context>
|
||||||
<name>TimelineModel</name>
|
<name>TimelineModel</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/timeline/TimelineModel.cpp" line="+844"/>
|
<location filename="../../src/timeline/TimelineModel.cpp" line="+853"/>
|
||||||
<source>-- Decryption Error (failed to communicate with DB) --</source>
|
<source>-- Decryption Error (failed to communicate with DB) --</source>
|
||||||
<comment>Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.</comment>
|
<comment>Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.</comment>
|
||||||
<translation>-- Entschlüsselungsfehler (Fehler bei Kommunikation mit Datenbank) --</translation>
|
<translation>-- Entschlüsselungsfehler (Fehler bei Kommunikation mit Datenbank) --</translation>
|
||||||
|
@ -746,7 +751,7 @@ Beispiel: https://mein.server:8787</translation>
|
||||||
<context>
|
<context>
|
||||||
<name>TimelineRow</name>
|
<name>TimelineRow</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/TimelineRow.qml" line="+87"/>
|
<location filename="../qml/TimelineRow.qml" line="+88"/>
|
||||||
<source>Reply</source>
|
<source>Reply</source>
|
||||||
<translation>Antworten</translation>
|
<translation>Antworten</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -799,7 +804,7 @@ Beispiel: https://mein.server:8787</translation>
|
||||||
<translation>Kein Raum geöffnet</translation>
|
<translation>Kein Raum geöffnet</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location line="+254"/>
|
<location line="+256"/>
|
||||||
<source>Close</source>
|
<source>Close</source>
|
||||||
<translation>Schließen</translation>
|
<translation>Schließen</translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -189,10 +189,15 @@
|
||||||
<context>
|
<context>
|
||||||
<name>EncryptionIndicator</name>
|
<name>EncryptionIndicator</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/EncryptionIndicator.qml" line="+12"/>
|
<location filename="../qml/EncryptionIndicator.qml" line="+36"/>
|
||||||
<source>Encrypted</source>
|
<source>Encrypted</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location line="+2"/>
|
||||||
|
<source>This message is not encrypted!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>InviteeItem</name>
|
<name>InviteeItem</name>
|
||||||
|
@ -306,7 +311,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>MessageDelegate</name>
|
<name>MessageDelegate</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/delegates/MessageDelegate.qml" line="+64"/>
|
<location filename="../qml/delegates/MessageDelegate.qml" line="+66"/>
|
||||||
<source>redacted</source>
|
<source>redacted</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -544,7 +549,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>TimelineModel</name>
|
<name>TimelineModel</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/timeline/TimelineModel.cpp" line="+844"/>
|
<location filename="../../src/timeline/TimelineModel.cpp" line="+853"/>
|
||||||
<source>-- Decryption Error (failed to communicate with DB) --</source>
|
<source>-- Decryption Error (failed to communicate with DB) --</source>
|
||||||
<comment>Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.</comment>
|
<comment>Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.</comment>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
@ -742,7 +747,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>TimelineRow</name>
|
<name>TimelineRow</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/TimelineRow.qml" line="+87"/>
|
<location filename="../qml/TimelineRow.qml" line="+88"/>
|
||||||
<source>Reply</source>
|
<source>Reply</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -795,7 +800,7 @@ Example: https://server.my:8787</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location line="+254"/>
|
<location line="+256"/>
|
||||||
<source>Close</source>
|
<source>Close</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -189,10 +189,15 @@
|
||||||
<context>
|
<context>
|
||||||
<name>EncryptionIndicator</name>
|
<name>EncryptionIndicator</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/EncryptionIndicator.qml" line="+12"/>
|
<location filename="../qml/EncryptionIndicator.qml" line="+36"/>
|
||||||
<source>Encrypted</source>
|
<source>Encrypted</source>
|
||||||
<translation>Encrypted</translation>
|
<translation>Encrypted</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location line="+2"/>
|
||||||
|
<source>This message is not encrypted!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>InviteeItem</name>
|
<name>InviteeItem</name>
|
||||||
|
@ -310,7 +315,7 @@ Example: https://server.my:8787</translation>
|
||||||
<context>
|
<context>
|
||||||
<name>MessageDelegate</name>
|
<name>MessageDelegate</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/delegates/MessageDelegate.qml" line="+64"/>
|
<location filename="../qml/delegates/MessageDelegate.qml" line="+66"/>
|
||||||
<source>redacted</source>
|
<source>redacted</source>
|
||||||
<translation>redacted</translation>
|
<translation>redacted</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -548,7 +553,7 @@ Example: https://server.my:8787</translation>
|
||||||
<context>
|
<context>
|
||||||
<name>TimelineModel</name>
|
<name>TimelineModel</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/timeline/TimelineModel.cpp" line="+844"/>
|
<location filename="../../src/timeline/TimelineModel.cpp" line="+853"/>
|
||||||
<source>-- Decryption Error (failed to communicate with DB) --</source>
|
<source>-- Decryption Error (failed to communicate with DB) --</source>
|
||||||
<comment>Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.</comment>
|
<comment>Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.</comment>
|
||||||
<translation>-- Decryption Error (failed to communicate with DB) --</translation>
|
<translation>-- Decryption Error (failed to communicate with DB) --</translation>
|
||||||
|
@ -746,7 +751,7 @@ Example: https://server.my:8787</translation>
|
||||||
<context>
|
<context>
|
||||||
<name>TimelineRow</name>
|
<name>TimelineRow</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/TimelineRow.qml" line="+87"/>
|
<location filename="../qml/TimelineRow.qml" line="+88"/>
|
||||||
<source>Reply</source>
|
<source>Reply</source>
|
||||||
<translation>Reply</translation>
|
<translation>Reply</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -799,7 +804,7 @@ Example: https://server.my:8787</translation>
|
||||||
<translation>No room open</translation>
|
<translation>No room open</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location line="+254"/>
|
<location line="+256"/>
|
||||||
<source>Close</source>
|
<source>Close</source>
|
||||||
<translation>Close</translation>
|
<translation>Close</translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -189,10 +189,15 @@
|
||||||
<context>
|
<context>
|
||||||
<name>EncryptionIndicator</name>
|
<name>EncryptionIndicator</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/EncryptionIndicator.qml" line="+12"/>
|
<location filename="../qml/EncryptionIndicator.qml" line="+36"/>
|
||||||
<source>Encrypted</source>
|
<source>Encrypted</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location line="+2"/>
|
||||||
|
<source>This message is not encrypted!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>InviteeItem</name>
|
<name>InviteeItem</name>
|
||||||
|
@ -306,7 +311,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>MessageDelegate</name>
|
<name>MessageDelegate</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/delegates/MessageDelegate.qml" line="+64"/>
|
<location filename="../qml/delegates/MessageDelegate.qml" line="+66"/>
|
||||||
<source>redacted</source>
|
<source>redacted</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -544,7 +549,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>TimelineModel</name>
|
<name>TimelineModel</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/timeline/TimelineModel.cpp" line="+844"/>
|
<location filename="../../src/timeline/TimelineModel.cpp" line="+853"/>
|
||||||
<source>-- Decryption Error (failed to communicate with DB) --</source>
|
<source>-- Decryption Error (failed to communicate with DB) --</source>
|
||||||
<comment>Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.</comment>
|
<comment>Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.</comment>
|
||||||
<translation type="unfinished">-- Virhe purkaessa salausta (tietokannan kanssa kommunikointi epäonnistui) --</translation>
|
<translation type="unfinished">-- Virhe purkaessa salausta (tietokannan kanssa kommunikointi epäonnistui) --</translation>
|
||||||
|
@ -742,7 +747,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>TimelineRow</name>
|
<name>TimelineRow</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/TimelineRow.qml" line="+87"/>
|
<location filename="../qml/TimelineRow.qml" line="+88"/>
|
||||||
<source>Reply</source>
|
<source>Reply</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -795,7 +800,7 @@ Example: https://server.my:8787</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location line="+254"/>
|
<location line="+256"/>
|
||||||
<source>Close</source>
|
<source>Close</source>
|
||||||
<translation type="unfinished">Sulje</translation>
|
<translation type="unfinished">Sulje</translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -189,10 +189,15 @@
|
||||||
<context>
|
<context>
|
||||||
<name>EncryptionIndicator</name>
|
<name>EncryptionIndicator</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/EncryptionIndicator.qml" line="+12"/>
|
<location filename="../qml/EncryptionIndicator.qml" line="+36"/>
|
||||||
<source>Encrypted</source>
|
<source>Encrypted</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location line="+2"/>
|
||||||
|
<source>This message is not encrypted!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>InviteeItem</name>
|
<name>InviteeItem</name>
|
||||||
|
@ -306,7 +311,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>MessageDelegate</name>
|
<name>MessageDelegate</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/delegates/MessageDelegate.qml" line="+64"/>
|
<location filename="../qml/delegates/MessageDelegate.qml" line="+66"/>
|
||||||
<source>redacted</source>
|
<source>redacted</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -544,7 +549,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>TimelineModel</name>
|
<name>TimelineModel</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/timeline/TimelineModel.cpp" line="+844"/>
|
<location filename="../../src/timeline/TimelineModel.cpp" line="+853"/>
|
||||||
<source>-- Decryption Error (failed to communicate with DB) --</source>
|
<source>-- Decryption Error (failed to communicate with DB) --</source>
|
||||||
<comment>Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.</comment>
|
<comment>Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.</comment>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
@ -742,7 +747,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>TimelineRow</name>
|
<name>TimelineRow</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/TimelineRow.qml" line="+87"/>
|
<location filename="../qml/TimelineRow.qml" line="+88"/>
|
||||||
<source>Reply</source>
|
<source>Reply</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -795,7 +800,7 @@ Example: https://server.my:8787</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location line="+254"/>
|
<location line="+256"/>
|
||||||
<source>Close</source>
|
<source>Close</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -189,10 +189,15 @@
|
||||||
<context>
|
<context>
|
||||||
<name>EncryptionIndicator</name>
|
<name>EncryptionIndicator</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/EncryptionIndicator.qml" line="+12"/>
|
<location filename="../qml/EncryptionIndicator.qml" line="+36"/>
|
||||||
<source>Encrypted</source>
|
<source>Encrypted</source>
|
||||||
<translation>暗号化されています</translation>
|
<translation>暗号化されています</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location line="+2"/>
|
||||||
|
<source>This message is not encrypted!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>InviteeItem</name>
|
<name>InviteeItem</name>
|
||||||
|
@ -306,7 +311,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>MessageDelegate</name>
|
<name>MessageDelegate</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/delegates/MessageDelegate.qml" line="+64"/>
|
<location filename="../qml/delegates/MessageDelegate.qml" line="+66"/>
|
||||||
<source>redacted</source>
|
<source>redacted</source>
|
||||||
<translation>編集済み</translation>
|
<translation>編集済み</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -544,7 +549,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>TimelineModel</name>
|
<name>TimelineModel</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/timeline/TimelineModel.cpp" line="+844"/>
|
<location filename="../../src/timeline/TimelineModel.cpp" line="+853"/>
|
||||||
<source>-- Decryption Error (failed to communicate with DB) --</source>
|
<source>-- Decryption Error (failed to communicate with DB) --</source>
|
||||||
<comment>Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.</comment>
|
<comment>Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.</comment>
|
||||||
<translation>-- 復号エラー (データベースと通信できませんでした) --</translation>
|
<translation>-- 復号エラー (データベースと通信できませんでした) --</translation>
|
||||||
|
@ -741,7 +746,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>TimelineRow</name>
|
<name>TimelineRow</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/TimelineRow.qml" line="+87"/>
|
<location filename="../qml/TimelineRow.qml" line="+88"/>
|
||||||
<source>Reply</source>
|
<source>Reply</source>
|
||||||
<translation>返信</translation>
|
<translation>返信</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -794,7 +799,7 @@ Example: https://server.my:8787</source>
|
||||||
<translation>部屋が開いていません</translation>
|
<translation>部屋が開いていません</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location line="+254"/>
|
<location line="+256"/>
|
||||||
<source>Close</source>
|
<source>Close</source>
|
||||||
<translation>閉じる</translation>
|
<translation>閉じる</translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -189,10 +189,15 @@
|
||||||
<context>
|
<context>
|
||||||
<name>EncryptionIndicator</name>
|
<name>EncryptionIndicator</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/EncryptionIndicator.qml" line="+12"/>
|
<location filename="../qml/EncryptionIndicator.qml" line="+36"/>
|
||||||
<source>Encrypted</source>
|
<source>Encrypted</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location line="+2"/>
|
||||||
|
<source>This message is not encrypted!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>InviteeItem</name>
|
<name>InviteeItem</name>
|
||||||
|
@ -306,7 +311,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>MessageDelegate</name>
|
<name>MessageDelegate</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/delegates/MessageDelegate.qml" line="+64"/>
|
<location filename="../qml/delegates/MessageDelegate.qml" line="+66"/>
|
||||||
<source>redacted</source>
|
<source>redacted</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -544,7 +549,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>TimelineModel</name>
|
<name>TimelineModel</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/timeline/TimelineModel.cpp" line="+844"/>
|
<location filename="../../src/timeline/TimelineModel.cpp" line="+853"/>
|
||||||
<source>-- Decryption Error (failed to communicate with DB) --</source>
|
<source>-- Decryption Error (failed to communicate with DB) --</source>
|
||||||
<comment>Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.</comment>
|
<comment>Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.</comment>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
@ -742,7 +747,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>TimelineRow</name>
|
<name>TimelineRow</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/TimelineRow.qml" line="+87"/>
|
<location filename="../qml/TimelineRow.qml" line="+88"/>
|
||||||
<source>Reply</source>
|
<source>Reply</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -795,7 +800,7 @@ Example: https://server.my:8787</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location line="+254"/>
|
<location line="+256"/>
|
||||||
<source>Close</source>
|
<source>Close</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -189,10 +189,15 @@
|
||||||
<context>
|
<context>
|
||||||
<name>EncryptionIndicator</name>
|
<name>EncryptionIndicator</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/EncryptionIndicator.qml" line="+12"/>
|
<location filename="../qml/EncryptionIndicator.qml" line="+36"/>
|
||||||
<source>Encrypted</source>
|
<source>Encrypted</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location line="+2"/>
|
||||||
|
<source>This message is not encrypted!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>InviteeItem</name>
|
<name>InviteeItem</name>
|
||||||
|
@ -306,7 +311,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>MessageDelegate</name>
|
<name>MessageDelegate</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/delegates/MessageDelegate.qml" line="+64"/>
|
<location filename="../qml/delegates/MessageDelegate.qml" line="+66"/>
|
||||||
<source>redacted</source>
|
<source>redacted</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -544,7 +549,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>TimelineModel</name>
|
<name>TimelineModel</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/timeline/TimelineModel.cpp" line="+844"/>
|
<location filename="../../src/timeline/TimelineModel.cpp" line="+853"/>
|
||||||
<source>-- Decryption Error (failed to communicate with DB) --</source>
|
<source>-- Decryption Error (failed to communicate with DB) --</source>
|
||||||
<comment>Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.</comment>
|
<comment>Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.</comment>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
@ -743,7 +748,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>TimelineRow</name>
|
<name>TimelineRow</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/TimelineRow.qml" line="+87"/>
|
<location filename="../qml/TimelineRow.qml" line="+88"/>
|
||||||
<source>Reply</source>
|
<source>Reply</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -796,7 +801,7 @@ Example: https://server.my:8787</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location line="+254"/>
|
<location line="+256"/>
|
||||||
<source>Close</source>
|
<source>Close</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -189,10 +189,15 @@
|
||||||
<context>
|
<context>
|
||||||
<name>EncryptionIndicator</name>
|
<name>EncryptionIndicator</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/EncryptionIndicator.qml" line="+12"/>
|
<location filename="../qml/EncryptionIndicator.qml" line="+36"/>
|
||||||
<source>Encrypted</source>
|
<source>Encrypted</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location line="+2"/>
|
||||||
|
<source>This message is not encrypted!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>InviteeItem</name>
|
<name>InviteeItem</name>
|
||||||
|
@ -306,7 +311,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>MessageDelegate</name>
|
<name>MessageDelegate</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/delegates/MessageDelegate.qml" line="+64"/>
|
<location filename="../qml/delegates/MessageDelegate.qml" line="+66"/>
|
||||||
<source>redacted</source>
|
<source>redacted</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -544,7 +549,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>TimelineModel</name>
|
<name>TimelineModel</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/timeline/TimelineModel.cpp" line="+844"/>
|
<location filename="../../src/timeline/TimelineModel.cpp" line="+853"/>
|
||||||
<source>-- Decryption Error (failed to communicate with DB) --</source>
|
<source>-- Decryption Error (failed to communicate with DB) --</source>
|
||||||
<comment>Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.</comment>
|
<comment>Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.</comment>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
@ -743,7 +748,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>TimelineRow</name>
|
<name>TimelineRow</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/TimelineRow.qml" line="+87"/>
|
<location filename="../qml/TimelineRow.qml" line="+88"/>
|
||||||
<source>Reply</source>
|
<source>Reply</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -796,7 +801,7 @@ Example: https://server.my:8787</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location line="+254"/>
|
<location line="+256"/>
|
||||||
<source>Close</source>
|
<source>Close</source>
|
||||||
<translation type="unfinished">Закрыть</translation>
|
<translation type="unfinished">Закрыть</translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -189,10 +189,15 @@
|
||||||
<context>
|
<context>
|
||||||
<name>EncryptionIndicator</name>
|
<name>EncryptionIndicator</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/EncryptionIndicator.qml" line="+12"/>
|
<location filename="../qml/EncryptionIndicator.qml" line="+36"/>
|
||||||
<source>Encrypted</source>
|
<source>Encrypted</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location line="+2"/>
|
||||||
|
<source>This message is not encrypted!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>InviteeItem</name>
|
<name>InviteeItem</name>
|
||||||
|
@ -306,7 +311,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>MessageDelegate</name>
|
<name>MessageDelegate</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/delegates/MessageDelegate.qml" line="+64"/>
|
<location filename="../qml/delegates/MessageDelegate.qml" line="+66"/>
|
||||||
<source>redacted</source>
|
<source>redacted</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -544,7 +549,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>TimelineModel</name>
|
<name>TimelineModel</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/timeline/TimelineModel.cpp" line="+844"/>
|
<location filename="../../src/timeline/TimelineModel.cpp" line="+853"/>
|
||||||
<source>-- Decryption Error (failed to communicate with DB) --</source>
|
<source>-- Decryption Error (failed to communicate with DB) --</source>
|
||||||
<comment>Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.</comment>
|
<comment>Placeholder, when the message can't be decrypted, because the DB access failed when trying to lookup the session.</comment>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
@ -741,7 +746,7 @@ Example: https://server.my:8787</source>
|
||||||
<context>
|
<context>
|
||||||
<name>TimelineRow</name>
|
<name>TimelineRow</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/TimelineRow.qml" line="+87"/>
|
<location filename="../qml/TimelineRow.qml" line="+88"/>
|
||||||
<source>Reply</source>
|
<source>Reply</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -794,7 +799,7 @@ Example: https://server.my:8787</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location line="+254"/>
|
<location line="+256"/>
|
||||||
<source>Close</source>
|
<source>Close</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -3,13 +3,14 @@ import QtQuick.Controls 2.1
|
||||||
import im.nheko 1.0
|
import im.nheko 1.0
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
property bool encrypted: false
|
||||||
id: indicator
|
id: indicator
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
width: 16
|
width: 16
|
||||||
height: 16
|
height: 16
|
||||||
|
|
||||||
ToolTip.visible: ma.containsMouse && indicator.visible
|
ToolTip.visible: ma.containsMouse && indicator.visible
|
||||||
ToolTip.text: qsTr("Encrypted")
|
ToolTip.text: getEncryptionTooltip()
|
||||||
|
|
||||||
MouseArea{
|
MouseArea{
|
||||||
id: ma
|
id: ma
|
||||||
|
@ -20,7 +21,21 @@ Rectangle {
|
||||||
Image {
|
Image {
|
||||||
id: stateImg
|
id: stateImg
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
source: "image://colorimage/:/icons/icons/ui/lock.png?"+colors.buttonText
|
source: getEncryptionImage()
|
||||||
|
}
|
||||||
|
|
||||||
|
function getEncryptionImage() {
|
||||||
|
if (encrypted)
|
||||||
|
return "image://colorimage/:/icons/icons/ui/lock.png?"+colors.buttonText
|
||||||
|
else
|
||||||
|
return "image://colorimage/:/icons/icons/ui/unlock.png?#dd3d3d"
|
||||||
|
}
|
||||||
|
|
||||||
|
function getEncryptionTooltip() {
|
||||||
|
if (encrypted)
|
||||||
|
return qsTr("Encrypted")
|
||||||
|
else
|
||||||
|
return qsTr("This message is not encrypted!")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,8 @@ MouseArea {
|
||||||
}
|
}
|
||||||
|
|
||||||
EncryptionIndicator {
|
EncryptionIndicator {
|
||||||
visible: model.isEncrypted
|
visible: model.isRoomEncrypted
|
||||||
|
encrypted: model.isEncrypted
|
||||||
Layout.alignment: Qt.AlignRight | Qt.AlignTop
|
Layout.alignment: Qt.AlignRight | Qt.AlignTop
|
||||||
Layout.preferredHeight: 16
|
Layout.preferredHeight: 16
|
||||||
width: 16
|
width: 16
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
<file>icons/ui/double-tick-indicator@2x.png</file>
|
<file>icons/ui/double-tick-indicator@2x.png</file>
|
||||||
<file>icons/ui/lock.png</file>
|
<file>icons/ui/lock.png</file>
|
||||||
<file>icons/ui/lock@2x.png</file>
|
<file>icons/ui/lock@2x.png</file>
|
||||||
|
<file>icons/ui/unlock.png</file>
|
||||||
|
<file>icons/ui/unlock@2x.png</file>
|
||||||
<file>icons/ui/clock.png</file>
|
<file>icons/ui/clock.png</file>
|
||||||
<file>icons/ui/clock@2x.png</file>
|
<file>icons/ui/clock@2x.png</file>
|
||||||
<file>icons/ui/checkmark.png</file>
|
<file>icons/ui/checkmark.png</file>
|
||||||
|
|
|
@ -224,6 +224,7 @@ TimelineModel::roleNames() const
|
||||||
{Id, "id"},
|
{Id, "id"},
|
||||||
{State, "state"},
|
{State, "state"},
|
||||||
{IsEncrypted, "isEncrypted"},
|
{IsEncrypted, "isEncrypted"},
|
||||||
|
{IsRoomEncrypted, "isRoomEncrypted"},
|
||||||
{ReplyTo, "replyTo"},
|
{ReplyTo, "replyTo"},
|
||||||
{Reactions, "reactions"},
|
{Reactions, "reactions"},
|
||||||
{RoomId, "roomId"},
|
{RoomId, "roomId"},
|
||||||
|
@ -350,6 +351,9 @@ TimelineModel::data(const QString &id, int role) const
|
||||||
return std::holds_alternative<
|
return std::holds_alternative<
|
||||||
mtx::events::EncryptedEvent<mtx::events::msg::Encrypted>>(events[id]);
|
mtx::events::EncryptedEvent<mtx::events::msg::Encrypted>>(events[id]);
|
||||||
}
|
}
|
||||||
|
case IsRoomEncrypted: {
|
||||||
|
return cache::isRoomEncrypted(room_id_.toStdString());
|
||||||
|
}
|
||||||
case ReplyTo:
|
case ReplyTo:
|
||||||
return QVariant(QString::fromStdString(in_reply_to_event(event)));
|
return QVariant(QString::fromStdString(in_reply_to_event(event)));
|
||||||
case Reactions:
|
case Reactions:
|
||||||
|
@ -387,6 +391,7 @@ TimelineModel::data(const QString &id, int role) const
|
||||||
m.insert(names[Id], data(id, static_cast<int>(Id)));
|
m.insert(names[Id], data(id, static_cast<int>(Id)));
|
||||||
m.insert(names[State], data(id, static_cast<int>(State)));
|
m.insert(names[State], data(id, static_cast<int>(State)));
|
||||||
m.insert(names[IsEncrypted], data(id, static_cast<int>(IsEncrypted)));
|
m.insert(names[IsEncrypted], data(id, static_cast<int>(IsEncrypted)));
|
||||||
|
m.insert(names[IsRoomEncrypted], data(id, static_cast<int>(IsRoomEncrypted)));
|
||||||
m.insert(names[ReplyTo], data(id, static_cast<int>(ReplyTo)));
|
m.insert(names[ReplyTo], data(id, static_cast<int>(ReplyTo)));
|
||||||
m.insert(names[RoomName], data(id, static_cast<int>(RoomName)));
|
m.insert(names[RoomName], data(id, static_cast<int>(RoomName)));
|
||||||
m.insert(names[RoomTopic], data(id, static_cast<int>(RoomTopic)));
|
m.insert(names[RoomTopic], data(id, static_cast<int>(RoomTopic)));
|
||||||
|
|
|
@ -157,6 +157,7 @@ public:
|
||||||
Id,
|
Id,
|
||||||
State,
|
State,
|
||||||
IsEncrypted,
|
IsEncrypted,
|
||||||
|
IsRoomEncrypted,
|
||||||
ReplyTo,
|
ReplyTo,
|
||||||
Reactions,
|
Reactions,
|
||||||
RoomId,
|
RoomId,
|
||||||
|
|
Loading…
Reference in a new issue