aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorfrosty <frostinator33@airmail.cc>2026-10-26 10:21:57 -0400
committerfrosty <frostinator33@airmail.cc>2026-10-26 10:21:57 -0400
commit74aecd8b0986d07b50b7ce310d64e645b8b54e38 (patch)
tree560e6434f183eb54cd779936f3a4c9575146a066 /main
parent3d7e90d401da02d430a87db0ec7e1db3a6f1a68f (diff)
parent4436001bb361ad4f9e4e05819214ecf0ea77c063 (diff)
Merge 'upstream/master'
Diffstat (limited to 'main')
-rw-r--r--main/data/contact_details_dialog.ui251
-rw-r--r--main/data/encryption_preferences_entry.ui69
-rw-r--r--main/data/gresource.xml3
-rw-r--r--main/data/manage_key_dialog.ui153
-rw-r--r--main/data/style.css5
-rw-r--r--main/meson.build162
-rw-r--r--main/po/ar.po376
-rw-r--r--main/po/ca.po352
-rw-r--r--main/po/cs.po328
-rw-r--r--main/po/da.po266
-rw-r--r--main/po/de.po418
-rw-r--r--main/po/dino.pot257
-rw-r--r--main/po/el.po333
-rw-r--r--main/po/en.po256
-rw-r--r--main/po/eo.po331
-rw-r--r--main/po/es.po418
-rw-r--r--main/po/et.po313
-rw-r--r--main/po/eu.po413
-rw-r--r--main/po/fa.po325
-rw-r--r--main/po/fi.po327
-rw-r--r--main/po/fr.po407
-rw-r--r--main/po/fur.po274
-rw-r--r--main/po/gl.po410
-rw-r--r--main/po/hi.po257
-rw-r--r--main/po/hu.po342
-rw-r--r--main/po/hy.po4
-rw-r--r--main/po/ia.po35
-rw-r--r--main/po/id.po331
-rw-r--r--main/po/ie.po373
-rw-r--r--main/po/is.po44
-rw-r--r--main/po/isv.po260
-rw-r--r--main/po/it.po425
-rw-r--r--main/po/ja.po376
-rw-r--r--main/po/ka.po257
-rw-r--r--main/po/kab.po272
-rw-r--r--main/po/ko.po45
-rw-r--r--main/po/lb.po416
-rw-r--r--main/po/lt.po383
-rw-r--r--main/po/lv.po35
-rw-r--r--main/po/nb.po418
-rw-r--r--main/po/nl.po422
-rw-r--r--main/po/oc.po336
-rw-r--r--main/po/pl.po397
-rw-r--r--main/po/pt.po337
-rw-r--r--main/po/pt_BR.po392
-rw-r--r--main/po/ro.po417
-rw-r--r--main/po/ru.po397
-rw-r--r--main/po/si.po4
-rw-r--r--main/po/sq.po331
-rw-r--r--main/po/sv.po384
-rw-r--r--main/po/ta.po308
-rw-r--r--main/po/th.po266
-rw-r--r--main/po/tr.po386
-rw-r--r--main/po/uk.po333
-rw-r--r--main/po/vi.po327
-rw-r--r--main/po/zh_CN.po366
-rw-r--r--main/po/zh_TW.po352
-rw-r--r--main/src/main.vala13
-rw-r--r--main/src/plugins/omemo/dtls_srtp_verification_draft.vala268
-rw-r--r--main/src/plugins/omemo/file_transfer/file_decryptor.vala90
-rw-r--r--main/src/plugins/omemo/file_transfer/file_encryptor.vala76
-rw-r--r--main/src/plugins/omemo/jingle/jet_omemo.vala115
-rw-r--r--main/src/plugins/omemo/jingle/jingle_helper.vala53
-rw-r--r--main/src/plugins/omemo/logic/database.vala284
-rw-r--r--main/src/plugins/omemo/logic/decrypt.vala212
-rw-r--r--main/src/plugins/omemo/logic/encrypt.vala132
-rw-r--r--main/src/plugins/omemo/logic/manager.vala431
-rw-r--r--main/src/plugins/omemo/logic/pre_key_store.vala48
-rw-r--r--main/src/plugins/omemo/logic/session_store.vala69
-rw-r--r--main/src/plugins/omemo/logic/signed_pre_key_store.vala48
-rw-r--r--main/src/plugins/omemo/logic/trust_manager.vala142
-rw-r--r--main/src/plugins/omemo/plugin.vala87
-rw-r--r--main/src/plugins/omemo/protocol/bundle.vala92
-rw-r--r--main/src/plugins/omemo/protocol/message_flag.vala23
-rw-r--r--main/src/plugins/omemo/protocol/stream_module.vala337
-rw-r--r--main/src/plugins/omemo/trust_level.vala15
-rw-r--r--main/src/plugins/omemo/ui/bad_messages_populator.vala198
-rw-r--r--main/src/plugins/omemo/ui/call_encryption_entry.vala58
-rw-r--r--main/src/plugins/omemo/ui/contact_details_provider.vala28
-rw-r--r--main/src/plugins/omemo/ui/device_notification_populator.vala90
-rw-r--r--main/src/plugins/omemo/ui/encryption_list_entry.vala78
-rw-r--r--main/src/plugins/omemo/ui/encryption_preferences_entry.vala324
-rw-r--r--main/src/plugins/omemo/ui/manage_key_dialog.vala181
-rw-r--r--main/src/plugins/omemo/ui/own_notifications.vala35
-rw-r--r--main/src/plugins/omemo/ui/util.vala40
-rw-r--r--main/src/plugins/openpgp/contact_details_provider.vala51
-rw-r--r--main/src/plugins/openpgp/database.vala137
-rw-r--r--main/src/plugins/openpgp/encryption_list_entry.vala72
-rw-r--r--main/src/plugins/openpgp/encryption_preferences_entry.vala82
-rw-r--r--main/src/plugins/openpgp/file_transfer/file_decryptor.vala50
-rw-r--r--main/src/plugins/openpgp/file_transfer/file_encryptor.vala45
-rw-r--r--main/src/plugins/openpgp/gpgme_fix.c12
-rw-r--r--main/src/plugins/openpgp/gpgme_fix.h12
-rw-r--r--main/src/plugins/openpgp/gpgme_helper.vala185
-rw-r--r--main/src/plugins/openpgp/manager.vala123
-rw-r--r--main/src/plugins/openpgp/plugin.vala47
-rw-r--r--main/src/plugins/openpgp/stream_module.vala159
-rw-r--r--main/src/plugins/openpgp/util.vala29
-rw-r--r--main/src/plugins/rtp/codec_util.vala418
-rw-r--r--main/src/plugins/rtp/device.vala592
-rw-r--r--main/src/plugins/rtp/gst_fixes.c10
-rw-r--r--main/src/plugins/rtp/module.vala235
-rw-r--r--main/src/plugins/rtp/participant.vala39
-rw-r--r--main/src/plugins/rtp/plugin.vala504
-rw-r--r--main/src/plugins/rtp/stream.vala851
-rw-r--r--main/src/plugins/rtp/video_widget.vala293
-rw-r--r--main/src/plugins/rtp/voice_processor.vala209
-rw-r--r--main/src/plugins/rtp/voice_processor_native.cpp256
-rw-r--r--main/src/ui/application.vala11
-rw-r--r--main/src/ui/chat_input/chat_input_controller.vala8
-rw-r--r--main/src/ui/conversation_content_view/content_populator.vala2
-rw-r--r--main/src/ui/conversation_content_view/file_default_widget.vala40
-rw-r--r--main/src/ui/conversation_content_view/file_group_widget.vala120
-rw-r--r--main/src/ui/conversation_content_view/file_image_widget.vala105
-rw-r--r--main/src/ui/conversation_content_view/file_transmission_progress.vala19
-rw-r--r--main/src/ui/conversation_content_view/file_widget.vala71
-rw-r--r--main/src/ui/conversation_selector/conversation_selector.vala10
-rw-r--r--main/src/ui/conversation_selector/conversation_selector_row.vala19
-rw-r--r--main/src/ui/conversation_view.vala21
-rw-r--r--main/src/ui/conversation_view_controller.vala4
-rw-r--r--main/src/ui/main_window.vala29
-rw-r--r--main/src/ui/util/data_forms.vala2
-rw-r--r--main/src/ui/util/helper.vala11
-rw-r--r--main/src/ui/widgets/avatar_picture.vala111
-rw-r--r--main/src/ui/widgets/fixed_ratio_picture.vala2
-rw-r--r--main/src/windows/conversation_details.vala4
-rw-r--r--main/vapi/gpg-error.vapi445
-rw-r--r--main/vapi/gpgme.vapi673
-rw-r--r--main/vapi/gstreamer-base-1.0.vapi1011
-rw-r--r--main/vapi/gstreamer-rtp-1.0.vapi724
-rw-r--r--main/vapi/gstreamer-video-1.0.vapi2339
-rw-r--r--main/vapi/libgcrypt.vapi0
-rw-r--r--main/vapi/libomemo-c.vapi692
-rw-r--r--main/vapi/libqrencode.vapi81
-rw-r--r--main/vapi/webrtc-audio-processing.vapi0
135 files changed, 30736 insertions, 271 deletions
diff --git a/main/data/contact_details_dialog.ui b/main/data/contact_details_dialog.ui
new file mode 100644
index 00000000..6c357175
--- /dev/null
+++ b/main/data/contact_details_dialog.ui
@@ -0,0 +1,251 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <requires lib="gtk" version="4.0"/>
+ <template class="DinoPluginsOmemoContactDetailsDialog">
+ <property name="modal">True</property>
+ <property name="resizable">False</property>
+ <child internal-child="content_area">
+ <object class="GtkBox">
+ <property name="margin-start">12</property>
+ <property name="margin-end">12</property>
+ <property name="margin-top">12</property>
+ <property name="margin-bottom">12</property>
+ <property name="spacing">12</property>
+ <child>
+ <object class="GtkFrame">
+ <property name="child">
+ <object class="GtkListBox">
+ <property name="selection-mode">none</property>
+ <child>
+ <object class="GtkListBoxRow">
+ <property name="activatable">0</property>
+ <property name="child">
+ <object class="GtkBox">
+ <property name="margin-start">20</property>
+ <property name="margin-end">20</property>
+ <property name="margin-top">14</property>
+ <property name="margin-bottom">14</property>
+ <property name="spacing">40</property>
+ <child>
+ <object class="GtkBox">
+ <property name="orientation">vertical</property>
+ <property name="hexpand">1</property>
+ <child>
+ <object class="GtkLabel" id="automatically_accept_new_label">
+ <property name="halign">start</property>
+ <attributes>
+ <attribute name="scale" value="1.1"></attribute>
+ </attributes>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel" id="automatically_accept_new_descr">
+ <property name="max_width_chars">1</property>
+ <property name="hexpand">1</property>
+ <property name="vexpand">1</property>
+ <property name="xalign">0</property>
+ <property name="wrap">1</property>
+ <attributes>
+ <attribute name="scale" value="0.8"></attribute>
+ </attributes>
+ <style>
+ <class name="dim-label"/>
+ </style>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkSwitch" id="auto_accept_switch">
+ <property name="halign">end</property>
+ <property name="valign">center</property>
+ </object>
+ </child>
+ </object>
+ </property>
+ </object>
+ </child>
+ </object>
+ </property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkBox" id="own_fingerprint_container">
+ <property name="visible">0</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">2</property>
+ <child>
+ <object class="GtkLabel" id="own_key_label">
+ <property name="halign">start</property>
+ <attributes>
+ <attribute name="weight" value="PANGO_WEIGHT_BOLD"></attribute>
+ </attributes>
+ </object>
+ </child>
+ <child>
+ <object class="GtkFrame">
+ <property name="child">
+ <object class="GtkListBox">
+ <property name="selection-mode">none</property>
+ <child>
+ <object class="GtkListBoxRow">
+ <property name="activatable">0</property>
+ <property name="hexpand">1</property>
+ <property name="child">
+ <object class="GtkBox">
+ <property name="margin-start">20</property>
+ <property name="margin-end">20</property>
+ <property name="margin-top">14</property>
+ <property name="spacing">40</property>
+ <property name="margin-bottom">14</property>
+ <property name="hexpand">1</property>
+ <child>
+ <object class="GtkLabel" id="own_fingerprint_label">
+ <property name="halign">start</property>
+ <property name="justify">right</property>
+ <property name="hexpand">1</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkBox">
+ <property name="hexpand">1</property>
+ <property name="spacing">5</property>
+ <child>
+ <object class="GtkMenuButton" id="show_qrcode_button">
+ <property name="icon-name">dino-qr-code-symbolic</property>
+ <property name="halign">start</property>
+ <property name="hexpand">1</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkButton" id="copy_button">
+ <property name="halign">end</property>
+ <property name="hexpand">1</property>
+ <child>
+ <object class="GtkImage">
+ <property name="icon-size">normal</property>
+ <property name="icon-name">dino-edit-copy-symbolic</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </property>
+ </object>
+ </child>
+ </object>
+ </property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkBox" id="new_keys_container">
+ <property name="visible">0</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">2</property>
+ <child>
+ <object class="GtkLabel" id="new_keys_label">
+ <property name="halign">start</property>
+ <attributes>
+ <attribute name="weight" value="PANGO_WEIGHT_BOLD"></attribute>
+ </attributes>
+ </object>
+ </child>
+ <child>
+ <object class="GtkFrame">
+ <property name="child">
+ <object class="GtkScrolledWindow">
+ <property name="hscrollbar_policy">never</property>
+ <property name="propagate_natural_height">1</property>
+ <property name="child">
+ <object class="GtkListBox" id="new_keys_listbox">
+ <property name="selection-mode">none</property>
+ </object>
+ </property>
+ </object>
+ </property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkBox" id="keys_container">
+ <property name="visible">0</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">2</property>
+ <child>
+ <object class="GtkLabel" id="associated_keys_label">
+ <property name="halign">start</property>
+ <attributes>
+ <attribute name="weight" value="PANGO_WEIGHT_BOLD"></attribute>
+ </attributes>
+ </object>
+ </child>
+ <child>
+ <object class="GtkFrame">
+ <property name="child">
+ <object class="GtkScrolledWindow">
+ <property name="hscrollbar_policy">never</property>
+ <property name="propagate_natural_height">1</property>
+ <property name="child">
+ <object class="GtkListBox" id="keys_listbox">
+ <property name="selection-mode">none</property>
+ </object>
+ </property>
+ </object>
+ </property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkExpander" id="inactive_keys_expander">
+ <property name="visible">0</property>
+ <child type="label">
+ <object class="GtkLabel" id="inactive_expander_label">
+ <attributes>
+ <attribute name="weight" value="PANGO_WEIGHT_BOLD"></attribute>
+ </attributes>
+ </object>
+ </child>
+ <child>
+ <object class="GtkFrame">
+ <property name="margin-top">2</property>
+ <property name="child">
+ <object class="GtkScrolledWindow">
+ <property name="hscrollbar_policy">never</property>
+ <property name="propagate_natural_height">1</property>
+ <property name="child">
+ <object class="GtkListBox" id="inactive_keys_listbox">
+ <property name="selection-mode">none</property>
+ </object>
+ </property>
+ </object>
+ </property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </template>
+ <object class="GtkPopover" id="qrcode_popover">
+ <property name="position">left</property>
+ <property name="child">
+ <object class="GtkBox">
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
+ <child>
+ <object class="GtkPicture" id="qrcode_picture">
+ <property name="can-shrink">False</property>
+ </object>
+ </child>
+ </object>
+ </property>
+ </object>
+</interface>
diff --git a/main/data/encryption_preferences_entry.ui b/main/data/encryption_preferences_entry.ui
new file mode 100644
index 00000000..1aa1a541
--- /dev/null
+++ b/main/data/encryption_preferences_entry.ui
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <requires lib="gtk" version="4.0"/>
+ <template class="DinoPluginsOmemoOmemoPreferencesWidget">
+ <child>
+ <object class="AdwPreferencesGroup" id="keys_preferences_group">
+ <property name="title">OMEMO</property>
+ <property name="description" translatable="yes">Each device has its own OMEMO key. Messages can only be decrypted by a device if they are encrypted to its key. Messages are only encrypted to accepted devices.</property>
+ <property name="margin-bottom">12</property>
+ </object>
+ </child>
+ <child>
+ <object class="AdwPreferencesGroup">
+ <child>
+ <object class="AdwSwitchRow" id="encrypt_by_default_row" />
+ </child>
+ <child>
+ <object class="AdwSwitchRow" id="automatically_accept_new_row" />
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkBox" id="new_keys_container">
+ <property name="visible">0</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">2</property>
+ <child>
+ <object class="GtkLabel" id="new_keys_label">
+ <property name="halign">start</property>
+ <attributes>
+ <attribute name="weight" value="PANGO_WEIGHT_BOLD"></attribute>
+ </attributes>
+ </object>
+ </child>
+ <child>
+ <object class="GtkFrame">
+ <property name="child">
+ <object class="GtkScrolledWindow">
+ <property name="hscrollbar_policy">never</property>
+ <property name="propagate_natural_height">1</property>
+ <property name="child">
+ <object class="GtkListBox" id="new_keys_listbox">
+ <property name="selection-mode">none</property>
+ </object>
+ </property>
+ </object>
+ </property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </template>
+ <object class="GtkPopover" id="qrcode_popover">
+ <property name="position">left</property>
+ <property name="child">
+ <object class="GtkBox">
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
+ <child>
+ <object class="GtkPicture" id="qrcode_picture">
+ <property name="can-shrink">False</property>
+ </object>
+ </child>
+ </object>
+ </property>
+ </object>
+</interface>
diff --git a/main/data/gresource.xml b/main/data/gresource.xml
index 8f23c48a..29d9c7d3 100644
--- a/main/data/gresource.xml
+++ b/main/data/gresource.xml
@@ -9,6 +9,7 @@
<file>add_conversation/select_jid_fragment.ui</file>
<file>call_widget.ui</file>
<file>chat_input.ui</file>
+ <file>contact_details_dialog.ui</file>
<file>conversation_content_view/item_metadata_header.ui</file>
<file>conversation_content_view/view.ui</file>
<file>conversation_details.css</file>
@@ -17,6 +18,7 @@
<file>conversation_row.ui</file>
<file>conversation_view.ui</file>
<file>dino-conversation-list-placeholder-arrow.svg</file>
+ <file>encryption_preferences_entry.ui</file>
<file>file_default_widget.ui</file>
<file>file_input_widget.ui</file>
<file>file_send_overlay.ui</file>
@@ -99,6 +101,7 @@
<file>join_room_dialog2.ui</file>
<file>main_window.ui</file>
<file>main_window_placeholder.ui</file>
+ <file>manage_key_dialog.ui</file>
<file>menu_app.ui</file>
<file>menu_conversation.ui</file>
<file>menu_encryption.ui</file>
diff --git a/main/data/manage_key_dialog.ui b/main/data/manage_key_dialog.ui
new file mode 100644
index 00000000..37f158da
--- /dev/null
+++ b/main/data/manage_key_dialog.ui
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <requires lib="gtk" version="4.0"/>
+ <template class="DinoPluginsOmemoManageKeyDialog">
+ <property name="modal">True</property>
+ <property name="resizable">False</property>
+ <child type="titlebar">
+ <object class="GtkHeaderBar" id="headerbar">
+ <property name="show_title_buttons">0</property>
+ <child>
+ <object class="GtkButton" id="cancel_button"/>
+ </child>
+ <child type="end">
+ <object class="GtkButton" id="ok_button">
+ <property name="sensitive">0</property>
+ <style>
+ <class name="suggested-action"/>
+ </style>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child internal-child="content_area">
+ <object class="GtkBox">
+ <child>
+ <object class="GtkStack" id="manage_stack">
+ <property name="transition-type">slide-left-right</property>
+ <child>
+ <object class="GtkStackPage">
+ <property name="name">main</property>
+ <property name="child">
+ <object class="GtkBox" id="main_screen">
+ <property name="margin-start">12</property>
+ <property name="margin-end">12</property>
+ <property name="margin-top">12</property>
+ <property name="margin-bottom">12</property>
+ <property name="spacing">12</property>
+ <property name="orientation">vertical</property>
+ <property name="valign">center</property>
+ <child>
+ <object class="GtkLabel" id="main_desc_label">
+ <property name="wrap">1</property>
+ <property name="xalign">0</property>
+ <property name="max-width-chars">1</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkFrame">
+ <property name="child">
+ <object class="GtkListBox" id="main_action_list">
+ <property name="selection-mode">none</property>
+ </object>
+ </property>
+ </object>
+ </child>
+ </object>
+ </property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkStackPage">
+ <property name="name">verify</property>
+ <property name="child">
+ <object class="GtkBox" id="verify_screen">
+ <property name="margin-start">12</property>
+ <property name="margin-end">12</property>
+ <property name="margin-top">12</property>
+ <property name="margin-bottom">12</property>
+ <property name="spacing">12</property>
+ <property name="orientation">vertical</property>
+ <property name="valign">center</property>
+ <child>
+ <object class="GtkLabel" id="compare_fingerprint_label">
+ <property name="wrap">1</property>
+ <property name="max-width-chars">45</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkBox">
+ <property name="orientation">vertical</property>
+ <property name="margin-start">12</property>
+ <property name="margin-end">12</property>
+ <property name="spacing">12</property>
+ <property name="hexpand">0</property>
+ <property name="halign">center</property>
+ <child>
+ <object class="GtkLabel" id="verify_label">
+ <property name="margin-top">12</property>
+ <property name="margin-bottom">12</property>
+ <property name="justify">right</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkButton" id="verify_no_button">
+ <property name="hexpand">1</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkButton" id="verify_yes_button">
+ <property name="hexpand">1</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkStackPage">
+ <property name="name">confirm</property>
+ <property name="child">
+ <object class="GtkBox" id="confirm_screen">
+ <property name="margin-start">12</property>
+ <property name="margin-end">12</property>
+ <property name="margin-top">12</property>
+ <property name="margin-bottom">12</property>
+ <property name="spacing">12</property>
+ <property name="orientation">vertical</property>
+ <property name="valign">center</property>
+ <child>
+ <object class="GtkImage" id="confirm_image"/>
+ </child>
+ <child>
+ <object class="GtkLabel" id="confirm_title_label">
+ <attributes>
+ <attribute name="scale" value="1.1"></attribute>
+ </attributes>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel" id="confirm_desc_label">
+ <property name="justify">center</property>
+ <property name="wrap">1</property>
+ <property name="max-width-chars">40</property>
+ <attributes>
+ <attribute name="scale" value="0.8"></attribute>
+ </attributes>
+ <style>
+ <class name="dim-label"/>
+ </style>
+ </object>
+ </child>
+ </object>
+ </property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </template>
+</interface>
diff --git a/main/data/style.css b/main/data/style.css
index f3bd082c..7038f901 100644
--- a/main/data/style.css
+++ b/main/data/style.css
@@ -315,6 +315,11 @@ window.dino-main .file-image-widget .file-box-outer button:hover {
border-radius: 100%;
}
+/* Image file group */
+.dino-main .image-group {
+ border-radius: 8px;
+}
+
/* Call widget */
window.dino-main .call-box-outer.incoming {
diff --git a/main/meson.build b/main/meson.build
index 446bb0d2..b733e0c8 100644
--- a/main/meson.build
+++ b/main/meson.build
@@ -8,7 +8,6 @@ dependencies = [
dep_icu_uc,
dep_libadwaita,
dep_m,
- dep_qlite,
dep_xmpp_vala,
meson.get_compiler('vala').find_library('posix'),
]
@@ -50,7 +49,9 @@ sources = files(
'src/ui/conversation_content_view/date_separator_populator.vala',
'src/ui/conversation_content_view/file_default_widget.vala',
'src/ui/conversation_content_view/file_image_widget.vala',
+ 'src/ui/conversation_content_view/file_transmission_progress.c',
'src/ui/conversation_content_view/file_transmission_progress.vala',
+ 'src/ui/conversation_content_view/file_group_widget.vala',
'src/ui/conversation_content_view/file_video_widget.vala',
'src/ui/conversation_content_view/file_widget.vala',
'src/ui/conversation_content_view/item_actions.vala',
@@ -112,7 +113,7 @@ sources += gnome.compile_resources(
source_dir: 'data',
)
-c_args = [
+c_args = vala_c_args + [
'-DG_LOG_DOMAIN="dino"',
'-DGETTEXT_PACKAGE="dino"',
'-DLOCALE_INSTALL_DIR="@0@"'.format(get_option('prefix') / get_option('localedir')),
@@ -120,34 +121,141 @@ c_args = [
vala_args = [
'--vapidir', meson.current_source_dir() / 'vapi',
]
-if dep_gtk4.version() == 'unknown' or dep_gtk4.version().version_compare('>=4.6')
- vala_args += ['-D', 'GTK_4_6']
-endif
-if dep_gtk4.version() == 'unknown' or dep_gtk4.version().version_compare('>=4.8')
- vala_args += ['-D', 'GTK_4_8']
-endif
-if dep_gtk4.version() == 'unknown' or dep_gtk4.version().version_compare('>=4.12')
- vala_args += ['-D', 'GTK_4_12']
-endif
-if dep_gtk4.version() == 'unknown' or dep_gtk4.version().version_compare('>=4.14')
- vala_args += ['-D', 'GTK_4_14']
- sources += files('src/ui/conversation_content_view/file_transmission_progress.c')
-endif
-if dep_libadwaita.version() == 'unknown' or dep_libadwaita.version().version_compare('>=1.4')
- vala_args += ['-D', 'Adw_1_4']
-endif
-if meson.get_compiler('vala').version().version_compare('>=0.56.5') and meson.get_compiler('vala').version().version_compare('<0.58')
- vala_args += ['-D', 'VALA_0_56_GREATER_5']
-endif
-if meson.get_compiler('vala').version().version_compare('>=0.56.11') and meson.get_compiler('vala').version().version_compare('<0.58')
- vala_args += ['-D', 'VALA_0_56_GREATER_11']
+
+if get_option('rtp').allowed() and dep_gstreamer.found() and dep_gstreamer_app.found() and dep_gstreamer_audio.found() and dep_gstreamer_rtp.found() and dep_gstreamer_video.found()
+ dependencies += [
+ dep_gstreamer,
+ dep_gstreamer_app,
+ dep_gstreamer_audio,
+ dep_gstreamer_rtp,
+ dep_gstreamer_video,
+ ]
+
+ sources += files(
+ 'src/plugins/rtp/codec_util.vala',
+ 'src/plugins/rtp/device.vala',
+ 'src/plugins/rtp/gst_fixes.c',
+ 'src/plugins/rtp/module.vala',
+ 'src/plugins/rtp/plugin.vala',
+ 'src/plugins/rtp/stream.vala',
+ 'src/plugins/rtp/video_widget.vala',
+ )
+
+ if dep_webrtc_audio_processing.found() and get_option('voice-processing').allowed()
+ voice_dependencies = [
+ dep_gstreamer_audio,
+ dep_webrtc_audio_processing,
+ ]
+ voice_sources = files(
+ 'src/plugins/rtp/voice_processor_native.cpp',
+ )
+ voice_c_args = ['-DG_LOG_DOMAIN="dino"']
+ if dep_webrtc_audio_processing.version().version_compare('>=2.0')
+ voice_c_args += ['-DWEBRTC2']
+ elif dep_webrtc_audio_processing.version().version_compare('>=1.0')
+ voice_c_args += ['-DWEBRTC1']
+ else
+ voice_c_args += ['-DWEBRTC0']
+ endif
+ lib_rtp_voice_processor = static_library('rtp-voice-processor', voice_sources, c_args: voice_c_args, cpp_args: voice_c_args, dependencies: voice_dependencies, install: false)
+ dep_rtp_voice_processor = declare_dependency(link_with: lib_rtp_voice_processor)
+ vala_args += ['-D', 'WITH_VOICE_PROCESSOR']
+ dependencies += [dep_rtp_voice_processor]
+ sources += files(
+ 'src/plugins/rtp/voice_processor.vala',
+ )
+ endif
+ if get_option('rtp-h264')
+ vala_args += ['-D', 'ENABLE_H264']
+ endif
+ if get_option('rtp-msdk')
+ vala_args += ['-D', 'ENABLE_MSDK']
+ endif
+ if get_option('rtp-vaapi')
+ vala_args += ['-D', 'ENABLE_VAAPI']
+ endif
+ if get_option('rtp-vp9')
+ vala_args += ['-D', 'ENABLE_VP9']
+ endif
+ vala_args += ['-D', 'WITH_RTP']
+
+ summary('Voice/video calls (rtp)', true, bool_yn: true, section: 'Plugins')
+ summary('H264 codec', get_option('rtp-h264'), bool_yn: true, section: 'RTP configuration')
+ summary('VP9 codec', get_option('rtp-vp9'), bool_yn: true, section: 'RTP configuration')
+ summary('Intel MediaSDK', get_option('rtp-msdk'), bool_yn: true, section: 'RTP configuration')
+ summary('Video Acceleration API', get_option('rtp-vaapi'), bool_yn: true, section: 'RTP configuration')
+ summary('Voice preprocessing', dep_webrtc_audio_processing.found() and get_option('voice-processing').allowed(), bool_yn: true, section: 'RTP configuration')
+else
+ summary('Voice/video calls (rtp)', false, bool_yn: true, section: 'Plugins')
endif
-if meson.get_compiler('vala').version().version_compare('=0.56.11')
- vala_args += ['-D', 'VALA_0_56_11']
+
+if get_option('omemo').allowed() and dep_libomemo_c.found() and dep_libqrencode.found()
+ dependencies += [
+ dep_libomemo_c,
+ dep_libqrencode,
+ ]
+ sources += files(
+ 'src/plugins/omemo/dtls_srtp_verification_draft.vala',
+ 'src/plugins/omemo/file_transfer/file_decryptor.vala',
+ 'src/plugins/omemo/file_transfer/file_encryptor.vala',
+ 'src/plugins/omemo/jingle/jet_omemo.vala',
+ 'src/plugins/omemo/jingle/jingle_helper.vala',
+ 'src/plugins/omemo/logic/database.vala',
+ 'src/plugins/omemo/logic/decrypt.vala',
+ 'src/plugins/omemo/logic/encrypt.vala',
+ 'src/plugins/omemo/logic/manager.vala',
+ 'src/plugins/omemo/logic/pre_key_store.vala',
+ 'src/plugins/omemo/logic/session_store.vala',
+ 'src/plugins/omemo/logic/signed_pre_key_store.vala',
+ 'src/plugins/omemo/logic/trust_manager.vala',
+ 'src/plugins/omemo/plugin.vala',
+ 'src/plugins/omemo/protocol/bundle.vala',
+ 'src/plugins/omemo/protocol/message_flag.vala',
+ 'src/plugins/omemo/protocol/stream_module.vala',
+ 'src/plugins/omemo/trust_level.vala',
+ 'src/plugins/omemo/ui/bad_messages_populator.vala',
+ 'src/plugins/omemo/ui/call_encryption_entry.vala',
+ 'src/plugins/omemo/ui/contact_details_provider.vala',
+ 'src/plugins/omemo/ui/device_notification_populator.vala',
+ 'src/plugins/omemo/ui/encryption_list_entry.vala',
+ 'src/plugins/omemo/ui/encryption_preferences_entry.vala',
+ 'src/plugins/omemo/ui/manage_key_dialog.vala',
+ 'src/plugins/omemo/ui/own_notifications.vala',
+ 'src/plugins/omemo/ui/util.vala',
+ )
+ vala_args += ['-D', 'WITH_OMEMO']
+
+ summary('End-to-end encryption using OMEMO (omemo)', true, bool_yn: true, section: 'Plugins')
+else
+ summary('End-to-end encryption using OMEMO (omemo)', false, bool_yn: true, section: 'Plugins')
endif
-if meson.get_compiler('vala').version().version_compare('=0.56.12')
- vala_args += ['-D', 'VALA_0_56_12']
+
+if get_option('openpgp').allowed() and dep_gpgme.found()
+ dependencies += [
+ dep_gpgme,
+ ]
+ sources += files(
+ 'src/plugins/openpgp/contact_details_provider.vala',
+ 'src/plugins/openpgp/database.vala',
+ 'src/plugins/openpgp/encryption_list_entry.vala',
+ 'src/plugins/openpgp/encryption_preferences_entry.vala',
+ 'src/plugins/openpgp/file_transfer/file_decryptor.vala',
+ 'src/plugins/openpgp/file_transfer/file_encryptor.vala',
+ 'src/plugins/openpgp/gpgme_fix.c',
+ 'src/plugins/openpgp/gpgme_helper.vala',
+ 'src/plugins/openpgp/manager.vala',
+ 'src/plugins/openpgp/plugin.vala',
+ 'src/plugins/openpgp/stream_module.vala',
+ 'src/plugins/openpgp/util.vala',
+ 'vapi/gpg-error.vapi',
+ )
+ vala_args += ['-D', 'WITH_OPENPGP']
+
+ summary('End-to-end encryption using PGP (openpgp)', true, bool_yn: true, section: 'Plugins')
+else
+ summary('End-to-end encryption using PGP (openpgp)', false, bool_yn: true, section: 'Plugins')
endif
+
exe_dino = executable('dino', sources, c_args: c_args, vala_args: vala_args, dependencies: dependencies, install: true, install_rpath: default_install_rpath)
install_data('data/icons/scalable/apps/im.dino.Dino-symbolic.svg', install_dir: get_option('datadir') / 'icons/hicolor/symbolic/apps')
diff --git a/main/po/ar.po b/main/po/ar.po
index 2e63f8d3..d47a0aae 100644
--- a/main/po/ar.po
+++ b/main/po/ar.po
@@ -19,6 +19,381 @@ msgstr ""
"&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n"
"X-Generator: Weblate 5.15-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr "يستخدم %s جهازًا غير موثوق به. لن ترى رسائل من أجهزة لا تثق بها."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "أدِر الأجهزة"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr "لا يثق %s بهذا الجهاز. هذا يعني أنك قد تفقد بعض الرسائل."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "إدارة المفتاح"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr "قارن البصمة حرفًا بحرف مع تلك التي تظهر على جهاز مُراسِلك."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "البصمات غير متطابقة"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "البصمات متطابقة"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "أكِّد"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "تحقق من المفتاح"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"ستميز الرسائل القادمة المرسلة بواسطة %s من الجهاز الذي يستخدم هذا المفتاح "
+"وفقًا لذلك في نافذة الدردشة."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "البصمات غير متطابقة"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"تحقق بأنك تقارن البصمة الصحيحة من فضلك. إن لم تكن البصمات متطابقة فإن حساب "
+"%s قد يكون مخترقًا، ومن المستحسن التفكير برفض هذا المفتاح."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "تحقق مِن بصمة المفتاح"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr "قارن بصمة هذا المفتاح مع البصمة المعروضة على جهاز مُراسِلك."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "ارفض المفتاح"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr "يحظر الاتصال المشفر مع جهاز المراسل الذي يستخدم هذا المفتاح."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "اقبل المفتاح"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr "يسمح بالاتصال المشفر بجهاز المراسل الذي يستخدم هذا المفتاح."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "هذا المفتاح %s حاليًا."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "مقبول"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr "ذلك يعني أنه بإمكان %s أن يستخدمه لتلقي وإرسال رسائل مشفرة."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "مُحَقَّق"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr "بالإضافة إلى ذلك، فقد تم التحقق من تطابق المفتاح على جهاز المُراسِل."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "مرفوض"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"هذا يعني أنه لن يكون بمقدور %s استخدامه لفك تشفير رسائلك، ولن ترى الرسائل "
+"المشفرة به."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"لن ترى الرسائل المشفرة من جهاز %s الذي يستخدم هذا المفتاح. وبخلاف ذلك، فلن "
+"يتمكن هذا الجهاز من فك تشفير رسائلك بعد الآن."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"سيكون بمقدورك تبادل الرسائل المشفرة مع جهاز %s الذي يستخدم هذا المفتاح."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "أدِر"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "لدى هذا المُراسِل أجهزة جديدة"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "قرار ثقة OMEMO إلزامي"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "هل قمت بإضافة جهاز جديد على حساب %s؟"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO مبدئيًا"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "فَعِّل تعمية OMEMO للمحادثات الجديدة"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "شَفِّر للأجهزة الجديدة"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "شَفِّر تلقائيًا للأجهزة الجديدة من هذا المراسِل."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "المفاتيح الجديدة"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr "سَتُقبَل مفاتيح التشفير الجديدة من أجهزتك الأخرى تلقائيًا."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "هذا الجهاز"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "جهاز آخر"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "جهاز"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "قُبِل"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "رُفِض"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "مُحَقَّق"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "جهاز جديد"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"لكل جهاز مفتاح OMEMO خاص به. يمكن فك تعمية الرسائل على جهاز ما إذا كانت "
+"التعمية قد تمت بمفتاحه حصرًا. الرسائل معمَّاة للأجهزة المقبولة."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "إدارة مفاتيح OMEMO"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "لا أجهزة OMEMO"
+#~ msgstr[1] "جهاز OMEMO واحد"
+#~ msgstr[2] "جهازا OMEMO"
+#~ msgstr[3] "%d أجهزة OMEMO"
+#~ msgstr[4] "%d جهاز OMEMO"
+#~ msgstr[5] "%d جهاز OMEMO"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "اقبّل المفاتيح الجديدة تلقائيًا"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr "ستقبل مفاتيح التشفير الجديدة لهذا المراسل تلقائيًا."
+
+#~ msgid "Own key"
+#~ msgstr "مفتاحك الخاص"
+
+#~ msgid "Associated keys"
+#~ msgstr "المفاتيح المقترِنة"
+
+#~ msgid "Inactive keys"
+#~ msgstr "المفاتيح غير النشِطة"
+
+#~ msgid "Unused"
+#~ msgstr "غير مستخدَم"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "بصمتك الخاصة"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "سيتم توليدها عند أول اتصال"
+
+#~ msgid "Not matching"
+#~ msgstr "غير مطابقة"
+
+#~ msgid "Matching"
+#~ msgstr "مطابقة"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "highlighted accordingly in the chat window."
+#~ msgstr ""
+#~ "بمجرد تأكيد ذلك ، سيتم تمييز أية رسائل مستقبلية مرسلة مِن %s باستخدام هذا "
+#~ "المفتاح وفقا لذلك في نافذة الدردشة."
+
+#~ msgid ""
+#~ "Stop accepting this key during communication with its associated contact."
+#~ msgstr "توقف عن قبول هذا المفتاح أثناء الاتصال مع المُراسِل المرتبط به."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact"
+#~ msgstr "ابدأ في قبول هذا المفتاح أثناء الاتصال مع المُراسِل المرتبط به"
+
+#~ msgid ""
+#~ "This means it cannot be used by %s to receive messages, and any messages "
+#~ "sent by it will be ignored."
+#~ msgstr ""
+#~ "هذا يعني أنه لا يمكن استخدامه مِن طرف %s لاستقبال الرسائل و سيتم تجاهل أية "
+#~ "رسائل بُعِثت به."
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "ignored and none of your messages will be readable using this key."
+#~ msgstr ""
+#~ "بمجرد التأكيد ، سيتم تجاهل أي رسائل مستقبلية يقوم بإرسالها %s باستخدام "
+#~ "هذا المفتاح ويتصبح كافة رسائلك غير قابلة للقراءة باستخدام هذا المفتاح."
+
+#~ msgid ""
+#~ "Once confirmed this key will be usable by %s to receive and send messages."
+#~ msgstr ""
+#~ "بمجرد تأكيد هذا المفتاح سوف يكون قابلا للاستخدام من قِبل %s لتلقي وإرسال "
+#~ "الرسائل."
+
+#~ msgid ""
+#~ "When this contact adds new encryption keys to their account, "
+#~ "automatically accept them."
+#~ msgstr ""
+#~ "عند قيام جهة الاتصال هذه باضافة مفاتيح تشفير جديدة إلى حسابها ، قم "
+#~ "بقبولها تلقائيا."
+
+#~ msgid ""
+#~ "When you add new encryption keys to your account, automatically accept "
+#~ "them."
+#~ msgstr "عند إضافة مفاتيح تشفير جديدة إلى حسابك ، اقبلها تلقائيا."
+
+#~ msgid "Unknown device (0x%.8x)"
+#~ msgstr "جهاز مجهول (0x%.8x)"
+
+#~ msgid "Other devices"
+#~ msgstr "أجهزة أخرى"
+
+#~ msgid "- None -"
+#~ msgstr "- لا شيء -"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "استعلام GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "أعلن المفتاح"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "خطأ في GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "لا مفتاح متوفر. ولِّد واحدًا!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "مُعَطَّل"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "المفتاح ليس في سلسلة المفاتيح"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "البصمة"
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "نشر المفاتيح معطل"
+
+#~ msgid "Select key"
+#~ msgstr "اختيار مفتاح"
+
+#~ msgid "Loading…"
+#~ msgstr "جارٍ التحميل…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1112,6 +1487,7 @@ msgstr "لِج"
msgid "Could not establish a secure connection"
msgstr "تعذّر إنشاء اتصال آمن"
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "عُد"
diff --git a/main/po/ca.po b/main/po/ca.po
index a479112e..489c3e83 100644
--- a/main/po/ca.po
+++ b/main/po/ca.po
@@ -16,6 +16,357 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.13\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s ha estat utilitzant un dispositiu no verificat. No veureu missatges de "
+"dispositius en què no confieu."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Gestionar dispositius"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s no confia en aquest dispositiu. Això vol dir que és possible que us "
+"faltin missatges."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Gestiona la clau"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Compareu l'empremta, caràcter per caràcter, amb la que es mostra al vostre "
+"dispositiu de contactes."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Les empremtes són diferents"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Les empremtes coincideixen"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Confirma"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Comproveu la clau"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Els missatges futurs enviats per %s des del dispositiu que utilitza aquesta "
+"clau es ressaltaran en conseqüència a la finestra de xat."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Les empremtes no es corresponen"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Cercioreu-vos que estigueu verificant l'empremta correcta. Si no en "
+"coincideixen, el compte de %s podria trobar-se en perill i heu de considerar "
+"rebutjar aquesta clau."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Verificar l'empremta de la clau"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Compareu l'empremta digital d'aquesta clau amb l'empremta digital que es "
+"mostra al dispositiu del contacte."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Rebutja la clau"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Bloqueja la comunicació xifrada amb el dispositiu del contacte que utilitza "
+"aquesta clau."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Accepta la clau"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Permet la comunicació xifrada amb el dispositiu del contacte que utilitza "
+"aquesta clau."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Actualment, aquesta clau ha estat %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "acceptada"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Això vol dir que %s pot utilitzar-la per rebre i enviar missatges xifrats."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "verificada"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+"A més, s'ha verificat que coincideix amb la clau del dispositiu del contacte."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "rebutjada"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Això vol dir que %s no pot utilitzar-la per desxifrar els vostres missatges "
+"i no veureu els missatges xifrats amb ella."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"No veureu missatges xifrats del dispositiu de %s que utilitza aquesta clau. "
+"Per contra, aquest dispositiu ja no podrà desxifrar els vostres missatges."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Podreu intercanviar missatges xifrats amb el dispositiu de %s que utilitza "
+"aquesta clau."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Gestiona"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Aquest contacte té dispositius nous"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "Cal una decisió de confiança d'OMEMO"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Heu afegit un dispositiu nou per al compte %s?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO per defecte"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Activa l'encriptació OMEMO per a converses noves"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Encripta a nous dispositius"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Encripta automàticament a dispositius nous des d'aquest contacte."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Claus noves"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Les claus de xifratge noves dels altres dispositius s'acceptaran "
+"automàticament."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Aquest dispositiu"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Un altre dispositiu"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Dispositiu"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Acceptada"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Rebutjada"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Verificada"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Nou dispositiu"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Cada dispositiu té la seva pròpia clau OMEMO. Un dispositiu només es pot "
+"desxifrar un missatge si ha estat xifrat per a la seva clau. Només es xifren "
+"els missatges per a dispositius acceptats."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "Gestió de claus OMEMO"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d dispositiu OMEMO"
+#~ msgstr[1] "%d dispositius OMEMO"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Accepta claus noves automàticament"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr ""
+#~ "Les claus de xifratge noves d'aquest contacte s'acceptaran automàticament."
+
+#~ msgid "Own key"
+#~ msgstr "Clau pròpia"
+
+#~ msgid "Associated keys"
+#~ msgstr "Claus associades"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Claus inactives"
+
+#~ msgid "Unused"
+#~ msgstr "No utilitzada"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Empremta pròpia"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Es generarà durant la primera connexió"
+
+#~ msgid "Not matching"
+#~ msgstr "No coincideixen"
+
+#~ msgid "Matching"
+#~ msgstr "Coincideixen"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "highlighted accordingly in the chat window."
+#~ msgstr ""
+#~ "Després de la confirmació, qualssevol missatges que enviï %s amb aquesta "
+#~ "clau es ressaltarà a la finestra del xat."
+
+#~ msgid "Unknown device (0x%.8x)"
+#~ msgstr "Dispositiu desconegut (0x%.8x)"
+
+#~ msgid "Other devices"
+#~ msgstr "Altres dispositius"
+
+#~ msgid "- None -"
+#~ msgstr "- Cap -"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "S'està consultant al GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "S'ha produït un error al GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "No hi ha claus disponibles. Genereu una!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr ""
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "La clau no està al clauer"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Empremta digital"
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Publicació de claus inhabilitada"
+
+#~ msgid "Select key"
+#~ msgstr "Seleccioneu una clau"
+
+#~ msgid "Loading…"
+#~ msgstr "S'està carregant…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1094,6 +1445,7 @@ msgstr "Inicia sessió"
msgid "Could not establish a secure connection"
msgstr "No s'ha pogut establir una connexió segura"
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Enrere"
diff --git a/main/po/cs.po b/main/po/cs.po
index b68e0b31..a5386c65 100644
--- a/main/po/cs.po
+++ b/main/po/cs.po
@@ -17,6 +17,332 @@ msgstr ""
"Plural-Forms: nplurals=3; plural=((n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2);\n"
"X-Generator: Weblate 5.17-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s používá nedůvěryhodné zařízení. Zprávy ze zařízení, kterým nedůvěřujete, "
+"se vám nezobrazí."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Spravovat zařízení"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s nedůvěřuje tomuto zařízení. Z tohoto důvodu nemusí vidět některé zprávy."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Spravovat klíč"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Porovnejte otisk klíče, znak po znaku, s tím, který je zobrazen na zařízení "
+"vašeho kontaktu."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Otisky klíčů se liší"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Otisky klíčů odpovídají"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Potvrdit"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Ověřit klíč"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Budoucí zprávy, s odesílatelem %s, ze zařízení, které používá tento klíč, "
+"budou odpovídajícím způsobem zvýrazněny v okně chatu."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Otisky klíčů se neshodují"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Ověřte, zda porovnáváte správný otisk klíče. Pokud se otisky neshodují, účet "
+"%s může být ohrožen a měli byste zvážit zamítnutí tohoto klíče."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Ověření otisku klíče"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Porovnejte otisk tohoto klíče s otiskem zobrazeným na zařízení kontaktu."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Odmítnout klíč"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Zablokujte šifrovanou komunikaci se zařízením kontaktu, které tento klíč "
+"používá."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Přijmout klíč"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Povolit šifrovanou komunikaci se zařízením kontaktu, které používá tento "
+"klíč."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Tento klíč je v současné době %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "akceptován"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"To znamená, že jej %s může používat k přijímání a odesílání šifrovaných "
+"zpráv."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "ověřen"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr "Navíc bylo ověřeno, že odpovídá klíči v zařízení kontaktu."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "odmítnut"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"To znamená, že jej %s nemůže použít k dešifrování zpráv a vy neuvidíte "
+"zprávy šifrované tímto klíčem."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Ze zařízení %s, které používá tento klíč, se šifrované zprávy nezobrazí. "
+"Toto zařízení už také nebude schopno rozluštit vaše zprávy."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Budete si moci vyměňovat šifrované zprávy se zařízením %s, které tento klíč "
+"používá."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Spravovat"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Tento kontakt má nová zařízení"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "Vyžaduje se rozhodnutí o důvěře OMEMO"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Přidali jste nové zařízení pro účet %s?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO ve výchozím stavu"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Zapnout OMEMO šifrování pro nové konverzace"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Šifrovat novým zařízením"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Automaticky šifrovat novým zařízením od tohoto kontaktu."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Nové klíče"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Nové šifrovací klíče z vašich ostatních zařízení budou automaticky přijímány."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Toto zařízení"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Jiné zařízení"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Zařízení"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Přijat"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Odmítnut"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Ověřen"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Nové zařízení"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Každé zařízení má svůj vlastní OMEMO klíč. Pokud jsou tímto klíčem "
+"zašifrované, zprávy je možné rozšifrovat pouze daným zařízením. Zprávy jsou "
+"šifrovány pouze pro přijatá zařízení."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "OMEMO Správa klíčů"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d OMEMO zařízení"
+#~ msgstr[1] "%d OMEMO zařízení"
+#~ msgstr[2] "%d OMEMO zařízení"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Automaticky přijímat nové klíče"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr ""
+#~ "Nové šifrovací klíče od tohoto kontaktu budou automaticky přijímány."
+
+#~ msgid "Own key"
+#~ msgstr "Vlastní klíč"
+
+#~ msgid "Associated keys"
+#~ msgstr "Přidružené klíče"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Neaktivní klíče"
+
+#~ msgid "Unused"
+#~ msgstr "Nepoužit"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Otisk vlastního klíče"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Budou generovány při prvním připojení"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Dotazování GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "Oznámit klíč"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Chyba v GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Nejsou k dispozici žádné klíče. Vygenerujte jeden!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Zakázáno"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Klíč není v klíčence"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Otisk"
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Publikování klíčů zakázáno"
+
+#~ msgid "Select key"
+#~ msgstr "Vybrat klíč"
+
+#~ msgid "Loading…"
+#~ msgstr "Načítání…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1097,7 +1423,7 @@ msgstr "Přihlásit"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Nepodařilo se navázat zabezpečené připojení"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Zpět"
diff --git a/main/po/da.po b/main/po/da.po
index f67fa88f..4afea682 100644
--- a/main/po/da.po
+++ b/main/po/da.po
@@ -17,6 +17,270 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.4-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr ""
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Forespørg GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Fejl i GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Ingen nøgler til rådighed. Generer en!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr ""
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Nøglen er ikke i nøglering"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr ""
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Nøglepublisering deaktiveret"
+
+#~ msgid "Select key"
+#~ msgstr "Vælg nøgle"
+
+#~ msgid "Loading…"
+#~ msgstr "Henter…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1093,7 +1357,7 @@ msgstr ""
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Kunne ikke oprette en sikker forbindelse"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Tilbage"
diff --git a/main/po/de.po b/main/po/de.po
index 5ee85c98..61f89300 100644
--- a/main/po/de.po
+++ b/main/po/de.po
@@ -13,6 +13,422 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.15-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s hat ein nicht akzeptiertes Gerät benutzt. Du wirst Nachrichten von nicht "
+"akzeptierten Geräten nicht sehen."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Geräte verwalten"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s akzeptiert dieses Gerät nicht. Deshalb verpasst du vielleicht Nachrichten."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Schlüssel verwalten"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Vergleiche den Fingerabdruck, Zeichen für Zeichen, mit dem der auf dem Gerät "
+"deines Kontakts angezeigt wird."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Fingerabdrücke unterscheiden sich"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Fingerabdrücke stimmen überein"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Bestätigen"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Schlüssel verifizieren"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Zukünftige Nachrichten, die %s von dem Gerät sendet, welches diese Schlüssel "
+"verwendet, werden im Chatfenster entsprechend hervorgehoben."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Fingerabdrücke stimmen nicht überein"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Bitte überprüfe, ob du den richtigen Fingerabdruck vergleichst. Wenn die "
+"Fingerabdrücke nicht übereinstimmen, ist das Konto von %s möglicherweise "
+"kompromittiert und du solltest in Betracht ziehen, den Schlüssel abzulehnen."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Fingerabdruck überprüfen"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Diesen Fingerabdruck mit dem Fingerabdruck vergleichen, der auf dem Gerät "
+"des Kontaktes angezeigt wird."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Schlüssel ablehnen"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Blockiert die verschlüsselte Kommunikation mit dem Gerät des Kontakts, das "
+"diesen Schlüssel verwendet."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Schlüssel akzeptieren"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Erlaubt die verschlüsselte Kommunikation mit dem Gerät des Kontakts, das "
+"diesen Schlüssel verwendet."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Dieser Schlüssel ist aktuell %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "akzeptiert"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Das bedeutet, er kann von %s zum Empfangen und Senden verschlüsselter "
+"Nachrichten verwendet werden."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "überprüft"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+"Darüber hinaus wurde überprüft, dass er mit dem Schlüssel auf dem Gerät des "
+"Kontaktes übereinstimmt."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "abgelehnt"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Das bedeutet %s kann ihn nicht benutzen, um deine Nachrichten zu "
+"entschlüsseln, und du wirst damit verschlüsselte Nachrichten nicht sehen."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Du wirst verschlüsselte Nachrichten von dem Gerät von %s, welches diesen "
+"Schlüssel benutzt nicht mehr sehen. Umgekehrt kann dieses Gerät deine "
+"Nachrichten nicht mehr entschlüsseln."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Du wirst verschlüsselte Nachrichten mit dem Gerät von %s, welches diesen "
+"Schlüssel verwendet, austauschen können."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Verwalten"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Dieser Kontakt hat neue Geräte"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "OMEMO-Vertrauensentscheidung erforderlich"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Hast du ein neues Gerät für dein Konto %s hinzugefügt?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO als Standard"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "OMEMO-Verschlüsselung für neue Unterhaltungen aktivieren"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Verschlüsselung für neue Geräte"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Automatische Verschlüsselung für neue Geräte von diesem Kontakt."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Neue Schlüssel"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Neue Schlüssel von deinen anderen Geräten werden automatisch akzeptiert."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Dieses Gerät"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Anderes Gerät"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Gerät"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Akzeptiert"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Zurückgewiesen"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Verifiziert"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Neues Gerät"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Jedes Gerät hat seinen eigenen OMEMO-Schlüssel. Nachrichten können von einem "
+"Gerät nur entschlüsselt werden, wenn sie mit diesem Schlüssel verschlüsselt "
+"sind. Nachrichten werden nur an akzeptierte Geräte verschlüsselt."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "OMEMO-Schlüssel Verwaltung"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d OMEMO Gerät"
+#~ msgstr[1] "%d OMEMO Geräte"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Neue Schlüssel automatisch akzeptieren"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr "Neue Schlüssel von diesem Kontakt werden automatisch akzeptiert."
+
+#~ msgid "Own key"
+#~ msgstr "Eigener Schlüssel"
+
+#~ msgid "Associated keys"
+#~ msgstr "Zugehörige Schlüssel"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Inaktive Schlüssel"
+
+#~ msgid "Unused"
+#~ msgstr "Unbenutzt"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Eigener Fingerabdruck"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Wird beim ersten Verbinden erzeugt"
+
+#~ msgid "Your contact"
+#~ msgstr "Dein Kontakt"
+
+#~ msgid "Not matching"
+#~ msgstr "Nicht übereinstimmend"
+
+#~ msgid "Matching"
+#~ msgstr "Stimmt überein"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "highlighted accordingly in the chat window."
+#~ msgstr ""
+#~ "Nach der Bestätigung werden alle mit diesem Schlüssel verschlüsselten "
+#~ "Nachrichten von %s hervorgehoben."
+
+#~ msgid ""
+#~ "Stop accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "Diesen Schlüssel nicht mehr für die Kommunikation mit dem "
+#~ "Schlüsselbesitzer akzeptieren."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact"
+#~ msgstr ""
+#~ "Akzeptiere diesen Schlüssel für die Kommunikation mit dem zugehörigen "
+#~ "Kontakt"
+
+#~ msgid ""
+#~ "This means it cannot be used by %s to receive messages, and any messages "
+#~ "sent by it will be ignored."
+#~ msgstr ""
+#~ "Das bedeutet, dass es von %s nicht verwendet werden kann, um Nachrichten "
+#~ "zu empfangen und alle von ihm gesendeten Nachrichten werden ignoriert."
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "ignored and none of your messages will be readable using this key."
+#~ msgstr ""
+#~ "Nach der Bestätigung werden alle zukünftigen Nachrichten, die von %s mit "
+#~ "diesem Schlüssel gesendet werden, ignoriert und keine Ihrer Nachrichten "
+#~ "ist mit diesem Schlüssel lesbar."
+
+#~ msgid ""
+#~ "Once confirmed this key will be usable by %s to receive and send messages."
+#~ msgstr ""
+#~ "Sobald bestätigt, kann %s diesen Schlüssel zum Senden und Empfangen von "
+#~ "Nachrichten verwenden."
+
+#~ msgid ""
+#~ "When this contact adds new encryption keys to their account, "
+#~ "automatically accept them."
+#~ msgstr ""
+#~ "Wenn dieser Kontakt neue Verschlüsselungscodes zu seinem Konto hinzufügt, "
+#~ "werden sie automatisch akzeptiert."
+
+#~ msgid ""
+#~ "When you add new encryption keys to your account, automatically accept "
+#~ "them."
+#~ msgstr ""
+#~ "Wenn du einen neuen Schüssel zu deinem Account hinzufügst, wird dieser "
+#~ "automatisch akzeptiert."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "Diesen Schlüssel für die Kommunikation mit dem entsprechenden Kontakt "
+#~ "akzeptieren."
+
+#~ msgid "Unknown device (0x%.8x)"
+#~ msgstr "Unbekanntes Gerät (0x%.8x)"
+
+#~ msgid "Other devices"
+#~ msgstr "Andere Geräte"
+
+#~ msgid "- None -"
+#~ msgstr "- Keine -"
+
+#~ msgid "OMEMO"
+#~ msgstr "OMEMO"
+
+#~ msgid "Database error"
+#~ msgstr "Datenbank Fehler"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "GnuPG wird abgefragt"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "Schlüssel veröffentlichen"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Fehler in GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Keine Schlüssel vorhanden. Erzeuge einen!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Deaktiviert"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Schlüssel nicht im Schlüsselbund"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Fingerabdruck"
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Schlüsselveröffentlichung deaktiviert"
+
+#~ msgid "Select key"
+#~ msgstr "Wähle einen Schlüssel"
+
+#~ msgid "Loading…"
+#~ msgstr "Lade…"
+
+#~ msgid "OpenPGP"
+#~ msgstr "OpenPGP"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1091,7 +1507,7 @@ msgstr "Anmelden"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Es konnte keine sichere Verbindung hergestellt werden"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Zurück"
diff --git a/main/po/dino.pot b/main/po/dino.pot
index aaa02bd5..9d4bbed5 100644
--- a/main/po/dino.pot
+++ b/main/po/dino.pot
@@ -18,6 +18,261 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr ""
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr ""
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr ""
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1094,7 +1349,7 @@ msgstr ""
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr ""
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr ""
diff --git a/main/po/el.po b/main/po/el.po
index 8942ff86..0269899d 100644
--- a/main/po/el.po
+++ b/main/po/el.po
@@ -17,6 +17,337 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.18-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s χρησιμοποιεί μια μη αξιόπιστη συσκευή. Δεν θα βλέπετε μηνύματα από "
+"συσκευές που δεν εμπιστεύεστε."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Διαχείριση συσκευών"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s δεν εμπιστεύεται αυτήν τη συσκευή. Αυτό σημαίνει ότι μπορεί να χάσετε "
+"μηνύματα."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Διαχείριση Κλειδιού"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Συγκρίνετε το δακτυλικό αποτύπωμα (fingerprint), χαρακτήρα προς χαρακτήρα, "
+"με αυτό που εμφανίζεται στη συσκευή της επαφής σας."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Τα δακτυλικά αποτυπώματα (fingerprints) διαφέρουν"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Τα δακτυλικά αποτυπώματα (fingerprints) ταιριάζουν"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Επιβεβαίωση"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Επαλήθευση κλειδιού"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Μελλοντικά μηνύματα που αποστέλλονται από %s από τη συσκευή που χρησιμοποιεί "
+"αυτό το κλειδί θα επισημαίνονται ανάλογα στο παράθυρο συνομιλίας."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Τα δακτυλικά αποτυπώματα (fingerprints) δεν ταιριάζουν"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Επαληθεύστε ότι συγκρίνετε το σωστό δακτυλικό αποτύπωμα (fingerprint). Εάν "
+"τα δακτυλικά αποτυπώματα (fingerprints) δεν ταιριάζουν, ο λογαριασμός του %s "
+"μπορεί να παραβιαστεί και θα πρέπει να σκεφτείτε να απορρίψετε αυτό το "
+"κλειδί."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Επαλήθευση δακτυλικού αποτυπώματος (fingerprint) κλειδιού"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Συγκρίνετε το δακτυλικό αποτύπωμα (fingerprint) αυτού του κλειδιού με το "
+"δακτυλικό αποτύπωμα που εμφανίζεται στη συσκευή της επαφής."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Απόρριψη κλειδιού"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Αποκλεισμός κρυπτογραφημένης επικοινωνίας με τη συσκευή της επαφής που "
+"χρησιμοποιεί αυτό το κλειδί."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Αποδοχή κλειδιού"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Να επιτρέπεται η κρυπτογραφημένη επικοινωνία με τη συσκευή της επαφής που "
+"χρησιμοποιεί αυτό το κλειδί."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Αυτό το κλειδί είναι αυτή τη στιγμή %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "δεκτό"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Αυτό σημαίνει ότι μπορεί να χρησιμοποιηθεί από το %s για λήψη και αποστολή "
+"κρυπτογραφημένων μηνυμάτων."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "επαληθευμένο"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+"Επιπλέον, έχει επαληθευτεί ότι ταιριάζει με το κλειδί στη συσκευή της επαφής."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "απορριφθέν"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Αυτό σημαίνει ότι δεν μπορεί να χρησιμοποιηθεί από %s για την "
+"αποκρυπτογράφηση των μηνυμάτων σας και δεν θα βλέπετε μηνύματα "
+"κρυπτογραφημένα με αυτό."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Δεν θα βλέπετε κρυπτογραφημένα μηνύματα από τη συσκευή των %s που "
+"χρησιμοποιούν αυτό το κλειδί. Αντίθετα, αυτή η συσκευή δεν θα μπορεί πλέον "
+"να αποκρυπτογραφήσει τα μηνύματά σας."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Θα μπορείτε να ανταλλάσσετε κρυπτογραφημένα μηνύματα με τη συσκευή των %s "
+"που χρησιμοποιούν αυτό το κλειδί."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Διαχείρηση"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Αυτή η επαφή έχει νέες συσκευές"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "Απαιτείται απόφαση εμπιστοσύνης OMEMO"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Προσθέσατε νέα συσκευή για τον λογαριασμό %s;"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Νέα κλειδιά"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Τα νέα κλειδιά κρυπτογράφησης από τις άλλες συσκευές σας θα γίνονται δεκτά "
+"αυτόματα."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Αποδεκτά"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Απορριφθέντα"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Επαληθευμένα"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr ""
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "Διαχείριση κλειδιών OMEMO"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d OMEMO συσκευή"
+#~ msgstr[1] "%d OMEMO συσκευές"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Αυτόματη αποδοχή νέων κλειδιών"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr ""
+#~ "Τα νέα κλειδιά κρυπτογράφησης από αυτήν την επαφή θα γίνονται δεκτά "
+#~ "αυτόματα."
+
+#~ msgid "Own key"
+#~ msgstr "Το κλειδί μου"
+
+#~ msgid "Associated keys"
+#~ msgstr "Συσχετισμένα κλειδιά"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Ανενεργά κλειδιά"
+
+#~ msgid "Unused"
+#~ msgstr "Αχρησιμοποίητα"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Το δακτυλικό μου αποτύπωμα (fingerprint)"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Θα δημιουργηθεί με την πρώτη σύνδεση"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Αναζήτηση στο GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Σφάλμα στο GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Δεν υπάρχουν διαθέσιμα κλειδιά. Δημιουργήστε ένα!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr ""
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Το κλειδί δεν είναι στο keychain"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr ""
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Η δημοσίευση του κλειδιού είναι απενεργοποιημένη"
+
+#~ msgid "Select key"
+#~ msgstr "Επιλέξτε κλειδί"
+
+#~ msgid "Loading…"
+#~ msgstr "Φόρτωση…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1095,7 +1426,7 @@ msgstr ""
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Δεν ήταν δυνατή η δημιουργία ασφαλούς σύνδεσης"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Πίσω"
diff --git a/main/po/en.po b/main/po/en.po
index 15fd5845..1ad7cc78 100644
--- a/main/po/en.po
+++ b/main/po/en.po
@@ -8,6 +8,261 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr ""
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr ""
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr ""
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1085,6 +1340,7 @@ msgstr ""
msgid "Could not establish a secure connection"
msgstr ""
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr ""
diff --git a/main/po/eo.po b/main/po/eo.po
index 4cfc0c3b..87d49f57 100644
--- a/main/po/eo.po
+++ b/main/po/eo.po
@@ -18,6 +18,335 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.17-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s uzas nefidatan aparaton. Vi ne vidos mesaĝojn el aparatoj, kiujn vi ne "
+"fidas."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Administri aparatojn"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s ne fidas ĉi tiun aparaton. Tio signifas, ke eble mankas al vi mesaĝoj."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Administri Ŝlosilon"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Komparu la fingropremaĵon, signon post signo, kun la fingropremaĵo montrata "
+"sur la aparato de via kontakto."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Fingropremaĵoj diferencas"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Fingropremaĵoj kongruas"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Konfirmi"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Konfirmi ŝlosilon"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Mesaĝoj sendotaj de %s per la aparato kiu uzas ĉi tiun ŝlosilon estos "
+"emfazitaj laŭe en la babila fenestro."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Fingropremaĵoj ne kongruas"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Bonvolu konfirmi, ke vi komparas la ĝustan fingropremaĵon. Se fingropremaĵoj "
+"ne kongruas, la konto de %s eble estas kompromitita, kaj vi konsideru "
+"rifuzon de ĉi tiu ŝlosilo."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Konfirmi ŝlosilan fingropremaĵon"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Komparu la fingropremaĵon de ĉi tiu ŝlosilo kun la fingropremaĵo montrata "
+"sur la aparato de la kontakto."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Rifuzi ŝlosilon"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Rifuzi ĉifritan komunikadon al la aparato de la kontakto, kiu uzas ĉi tiun "
+"ŝlosilon."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Akcepti ŝlosilon"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Akcepti ĉifritan komunikadon al la aparato de la kontakto, kiu uzas ĉi tiun "
+"ŝlosilon."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Ĉi tiu ŝlosilo estas aktuale %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "akceptata"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Ĉi tio signifas, ke ĝi povas esti uzata de %s por ricevi kaj sendi ĉifritajn "
+"mesaĝojn."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "konfirmita"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+"Krome ĝi estis kontrolita pri kongruo kun la ŝlosilo ĉe la aparato de la "
+"kontakto."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "rifuzita"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Tio signifas, ke ĝi ne povas esti uzata de %s por malĉifri viajn mesaĝojn, "
+"kaj vi ne vidos mesaĝojn ĉifritajn per ĝi."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Vi ne vidos ĉifritajn mesaĝojn el la aparato de %s kiu uzas ĉi tiun "
+"ŝlosilon. Male, tiu aparato ne plu povos malĉifri viajn mesaĝojn."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Vi povos interŝanĝi ĉifritajn mesaĝojn kun la aparato de %s kiu uzas ĉi tiun "
+"ŝlosilon."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Administri"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Ĉi tiu kontakto havas novajn aparatojn"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "Necesas OMEMO-decido pri fidindeco"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Ĉu vi aldonis novan aparaton por la konto %s?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO defaŭlte"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Ŝalti ĉifradon per OMEMO por novaj konversacioj"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Ĉifri por novaj aparatoj"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Aŭtomate ĉifri por novaj aparatoj de ĉi tiu kontakto."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Novaj ŝlosiloj"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Novaj ĉifraj ŝlosiloj de viaj aliaj aparatoj estos aŭtomate akceptitaj."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Ĉi tiu aparato"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Alia aparato"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Aparato"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Akceptita"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Rifuzita"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Konfirmita"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Nova aparato"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Ĉiu aparato havas sian OMEMO-ŝlosilon. Mesaĝoj povas esti deĉifritaj de "
+"aparato, nur se ĉifritaj per ĝia ŝlosilo. Mesaĝoj estas ĉifrataj nur por "
+"akceptitaj aparatoj."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "Administrado de OMEMO-Ŝlosiloj"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d OMEMO-aparato"
+#~ msgstr[1] "%d OMEMO-aparatoj"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Aŭtomate akcepti novajn ŝlosilojn"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr "Novaj ĉifraj ŝlosiloj de ĉi tiu kontakto estos aŭtomate akceptitaj."
+
+#~ msgid "Own key"
+#~ msgstr "Propra ŝlosilo"
+
+#~ msgid "Associated keys"
+#~ msgstr "Asociitaj ŝlosiloj"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Neaktivaj ŝlosiloj"
+
+#~ msgid "Unused"
+#~ msgstr "Ne uzata"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Propra fingropremaĵo"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Estos farita dum unua konekto"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Pridemandante GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "Anonca ŝlosilo"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Eraro pri GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Neniu ŝlosilo estas havebla. Faru ŝlosilon!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Malŝaltita"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Ŝlosilo ne en ŝlosilaro"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Fingropremo"
+
+#, fuzzy
+#~ msgid "Key publishing disabled"
+#~ msgstr "Eldonado de ŝlosilo estas malŝaltita"
+
+#~ msgid "Select key"
+#~ msgstr "Elekti ŝlosilon"
+
+#~ msgid "Loading…"
+#~ msgstr "Ŝargante…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1094,7 +1423,7 @@ msgstr "Ensaluti"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Ne povis sekure konekti"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Reen"
diff --git a/main/po/es.po b/main/po/es.po
index 7e46ad82..d24e6513 100644
--- a/main/po/es.po
+++ b/main/po/es.po
@@ -18,6 +18,422 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.7.1-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s ha estado usando un dispositivo poco fiable. No verá mensajes de "
+"dispositivos en los que no confíe."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Gestionar dispositivos"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s no confía en este dispositivo. Eso significa que puede que te falten "
+"mensajes."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Gestionar Clave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Compara la huella digital, carácter a carácter, con la huella digital "
+"mostrada en el dispositivo de tus contactos."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Las huellas digitales son diferente"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Las huellas digitales son idénticas"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Confirmar"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Verificar clave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Los mensajes futuros enviados por %s desde el dispositivo que usa esta clave "
+"serán resaltado en consecuencia en la ventana de conversación."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Huellas digitales no coinciden"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Por favor, verifica que estás comparando la huella digital correcta. Si la "
+"huella digital no coincide con la cuenta %s puede que la clave esté "
+"comprometida y deberías considerar rechazar esta clave."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Verificar Huella Digital"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Compara esta huella digital con la huella digital mostrada en el dispositivo "
+"de tu contacto."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Rechazar clave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Bloquear comunicación cifrada con el dispositivo del contacto que usa esta "
+"clave."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Aceptar clave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Permitir comunicación cifrada con el dispositivo del contacto que usa esta "
+"clave."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Esta clave está actualmente %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "aceptada"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Esto significa que puede ser usada por %s para recibir y enviar mensajes "
+"cifrados."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "verificada"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+"Además, ha sido verificado que las claves coinciden con la clave del "
+"dispositivo de tu contacto."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "rechazada"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Esto significa que no puede ser usada por %s para descifrar tus mensajes, y "
+"tú no verás los mensajes cifrados con ella."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"No verás los mensajes cifrados desde el dispositivo de %s que usa esta "
+"clave. A la inversa, ese dispositivo ya no podrá descifrar tus mensajes."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Tu podrás intercambiar mensajes cifrados con el dispositivo de %s que usa "
+"esta clave."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Gestionar"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Este contacto tiene un nuevo dispositivo"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "Decisión de confianza requerida para clave OMEMO"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "¿Añadiste un nuevo dispositivo para la cuenta %s?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO por defecto"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Habilitar el cifrado de OMEMO para nuevas conversaciones"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Cifrar para nuevos dispositivos"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Cifrar automáticamente los nuevos dispositivos desde este contacto."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Nuevas claves"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Las nuevas claves de cifrado de tus otros dispositivos serán aceptadas "
+"automáticamente."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Este dispositivo"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Otro dispositivo"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Dispositivo"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Aceptada"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Rechazada"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Verificada"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Dispositivo nuevo"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Cada dispositivo tiene su propia clave OMEMO. Los mensajes solamente se "
+"pueden descifrar por un dispositivo si se han cifrado para su clave. Los "
+"mensajes solamente se cifran para dispositivos aceptados."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "Huellas digitales OMEMO"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d dispositivo OMEMO"
+#~ msgstr[1] "%d dispositivos OMEMO"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Automáticamente aceptar nuevas claves"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr ""
+#~ "Las nuevas claves de cifrados para este contacto serán aceptadas "
+#~ "automáticamente."
+
+#~ msgid "Own key"
+#~ msgstr "Mi clave"
+
+#~ msgid "Associated keys"
+#~ msgstr "Claves asociadas"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Claves inactivas"
+
+#~ msgid "Unused"
+#~ msgstr "Sin usar"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Tu huella digital"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Será generada en la primera conexión"
+
+#~ msgid "Your contact"
+#~ msgstr "Tu contacto"
+
+#~ msgid "Not matching"
+#~ msgstr "No coincide"
+
+#~ msgid "Matching"
+#~ msgstr "Coincide"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "highlighted accordingly in the chat window."
+#~ msgstr ""
+#~ "Una vez confirmada, cualquier futuro mensaje enviado por %s usando esta "
+#~ "clave será resaltado en el ventana de conversación."
+
+#~ msgid ""
+#~ "Stop accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "Dejar de aceptar esta clave durante la comunicación con este contacto."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact"
+#~ msgstr "Aceptar esta clave durante la comunicación con este contacto"
+
+#~ msgid ""
+#~ "This means it cannot be used by %s to receive messages, and any messages "
+#~ "sent by it will be ignored."
+#~ msgstr ""
+#~ "Esto significa que no puede ser usada por %s para recibir mensajes, y "
+#~ "cualquier mensaje enviado con esta clave será ignorado."
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "ignored and none of your messages will be readable using this key."
+#~ msgstr ""
+#~ "Una vez confirmado, cualquier futuro mensaje enviado por %s usando esta "
+#~ "clave será ignorado y ninguno de tus mensajes será legible usando esta "
+#~ "clave."
+
+#~ msgid ""
+#~ "Once confirmed this key will be usable by %s to receive and send messages."
+#~ msgstr ""
+#~ "Una vez confirmada esta clave será usable por %s para recibir y enviar "
+#~ "mensajes."
+
+#~ msgid ""
+#~ "When this contact adds new encryption keys to their account, "
+#~ "automatically accept them."
+#~ msgstr ""
+#~ "Cuando este contacto añada nuevas claves de cifrado a su cuenta, "
+#~ "automáticamente aceptarlas."
+
+#~ msgid ""
+#~ "When you add new encryption keys to your account, automatically accept "
+#~ "them."
+#~ msgstr ""
+#~ "Cuando añades nuevas claves de cifrado a tu cuenta, aceptarlas "
+#~ "automáticamente."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact."
+#~ msgstr "Aceptar esta clave durante la comunicación con este contacto."
+
+#~ msgid "Reject Key"
+#~ msgstr "Rechazar clave"
+
+#~ msgid "Accept Key"
+#~ msgstr "Aceptar clave"
+
+#~ msgid "Unknown device (0x%.8x)"
+#~ msgstr "Dispositivo (0x%.8x) desconocido"
+
+#~ msgid "Other devices"
+#~ msgstr "Otros dispositivos"
+
+#~ msgid "- None -"
+#~ msgstr "- Ninguno -"
+
+#~ msgid "OMEMO"
+#~ msgstr "OMEMO"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Consultando GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+#, fuzzy
+msgid "Announce key"
+msgstr "Anunciar la clave"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Error en GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "No hay claves disponibles. ¡Genera una!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Desactivado"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "La clave no está en la cadena de claves"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+#, fuzzy
+msgid "Fingerprint"
+msgstr "Huella"
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Publicación de claves desactivada"
+
+#~ msgid "Select key"
+#~ msgstr "Seleccionar clave"
+
+#~ msgid "Loading…"
+#~ msgstr "Cargando…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1094,7 +1510,7 @@ msgstr ""
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "No se pudo establecer una conexión segura"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Volver"
diff --git a/main/po/et.po b/main/po/et.po
index 6eb5088b..47d715a7 100644
--- a/main/po/et.po
+++ b/main/po/et.po
@@ -17,6 +17,317 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.15-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s kasutab seadet, mille suhtes puudub usaldus. Sa ei näe sõnumeid "
+"seadmetest, mida sa ei usalda."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Halda seadmeid"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s ei usalda seda seadet. See tähendab, et sa ilmselt ei näe kõiki sõnumeid."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Halda võtmeid"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Võrdle tähemärkide haaval seda sõrmejälge tollega, mida näidatakse teise "
+"osapoole seadmes."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Sõrmejäljed erinevad"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Sõrmejäljed on samad"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Kinnita"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Verifitseeri võtmed"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Kui kasutaja %s saadab tulevikus sõnumeid seadmest, mis kasutab seda "
+"krüptovõtit, siis need on ka vestlusaknas vastavalt märgitud."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Sõrmejäljed on erinevad"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Palun kontrolli, et sa kindlasti võrdleid õigeid sõrmejälgi. Kui sõrmejäljed "
+"siiski ei klapi, siis võib %s kasutajakonto olla rääderdatud ja sa peaksid "
+"sellise võtme lubamisest keelduma."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Verifitseeri võtme sõrmejälge"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Võrdle seda sõrmejälge tollega, mida näidatakse teise osapoole seadmes."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Keeldu võtme kasutamisest"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Sellega sa keelad krüptitud suhtluse sinu vestluspartneri seadmega, mis "
+"kasutab seda krüptovõtit."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Nõustu võtme kasutamisega"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Sellega sa lubad krüptitud suhtluse sinu vestluspartneri seadmega, mis "
+"kasutab seda krüptovõtit."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "See krüptovõti on praegu %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "tunnustatud"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"See tähendab, et %s võib teda kasutada krüptitud sõnumite saatmisel ja "
+"vastuvõtmisel."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "verifitseeritud"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+"Lisaks oled sa kontrollinud, et ta vastab krüptovõtmele teise osapoole "
+"seadmes."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "keelatud"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"See tähendab, et %s ei saa teda kasutada sinu krüptitud sõnumite lugemisel "
+"ning ka sina ei näe selle võtmega krüptitud sõnumeid."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Sa ei näe %s krüptitud sõnumeid seadmetest, mis kasutavad seda krüptovõtit. "
+"Ja teistpidi pole ka seal seadmes võimalik lugeda sinu krüptitud sõnumeid."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Sa saad nüüd vahetada krüptitud sõnumeid %s seadmetega, kus on kasutusel see "
+"krüptovõti."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Halda"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Sellel kasutajal on uusi seadmeid"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "Pead otsustama OMEMO-põhise usalduse osas"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Kas sa lisasid uue seadme kasutajakontole %s?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO kasutamine vaikimisi"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Kasuta OMEMO krüptimist uute vestluste puhul"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Krüpti uute seadmete jaoks"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Krüpti automaatselt selle kasutaja uute seadmete puhul."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Uued krüptovõtmed"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr "Sinu muude seadmete uute krüptovõtmetega nõustutakse automaatselt."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "See seade"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Muu seade"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Seade"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Tunnustatud"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Keelatud"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Verifitseeritud"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Uus seade"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Igal seadmel on oma OMEMO-võti. Sõnumeid on võimalik dekrüptida vaid "
+"konkreetse sihtvõtme jaoks. Sõnumeid on võimalik krüptida vaid seadmete "
+"jaoks, millega oled nõustunud."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "OMEMO võtmehaldus"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d OMEMO seade"
+#~ msgstr[1] "%d OMEMO seadet"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Nõustu uute võtmetega automaatselt"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr "Sa nõustud selle kasutaja uute krüptovõtmetega automaatselt."
+
+#~ msgid "Own key"
+#~ msgstr "Oma krüptovõti"
+
+#~ msgid "Associated keys"
+#~ msgstr "Seotud krüptovõtmed"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Mitteaktiivsed krüptovõtmed"
+
+#~ msgid "Unused"
+#~ msgstr "Kasutamata"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Pärime GnuPG andmekogust"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "Teata võtmest"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "GnuPG viga"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Võtmeid ei leidu. Palun loo!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Pole kasutusel"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Võtit ei leidu võtmerõngas"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Sõrmejälg"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1093,7 +1404,7 @@ msgstr "Logi sisse"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Turvalise ühendus loomine ei õnnestunud"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Tagasi"
diff --git a/main/po/eu.po b/main/po/eu.po
index 7d2eac49..857d0e34 100644
--- a/main/po/eu.po
+++ b/main/po/eu.po
@@ -18,6 +18,417 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.15-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s erabiltzaileak fidagarritasun gutxiko gailu bat erabiltzen egon da. Ez "
+"duzu mezurik ikusiko konfiantza ematen ez dizuten gailuengandik."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Gailuak kudeatu"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s erabiltzailea ez da gailu honetaz fidatzen. Honek mezu batzuk gal "
+"ditzakezula esan nahi du."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Gakoa kudeatu"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Hatz marka konparatu, hizkiz hizki, zure kontaktuaren gailuan ageri "
+"denarekin."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Hatz markak ez datoz bat"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Hatz markak bat datoz"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Baieztatu"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Gakoa egiaztatu"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"%s erabiltzaileak etorkizunean gako hau erabiltzen duen gailutik bidalitako "
+"mezuak nabarmenduko dira txat leihoan."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Hatz markak ez datoz bat"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Mesedez egiaztatu ezazu hatz marka egokia konparatzen ari zarela. Hatz "
+"markak bat ez badatoz baliteke %s(e)ren kontua arriskuan egotea eta gako hau "
+"ez onartzea kontuan hartu beharko zenuke."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Gakoaren hatz marka egiaztatu"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Konpara ezazu gako honen hatz marka kontaktuaren gailuan agertzen den hatz "
+"markarekin."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Gakoa ukatu"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Enkriptatutako komunikazioa blokeatu gako hau erabiltzen duen kontaktuaren "
+"gailuarekin."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Gakoa onartu"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Enkriptatutako komunikazioa baimendu gako hau erabiltzen duen kontaktuaren "
+"gailuarekin."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Gako hau %s dago une honetan."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "onartuta"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Horrek esan nahi du %s-ek erabil dezakeela mezu zifratuak jasotzeko eta "
+"bidaltzeko."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "egiaztatuta"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+"Gainera zure kontaktuaren gailuan ageri den gakoarekin bat datorrela "
+"egiaztatu da."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "ukatuta"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Honek esan nahi du %s erabiltzaileak ezin duela erabili zure mezuak "
+"deszifratzeko, eta zuk ez dituzula gako honekin enkriptatutako mezuak "
+"ikusiko."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Ez dituzu ikusiko gako hau erabiltzen duen %s kontaktuaren gailutik "
+"igorritako mezuak. Era berean, hemendik aurrera gailu horrek ez da zure "
+"mezuak deszifratzeko gai izango."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Gako hau erabiltzen duen %s kontaktuaren gailuarekin enkriptatutako mezuak "
+"elkar-trukatzeko gai izango zara."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Kudeatu"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Kontaktu honek gailu berriak ditu"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "OMEMO konfiantza erabakia behar da"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Gailu berri gehitu duzu %s konturako?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Gako berriak"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Zure beste gailuen enkriptatze gako berriak onartuak izango dira "
+"automatikoki."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Onartuta"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Ukatuta"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Egiaztatuta"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr ""
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "OMEMO gakoen kudeaketa"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "OMEMO gailu %d"
+#~ msgstr[1] "%d OMEMO gailu"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Gako berriak automatikoki onartu"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr ""
+#~ "Kontaktu honen enkriptatze gako berriak onartuak izango dira automatikoki."
+
+#~ msgid "Own key"
+#~ msgstr "Norberaren gakoa"
+
+#~ msgid "Associated keys"
+#~ msgstr "Lotutako gakoak"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Gako ez aktiboak"
+
+#~ msgid "Unused"
+#~ msgstr "Ez erabilita"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Norberaren hatz marka"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Lehen konexioan sortuko da"
+
+#~ msgid "Not matching"
+#~ msgstr "Ez datoz bat"
+
+#~ msgid "Matching"
+#~ msgstr "Bat datoz"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "highlighted accordingly in the chat window."
+#~ msgstr ""
+#~ "Egiaztatu ondoren, %s(e)k gako honekin etorkizunean bidalitako mezu "
+#~ "guztiak behar bezala nabarmenduko dira txat leihoan."
+
+#~ msgid ""
+#~ "Stop accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "Utzi gako hau onartzeari lotuta dagoen kontaktuarekin hitz egiten duzun "
+#~ "bitartean."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact"
+#~ msgstr ""
+#~ "Hasi gako hau onartzen lotuta dagoen kontaktuarekin hitz egiten duzun "
+#~ "bitartean"
+
+#~ msgid ""
+#~ "This means it cannot be used by %s to receive messages, and any messages "
+#~ "sent by it will be ignored."
+#~ msgstr ""
+#~ "Honek esan nahi du %s(e)k ezin duela gakoa mezuak jasotzeko erabili, eta "
+#~ "berak bidalitako edozein mezu alde batera utziko da."
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "ignored and none of your messages will be readable using this key."
+#~ msgstr ""
+#~ "Egiaztatu ondoren, etorkizunean %s(e)k gako hau erabiliz bidalitako "
+#~ "edozein mezu alde batera utziko da eta zure mezuetako bat ere ez da "
+#~ "irakurgarria izango gako hau erabiliz."
+
+#~ msgid ""
+#~ "Once confirmed this key will be usable by %s to receive and send messages."
+#~ msgstr ""
+#~ "Egiaztatu ondoren %s(e)k gako hau mezuak jaso eta bidaltzeko erabili ahal "
+#~ "izango du."
+
+#~ msgid ""
+#~ "When this contact adds new encryption keys to their account, "
+#~ "automatically accept them."
+#~ msgstr ""
+#~ "Kontaktu honek enkriptatzeko gako berriak bere kontura gehitzen "
+#~ "dituenean, automatikoki onartu."
+
+#~ msgid ""
+#~ "When you add new encryption keys to your account, automatically accept "
+#~ "them."
+#~ msgstr ""
+#~ "Zure kontura enkriptazio gako berriak gehitzen dituzunean, automatikoki "
+#~ "onartu."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "Hasi gako hau onartzen lotuta dagoen kontaktuarekin hitz giten duzun "
+#~ "bitartean."
+
+#~ msgid "Reject Key"
+#~ msgstr "Gakoa baztertu"
+
+#~ msgid "Accept Key"
+#~ msgstr "Gakoa onartu"
+
+#~ msgid "Unknown device (0x%.8x)"
+#~ msgstr "Gailu ezezaguna (0x%.8x)"
+
+#~ msgid "Other devices"
+#~ msgstr "Beste gailuak"
+
+#~ msgid "- None -"
+#~ msgstr "- Bat ere ez -"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "GnuPGri galdetzen"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "GnuPG akatsa"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Ez dago gakorik eskuragarri. Sortu ezazu bat!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr ""
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Gakorik ez giltzatakoan"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr ""
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Gakoa argitaratzea ezgaituta"
+
+#~ msgid "Select key"
+#~ msgstr "Gakoa hautatu"
+
+#~ msgid "Loading…"
+#~ msgstr "Kargatzen…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1095,7 +1506,7 @@ msgstr ""
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Ezin izan da konexio seguru bat ezarri"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Atzera"
diff --git a/main/po/fa.po b/main/po/fa.po
index f810fdad..5b8f40ae 100644
--- a/main/po/fa.po
+++ b/main/po/fa.po
@@ -17,6 +17,329 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 5.15-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s از دستگاهی استفاده می‌کند که اعتبارش را تأیید نکرده‌اید، پیام‌ها از چنین "
+"دستگاه‌هایی قابل مشاهده نیستند."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "مدیریت دستگاه‌ها"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s اعتبار این دستگاه را تأیید نکرده است. این یعنی، ممکن است پیام‌هایی را "
+"دریافت نکنید/نکرده باشید."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "مدیریت کلید"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"اثرانگشت را با آنی که در دستگاه مخاطبتان است مقایسه کنید، کاراکتر به کاراکتر."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "اثرانگشت‌ها متفاوت‌اند"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "اثرانگشت‌ها تطابق دارند"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "تأیید"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "تأیید صحت کلید"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"پیام‌های ارسالی توسط %s از دستگاهی که از این کلید استفاده می‌کند، مطابق آن در "
+"پنجرهٔ گپ مشخص می‌شوند."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "اثرانگشت‌ها تطابق ندارند"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"لطفاً مطمئن شوید که در حال مقایسهٔ اثرانگشت صحیح هستید. اگه اثرانگشت‌ها تطابق "
+"نداشته باشند، ممکن است اطلاعات حساب %s لو رفته باشد و باید رد کردن این کلید "
+"را در نظر بگیرید."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "تأیید صحت اثرانگشت کلید"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"اثرانگشت این کلید را با اثرانگشت نمایش‌داده‌شده در دستگاه مخاطب مقایسه کنید."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "رد کردن کلید"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"ارتباط رمزگذاری‌شده را با دستگاهی که از این کلید استفاده می‌کند، مسدود کنید."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "پذیرش کلید"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"اجازهٔ ارتباط رمزگذاری‌شده را با دستگاهی که از این کلید استفاده می‌کند، بدهید."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "این کلید در حال حاضر %s است."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "پذیرفته شده"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"این یعنی %s می‌تواند از آن برای ارسال و دریافت پیام رمزگذاری‌شده استفاده کند."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "تأیید صحت شده"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr "به علاوه تأیید شده که با کلید دستگاه مخاطب تطابق دارد."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "رد شده"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"این یعنی %s نمی‌تواند با آن پیام‌های شما را رمزگشایی کند، و شما پیام‌های "
+"رمزگذاری‌شده با آن را نخواهید دید."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"شما پیام‌های رمزگذاری‌شده را از آن دستگاهِ %s که از این کلید استفاده می‌کند، "
+"نخواهید دید. از سوی دیگر، آن دستگاه نیز پس از این قادر به رمزگشایی پیام‌های "
+"شما نخواهد بود."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"شما قادر به تبادل پیام‌های رمزگذاری‌شده با آن دستگاهِ %s که از این کلید استفاده "
+"می‌کند، هستید."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "مدیریت"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "این مخاطب دستگاه‌های جدیدی دارد"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "تصمیم اعتبار اُمیمو لازم است"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "آیا برای حساب %s یک دستگاه جدید اضافه کرده‌اید؟"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "فعال بودن اُمیمو به صورت پیشفرض"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "فعال کردن رمزگذاری اُمیمو برای مکالمات جدید"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "رمزگذاری با دستگاه های جدید"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "رمزگذاری خودکار با دستگاه های جدید این مخاطب."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "کلیدهای جدید"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"کلیدهای رمزگذاری جدید از دستگاه‌های دیگرتان به طور خودکار پذیرفته می‌شوند."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "این دستگاه"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "دستگاه دیگر"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "دستگاه"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "پذیرفته شده"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "رد شده"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "تأیید صحت شده"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "دستگاه جدید"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"هر دستگاه کلید اُمیمو خود را دارد. پیام ها تنها زمانی می توانند توسط یک "
+"دستگاه رمزگشایی شوند که با کلید همان دستگاه رمزگذاری شده باشند. پیام ها فقط "
+"برای دستگاه های پذیرفته شده رمزگذاری می شوند."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "مدیریت کلید اُمیمو"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d دستگاه OMEMO"
+#~ msgstr[1] "%d دستگاه OMEMO"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "پذیرش خودکار کلیدهای جدید"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr "کلیدهای جدید این مخاطب به طور خودکار پذیرفته می‌شوند."
+
+#~ msgid "Own key"
+#~ msgstr "کلید خود"
+
+#~ msgid "Associated keys"
+#~ msgstr "کلیدهای مرتبط"
+
+#~ msgid "Inactive keys"
+#~ msgstr "کلیدهای غیرفعال"
+
+#~ msgid "Unused"
+#~ msgstr "استفاده نشده"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "اثرانگشت خود"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "در اولین اتصال تولید خواهد شد"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "پرس‌و‌جوی گنوپی‌جی"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "کلید اعلام"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "خطا در گنوپی‌جی"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "هیچ کلیدی در دسترس نیست. یکی تولید کنید!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "غیرفعال شده"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "کلید در دسته‌کلید نیست"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "شناسه"
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "انشار کلید غیرفعال‌شده"
+
+#~ msgid "Select key"
+#~ msgstr "انتخاب کلید"
+
+#~ msgid "Loading…"
+#~ msgstr "در حال بارگذاری…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1093,7 +1416,7 @@ msgstr "ورود"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "اتصال ایمن برقرار نشد"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "بازگشت"
diff --git a/main/po/fi.po b/main/po/fi.po
index 9e16a03e..9c40ea83 100644
--- a/main/po/fi.po
+++ b/main/po/fi.po
@@ -18,6 +18,331 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.16-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s on käyttänyt laitetta, johon ei luoteta. Et näe viestejä laitteilta, "
+"joihin et luota."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Hallitse laitteita"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s ei luota tähän laitteeseen. Sen seurauksena viestejä saattaa jäädä "
+"puuttumaan."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Hallitse avainta"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Vertaa sormenjälkeä merkki kerrallaan vastapuolen laitteella näkyvään "
+"sormenjälkeen."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Sormenjäljet eroavat"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Sormenjäljet vastaavat"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Vahvista"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Vahvista avain"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Tulevat viestit käyttäjän %s laitteelta, joka käyttää tätä avainta, "
+"korostetaan asianmukaisesti keskusteluikkunassa."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Sormenjäljet eivät vastaa toisiaan"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Varmista, että vertaat oikeita sormenjälkiä. Jos sormenjäljet eivät täsmää, "
+"käyttäjän %s tili saattaa olla vaarantunut, ja sinun tulisi hylätä tämä "
+"avain."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Vahvista avaimen sormenjälki"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Vertaa tämän avaimen sormenjälkeä vastapuolen laitteella näkyvään "
+"sormenjälkeen."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Hylkää avain"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Estä salattu yhteydenpito käyttäjän tätä avainta käyttävän laitteen kanssa."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Hyväksy avain"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Salli salattu yhteydenpito käyttäjän tätä avainta käyttävän laitteen kanssa."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Tämä avain on tällä hetkellä %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "hyväksytty"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Se tarkoittaa, että %s voi käyttää avainta salattujen viestien "
+"vastaanottamiseen ja lähettämiseen."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "vahvistettu"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr "Lisäksi sen on vahvistettu vastaavan vastapuolen laitteen avainta."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "hylätty"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Se tarkoittaa, ettei %s voi käyttää avainta viestien salauksen purkamiseksi, "
+"etkä sinä näe tällä avaimella salattuja viestejä."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Et näe käyttäjän %s laitteelta, joka käyttää tätä avainta, lähetettyjä "
+"salattuja viestejä. Vastavuoroisesti kyseinen laite ei pysty enää purkamaan "
+"viestiesi salausta."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Pystyt viestimään salatuilla viesteillä käyttäjän %s tätä avainta käyttävän "
+"laitteen kanssa."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Hallitse"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Tällä henkilöllä on uusia laitteita"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "OMEMO-luottamuspäätös vaaditaan"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Lisäsitkö uuden laitteen tilille %s?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO oletuksena"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Käytä OMEMO-salausta uusissa keskusteluissa"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Salaa uusille laitteille"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Salaa automaattisesti tämän henkilön uusille laitteille."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Uudet avaimet"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr "Uudet salausavaimet muilta laitteiltasi hyväksytään automaattisesti."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Tämä laite"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Toinen laite"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Laite"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Hyväksytty"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Hylätty"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Vahvistettu"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Uusi laite"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Jokaisella laitteella on oma OMEMO-avain. Viestien salauksen voi purkaa "
+"laitteella vain jos ne käyttävät sen avainta. Viestit salataan vain "
+"hyväksytyille laitteille."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "OMEMO-avainhallinta"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d OMEMO-laite"
+#~ msgstr[1] "%d OMEMO-laitetta"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Hyväksy uudet avaimet automaattisesti"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr "Uudet salausavaimet tältä henkilöltä hyväksytään automaattisesti."
+
+#~ msgid "Own key"
+#~ msgstr "Oma avain"
+
+#~ msgid "Associated keys"
+#~ msgstr "Liittyvät avaimet"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Epäaktiiviset avaimet"
+
+#~ msgid "Unused"
+#~ msgstr "Käyttämätön"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Oma sormenjälki"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Luodaan ensimmäisellä yhdistyskerralla"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Kysellään GnuPG:tä"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "Ilmoita avain"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Virhe GnuPG:ssä"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Ei avaimia saatavilla. Luo avain!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Pois käytöstä"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Avain ei ole avainnipussa"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Sormenjälki"
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Avaimen julkaiseminen pois käytöstä"
+
+#~ msgid "Select key"
+#~ msgstr "Valitse avain"
+
+#~ msgid "Loading…"
+#~ msgstr "Ladataan…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1094,7 +1419,7 @@ msgstr "Kirjaudu"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Salattua yhteyttä ei voitu muodostaa"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Takaisin"
diff --git a/main/po/fr.po b/main/po/fr.po
index 1501ddf6..b34deedd 100644
--- a/main/po/fr.po
+++ b/main/po/fr.po
@@ -18,6 +18,411 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 5.15-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s a utilisé un appareil inconnu. Vous ne verrez pas les messages provenant "
+"d'appareils en lesquels vous n’avez pas confiance."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Gérer les appareils"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s n’accorde pas sa confiance à cet appareil. Cela signifie que vous manquez "
+"peut-être des messages."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Gérer la clé"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Comparez l’empreinte, lettre par lettre, avec celle affichée sur l'appareil "
+"de votre contact."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "L’empreinte ne correspond pas"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "L’empreinte correspond"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Confirmer"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Vérifier la clé"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Les prochains messages envoyés par %s depuis l'appareil utilisant cette clé "
+"seront mis en valeur dans la fenêtre de discussion."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Les empreintes ne correspondent pas"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Veuillez vérifier que vous comparez la bonne empreinte. Si les empreintes ne "
+"correspondent pas, le compte de %s pourrait être compromis et vous devriez "
+"envisager de rejeter cette clé."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Vérifier l’empreinte de cette clé"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Comparez cette empreinte avec celle affichée sur l'appareil du contact."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Rejeter cette clé"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Bloquer les communications chiffrées avec l'appareil du contact qui utilise "
+"cette clé."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Accepter la clé"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Autoriser les communications chiffrées avec l'appareil du contact qui "
+"utilise cette clé."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Cette clé est actuellement %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "acceptée"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Cela signifie qu’elle peut être utilisée par %s pour recevoir et envoyer des "
+"messages."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "vérifiée"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+"De plus, vous avez précédemment vérifié que cette clé coïncide avec celle de "
+"l'appareil de ce contact."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "rejetée"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Cela signifie qu’elle ne peut pas être utilisée par %s pour déchiffrer vos "
+"messages, et que vous ne verrez pas les messages chiffrés avec."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Vous ne verrez pas les messages de %s provenant de l'appareil qui utilise "
+"cette clé. En retour, ce client ne pourra plus déchiffrer vos messages."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Vous pourrez échanger des messages chiffrés avec l'appareil de %s qui "
+"utilise cette clé."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Gérer"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Ce contact a de nouveaux appareils"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "Décision de confiance OMEMO requise"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Avez-vous ajouté un nouvel appareil pour le compte %s ?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO par défaut"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Activer le chiffrement OMEMO pour les nouvelles discussions"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Chiffrer pour les nouveaux appareils"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Chiffrer automatiquement pour les nouveaux appareils de ce contact."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Nouvelles clés"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Les nouvelles clés de chiffrement de vos autres appareils seront acceptées "
+"automatiquement."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Cet appareil"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Autre appareil"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Appareil"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Acceptée"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Rejetée"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Vérifiée"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Nouvel appareil"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Chaque appareil a sa propre clé OMEMO. Les messages ne peuvent être "
+"déchiffrés par un appareil que s’ils sont chiffrés pour sa clé. Les messages "
+"sont chiffrés uniquement pour les appareils acceptés."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "Gestion des clés OMEMO"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d appareil OMEMO"
+#~ msgstr[1] "%d appareils OMEMO"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Accepter automatiquement les nouvelles clés"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr ""
+#~ "Les nouvelles clés de chiffrement de ce contact seront acceptées "
+#~ "automatiquement."
+
+#~ msgid "Own key"
+#~ msgstr "Clé publique personnelle"
+
+#~ msgid "Associated keys"
+#~ msgstr "Clés associées"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Clés inactives"
+
+#~ msgid "Unused"
+#~ msgstr "Inutilisée"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Empreinte publique"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Sera générée lors de la première connexion"
+
+#~ msgid "Your contact"
+#~ msgstr "Votre contact"
+
+#~ msgid "Not matching"
+#~ msgstr "Ne correspond pas"
+
+#~ msgid "Matching"
+#~ msgstr "Correspond"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "highlighted accordingly in the chat window."
+#~ msgstr ""
+#~ "Après confirmation, tout futur message envoyé par %s utilisant cette clé "
+#~ "sera surligné dans la fenêtre de conversation."
+
+#~ msgid ""
+#~ "Stop accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "Arrêter d'accepter cette clé durant la communication avec son contact "
+#~ "associé."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact"
+#~ msgstr "Accepter cette clé durant la communication avec son contact associé"
+
+#~ msgid ""
+#~ "This means it cannot be used by %s to receive messages, and any messages "
+#~ "sent by it will be ignored."
+#~ msgstr ""
+#~ "Cela signifie qu'elle ne peut pas être utilisée par %s pour recevoir des "
+#~ "messages, et que les messages envoyés seront ignorés."
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "ignored and none of your messages will be readable using this key."
+#~ msgstr ""
+#~ "Après confirmation, tout futur message envoyé par %s utilisant cette clé "
+#~ "sera ignoré et vos messages ne seront pas lisibles en utilisant cette clé."
+
+#~ msgid ""
+#~ "Once confirmed this key will be usable by %s to receive and send messages."
+#~ msgstr ""
+#~ "Après confirmation, cette clé sera utilisable par %s pour recevoir et "
+#~ "envoyer des messages."
+
+#~ msgid ""
+#~ "When this contact adds new encryption keys to their account, "
+#~ "automatically accept them."
+#~ msgstr ""
+#~ "Quand ce contact ajoute une nouvelle clé de chiffrement à son compte, "
+#~ "l'accepter automatiquement."
+
+#~ msgid ""
+#~ "When you add new encryption keys to your account, automatically accept "
+#~ "them."
+#~ msgstr ""
+#~ "Accepter automatiquement les nouvelles clés de chiffrements que vous "
+#~ "ajoutez à votre compte."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "Accepter cette clé durant la communication avec son contact associé."
+
+#~ msgid "Unknown device (0x%.8x)"
+#~ msgstr "Périphérique inconnu (0x%.8x)"
+
+#~ msgid "Other devices"
+#~ msgstr "Autres périphériques"
+
+#~ msgid "- None -"
+#~ msgstr "- Aucun -"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Interrogation de GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "Annoncer la clé"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Erreur dans GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Aucune clé n’est disponible. Générez-en une !"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Désactivé"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "La clé n’est pas dans le trousseau"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Empreinte"
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "La publication des clés est désactivée"
+
+#~ msgid "Select key"
+#~ msgstr "Choix d’une clé"
+
+#~ msgid "Loading…"
+#~ msgstr "Chargement…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1097,7 +1502,7 @@ msgstr "Se connecter"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Impossible d’établir une connexion sécurisée"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Retour"
diff --git a/main/po/fur.po b/main/po/fur.po
index 93ad7a68..092e6277 100644
--- a/main/po/fur.po
+++ b/main/po/fur.po
@@ -17,6 +17,278 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.17-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"Chel pandolo di %s al doprave un tramai che no si fidin. No tu iodarâs "
+"mesagjos di tramais che no si po fidasi."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Gjestis i tramais"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"Chel pandolo di %s no si fide di te. Cuindi tu podaresis pierditi mesagjos."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Dai po gjestis las clâs"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Controle las improntes digitâl, ogni latare, cun chês dal contat sul tramai."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Improntes difarent gnogno"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Brao, las improntes son compagnes"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Va ben"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Controlant la clâf"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"I mesagjos di chel taconele di %s sal dopre il stes tramai cun chist clâf a "
+"saran evidensiâs."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Las improntes no son compagnes totoloto"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Controle ben taconele. Las improntes no coincidin, chel borson di %s al "
+"podares no sei lui e tu varesis di mandalu affnacûl lui e la so clâf."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Controle la clâf dalas improntes digitâl"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr "Controle las improntes di chiste clâf cun chês tai contas dal tramai."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Mande affnacûl lui e la clâf"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr "Smet di cifrà la comunicasion cul pandolo cal dopre chiste clâf."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Va ben, dami la clâf"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr "Permet la comunicasion cifrade cul pandolo cal dopre chiste clâf."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "La clâf a è %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "acetade"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr "A voul dì ca si po doprà %s par ricevi e mandà mesagjos cifrâs."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "controlade"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr "In pui si è controlâtche la clâf a sevi che dal contat sul tramai."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "mandade indavour"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Al voul dì che %s nola po doprà par decifrà i toi mesagjos, e no tu iodarâs "
+"i mesagjos cifrâs cun che lì."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"No tu iodarâs i mesagjos cifrâs di %s cal dopre chiste clâf. E lui nol "
+"capirà un cai di ce che tu i mandis."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Tu podarâs mandà mesagjos cifrâs cul tramai di %s cal dopre chiste clâf."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Gjestis"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Chist gnogno al à un gnouf tramai"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "Bisugne acetà o no OMEMO"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Atu giontât un gnof tramai par il profîl %s?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO tal met io"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Permet cifradure OMEMO par las gnoves conversasions"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Cifre par i gnoufs tramais"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Cifres su dut par chistu taconele."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Gnoves clâs"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Las gnoves clâs par la cifradure di atris tramais a saran acetades cence "
+"diti un caj."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Chist tramai"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Atri tramai"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Tramai"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "acetade"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Mandât affancûl"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "controlade"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Gnouf tramai"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Ogni tramai al'à la so clâf OMEMO. I mesagjos a podin sei decifrâs nome dal "
+"tramai cun che clâf. E nome su tramais acetâs."
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Cirint su GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "Clâf par scomencià"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "No si cumbine cun GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "No son clâs diomadone. Fascint une!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Disabilitât"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Ma diopoi, la clâf no è tal parteclâs"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Improntes digitâl"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1093,7 +1365,7 @@ msgstr "Entre"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "No cumbini a fa un colegament sigûr"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Indavour"
diff --git a/main/po/gl.po b/main/po/gl.po
index eadbff88..abf1db55 100644
--- a/main/po/gl.po
+++ b/main/po/gl.po
@@ -18,6 +18,414 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.15-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s estivo utilizando un dispositivo non verificado. Non verás mensaxes "
+"procedentes de dispositivos nos que non confiaches."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Xestionar dispositivos"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s non mostrou confianza neste dispositivo. Porén, poderías botar a faltar "
+"algunha mensaxe."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Xestionar Chave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Comparar impresión dixital, caracter a caracter, coa mostrada no dispositivo "
+"do teu contacto."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "As impresións dixitais son diferentes"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "As impresións coinciden"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Confirmar"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Verificar chave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"As mensaxes futuras enviadas por %s desde o dispositivo que usa esta chave "
+"será resaltadas na xanela da conversa."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Non coinciden as impresións dixitais"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Comproba que estás comparando a impresión correcta. Se as impresións "
+"dixitais non coinciden, a conta de %s podería estar comprometida e deberías "
+"considerar rexeitar esta chave."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Verificar a impresión dixital da chave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Compara a impresión dixital desta chave coa impresión mostrada no "
+"dispositivo do contacto."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Rexeitar chave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Bloquear a comunicación cifrada co dispositivo do contacto que usa esta "
+"chave."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Aceptar chave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Permitir a comunicación cifrada co dispositivo do contacto que usa esta "
+"chave."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Esta chave está actualmente %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "aceptada"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Esto significa que pode ser utilizada por %s para recibir e enviar mensaxes "
+"cifradas."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "verficada"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+"Adicionalmente foi verificada e coincide coa chave no dispositivo do "
+"contacto."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "rexeitada"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Esto significa que non pode ser usada por %s para descifrar as túas "
+"mensaxes, e non verás as mensaxes cifradas con ela."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Non verás as mensaxes cifradas desde o dispositivo de %s que usa esta chave. "
+"De xeito recíproco, ese dispositivo non poderá descifrar as túas."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Poderás intercambiar mensaxes cifradas co dispositivo de %s que usa esta "
+"chave."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Xestionar"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Este contacto ten novos dispositivos"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "Precisa decidir sobre a confianza OMEMO"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Engadiches un novo dispositivo para a conta %s?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO por defecto"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Activar cifraxe OMEMO para as novas conversas"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Cifrar para novos dispositivos"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Cifrar automaticamente para os novos dispositivos de este contacto."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Novas chaves"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Aceptaranse de xeito automático novas chaves de cifraxe do teus dispositivos."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Este dispositivo"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Outro dispositivo"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Dispositivo"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Aceptada"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Rexeitada"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Verificada"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Novo dispositivo"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Cada dispositivo ten a súa propia clave OMEMO. As mensaxes só se poden "
+"descifrar se están cifradas coas claves deles. As mensaxes só se cifran para "
+"os dispositivos aceptados."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "Xestión das chaves OMEMO"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d dispositivo OMEMO"
+#~ msgstr[1] "%d dispositivos OMEMO"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Aceptar automáticamente novas chaves"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr ""
+#~ "Serán aceptadas de xeito automático novas chaves de cifraxe deste "
+#~ "contacto."
+
+#~ msgid "Own key"
+#~ msgstr "Chave propia"
+
+#~ msgid "Associated keys"
+#~ msgstr "Chaves asociadas"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Chaves non activas"
+
+#~ msgid "Unused"
+#~ msgstr "Sen usar"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Impresión dixital propia"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Crearase na primeira conexión"
+
+#~ msgid "Your contact"
+#~ msgstr "O teu contacto"
+
+#~ msgid "Not matching"
+#~ msgstr "Non coinciden"
+
+#~ msgid "Matching"
+#~ msgstr "Coinciden"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "highlighted accordingly in the chat window."
+#~ msgstr ""
+#~ "Unha vez confirmada, as futuras mensaxes enviadas por %s utilizando esta "
+#~ "chave será resaltada acorde na ventá de conversa."
+
+#~ msgid ""
+#~ "Stop accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "Deixar de aceptar esta chave durante a comunicación co contacto asociado "
+#~ "a ela."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact"
+#~ msgstr ""
+#~ "Comezar aceptando esta chave durante a comunicación co seu contacto "
+#~ "asociado"
+
+#~ msgid ""
+#~ "This means it cannot be used by %s to receive messages, and any messages "
+#~ "sent by it will be ignored."
+#~ msgstr ""
+#~ "Esto significa que non pode ser utilizada por %s para recibir mensaxes, e "
+#~ "calquera mensaxe enviada con ela será ignorada."
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "ignored and none of your messages will be readable using this key."
+#~ msgstr ""
+#~ "Unha vez confirmada, calquera mensaxe futura enviada por %s utilizando "
+#~ "esta chave será ignorada e ningunha das súas mensaxes serán lexibles "
+#~ "usando esta chave."
+
+#~ msgid ""
+#~ "Once confirmed this key will be usable by %s to receive and send messages."
+#~ msgstr ""
+#~ "Unha vez confirmada esta chave será utilizable por %s para recibir e "
+#~ "enviar mensaxes."
+
+#~ msgid ""
+#~ "When this contact adds new encryption keys to their account, "
+#~ "automatically accept them."
+#~ msgstr ""
+#~ "Cando este contacto engade novas chaves de cifrado a súa conta, aceptalas "
+#~ "automáticamente."
+
+#~ msgid ""
+#~ "When you add new encryption keys to your account, automatically accept "
+#~ "them."
+#~ msgstr ""
+#~ "Cando engades novas chaves de cifrado a túa conta, aceptalas "
+#~ "automáticamente."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "Comezar a aceptar esta chave nas comunicacións co contacto asociado a ela."
+
+#~ msgid "Unknown device (0x%.8x)"
+#~ msgstr "Dispositivo descoñecido (0x%.8x)"
+
+#~ msgid "Other devices"
+#~ msgstr "Outros dispositivos"
+
+#~ msgid "- None -"
+#~ msgstr "-Nada-"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Consultando a GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "Publicar clave"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Fallo en GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Sen chaves dispoñibles. Crear unha!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Desactivado"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "A chave non está no anel de chaves"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Impresión dixital"
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Desactivada a publicación de chaves"
+
+#~ msgid "Select key"
+#~ msgstr "Escolle chave"
+
+#~ msgid "Loading…"
+#~ msgstr "Cargando…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1095,7 +1503,7 @@ msgstr "Acceder"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Non se estableceu unha conexión segura"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Atrás"
diff --git a/main/po/hi.po b/main/po/hi.po
index a0303df0..ff9fbd71 100644
--- a/main/po/hi.po
+++ b/main/po/hi.po
@@ -17,6 +17,261 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 5.10.3-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr ""
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr ""
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr ""
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1093,7 +1348,7 @@ msgstr ""
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "सुरक्षित कनेक्शन स्थापित नहीं किया जा सका"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "पीछे"
diff --git a/main/po/hu.po b/main/po/hu.po
index cb115f53..ea96e284 100644
--- a/main/po/hu.po
+++ b/main/po/hu.po
@@ -18,6 +18,346 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.16-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s nem megbízható eszközt használt. Nem fogja látni az olyan eszközökről "
+"érkező üzeneteket, amelyekben nem bízik meg."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Eszközök kezelése"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s nem bízik meg ebben az eszközben. Ez azt jelenti, hogy lemaradhat néhány "
+"üzenetről."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Kulcs kezelése"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Hasonlítsa össze az ujjlenyomatot karakterről karakterre a partnere eszközén "
+"láthatóval."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Az ujjlenyomatok eltérnek"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Az ujjlenyomatok egyeznek"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Megerősítés"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Kulcs ellenőrzése"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"%s által az ezt a kulcsot használó eszközről küldött jövőbeli üzenetek ennek "
+"megfelelően lesznek kiemelve a csevegésablakban."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Az ujjlenyomatok nem egyeznek"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Ellenőrizze, hogy a megfelelő ujjlenyomatot hasonlítja-e össze. Ha az "
+"ujjlenyomatok nem egyeznek, akkor %s fiókja veszélybe kerülhetett, és "
+"fontolóra kellene vennie a kulcs elutasítását."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Kulcs ujjlenyomatának ellenőrzése"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Hasonlítsa össze ennek a kulcsnak az ujjlenyomatát a partner eszközén "
+"megjelenített ujjlenyomattal."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Kulcs elutasítása"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"A titkosított kommunikáció tiltása a partner eszközével, amely ezt a kulcsot "
+"használja."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Kulcs elfogadása"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"A titkosított kommunikáció engedélyezése a partner eszközével, amely ezt a "
+"kulcsot használja."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Ez a kulcs jelenleg %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "elfogadott"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Ez azt jelenti, hogy %s használhatja titkosított üzenetek fogadásához és "
+"küldéséhez."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "ellenőrzött"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr "Ezenkívül ellenőrizve lett, hogy a kulcs egyezik a partner eszközén."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "elutasított"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Ez azt jelenti, hogy %s nem használhatja az Ön üzeneteinek visszafejtésére, "
+"és Ön nem fogja látni az azzal titkosított üzeneteket."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Nem fogja látni %s azon eszközéről érkező titkosított üzeneteket, amely ezt "
+"a kulcsot használja. Fordítva, a másik eszköz nem lesz képes többé "
+"visszafejteni az Ön üzeneteit."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Ön képes lesz titkosított üzeneteket váltani %s azon eszközével, amely ezt a "
+"kulcsot használja."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Kezelés"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Ennek a partnernek új eszközei vannak"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "OMEMO megbízhatósági döntés szükséges"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Hozzáadott egy új eszközt a(z) %s fiókhoz?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO alapértelmezetten"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "OMEMO-titkosítás engedélyezése az új beszélgetésekhez"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Titkosítás az új eszközökre"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Automatikus titkosítás az ettől a partnertől származó új eszközökre."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Új kulcsok"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Az egyéb eszközeitől származó új titkosítási kulcsok automatikusan el "
+"lesznek fogadva."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Ez az eszköz"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Másik eszköz"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Eszköz"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Elfogadva"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Elutasítva"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Ellenőrizve"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Új eszköz"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Minden eszköznek saját OMEMO-kulcsa van. Egy eszköz csak akkor tudja "
+"visszafejteni az üzeneteket, ha azok a saját kulcsával lettek titkosítva. Az "
+"üzenetek csak az elfogadott eszközökre vannak titkosítva."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "OMEMO kulcskezelés"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d OMEMO-eszköz"
+#~ msgstr[1] "%d OMEMO eszköz"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Új kulcsok automatikus elfogadása"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr ""
+#~ "Az ettől a partnertől származó új titkosítási kulcsok automatikusan el "
+#~ "lesznek fogadva."
+
+#~ msgid "Own key"
+#~ msgstr "Saját kulcs"
+
+#~ msgid "Associated keys"
+#~ msgstr "Hozzárendelt kulcsok"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Inaktív kulcsok"
+
+#~ msgid "Unused"
+#~ msgstr "Nem használt"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Saját ujjlenyomat"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Az első kapcsolódáskor lesz előállítva"
+
+#~ msgid "Unknown device (0x%.8x)"
+#~ msgstr "Ismeretlen eszköz (0x%.8x)"
+
+#~ msgid "Other devices"
+#~ msgstr "További eszközök"
+
+#~ msgid "- None -"
+#~ msgstr "- Nincs -"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "A GnuPG lekérése"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "Kulcs bejelentése"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Hiba a GnuPG-ben"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Nincsenek elérhető kulcsok. Állítson elő egyet!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Letiltva"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "A kulcs nincs a kulcstartóban"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Ujjlenyomat"
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Kulcsközzététel letiltva"
+
+#~ msgid "Select key"
+#~ msgstr "Kulcs kiválasztása"
+
+#~ msgid "Loading…"
+#~ msgstr "Betöltés…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1097,7 +1437,7 @@ msgstr "Bejelentkezés"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Nem sikerült kiépíteni biztonságos kapcsolatot"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Vissza"
diff --git a/main/po/hy.po b/main/po/hy.po
index 1f560db7..0ff88fd9 100644
--- a/main/po/hy.po
+++ b/main/po/hy.po
@@ -17,6 +17,9 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 5.13\n"
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1096,6 +1099,7 @@ msgstr "Մուտք գործել"
msgid "Could not establish a secure connection"
msgstr "Հնարաւոր չէ հաստատել գաղտնի միացում"
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Հետ"
diff --git a/main/po/ia.po b/main/po/ia.po
index 85fd959e..743f41d0 100644
--- a/main/po/ia.po
+++ b/main/po/ia.po
@@ -16,6 +16,39 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr ""
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr ""
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1092,7 +1125,7 @@ msgstr ""
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr ""
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr ""
diff --git a/main/po/id.po b/main/po/id.po
index f8b80337..3362bf42 100644
--- a/main/po/id.po
+++ b/main/po/id.po
@@ -17,6 +17,335 @@ msgstr ""
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 5.16.1-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s telah menggunakan perangkat tidak dikenal. Anda tidak akan melihat pesan "
+"dari perangkat yang tidak Anda kenal."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Atur perangkat"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s tidak mengenali perangkat ini. Artinya, Anda mungkin kehilangan pesan."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Atur kunci"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Bandingkan sidik jari karakter demi karakter, dengan yang tampil di "
+"perangkat kontak Anda."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Sidik jari berbeda"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Sidik jari cocok"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Konfirmasi"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Verifikasi kunci"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Pesan mendatang yang dikirim oleh %s dari perangkat yang menggunakan kunci "
+"ini akan ditandai di halaman percakapan."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Sidik jari tidak cocok"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Harap Anda memverifikasi sidik jari dengan benar. Jika sidik jari tidak "
+"cocok, akun %s mungkin telah disusupi dan pertimbangkan untuk menolak kunci "
+"ini."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Verifikasi sidik jari kunci"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Bandingkan sidik jari kunci ini dengan sidik jari yang ditampilkan perangkat "
+"kontak."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Tolak kunci"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Blokir komunikasi terenkripsi dengan perangkat kontak yang menggunakan kunci "
+"ini."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Terima kunci"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Izinkan komunikasi terenkripsi dengan perangkat kontak yang menggunakan "
+"kunci ini."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Status kunci saat ini %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "diterima"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Artinya dapat digunakan oleh %s untuk menerima dan mengirim pesan "
+"terenkripsi."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "Terverifikasi"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr "Telah terverifikasi dengan mencocokkan kunci pada perangkat kontak."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "ditolak"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Artinya tidak dapat digunakan oleh %s untuk menguraikan pesan Anda, dan Anda "
+"tidak akan melihat pesan dienkripsi dengannya."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Anda tidak akan melihat pesan terenkripsi dari perangkat %s yang menggunakan "
+"kunci ini. Sebaliknya, perangkat itu tidak dapat lagi menguraikan pesan Anda."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Anda dapat bertukar pesan terenkripsi dengan perangkat %s yang menggunakan "
+"kunci ini."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Pengaturan"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Kontak memiliki perangkat baru"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "Memerlukan persetujuan atas OMEMO"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Apakah Anda menambahkan perangkat baru untuk akun %s?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO secara default"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Aktifkan enkripsi OMEMO untuk percakapan baru"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Enkripsi ke perangkat baru"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Enkripsi secara otomatis ke perangkat baru dari kontak ini."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Kunci baru"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Kunci enkripsi baru dari perangkat Anda yang lain akan diterima secara "
+"otomatis."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Perangkat ini"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Perangkat lain"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Perangkat"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Diterima"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Ditolak"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Terverifikasi"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Perangkat baru"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Setiap perangkat memiliki kunci OMEMO-nya sendiri. Pesan hanya dapat "
+"didekripsi oleh perangkat jika dienkripsi menggunakan kuncinya. Pesan hanya "
+"dienkripsi ke perangkat yang telah diterima."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "Pengaturan kunci OMEMO"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d OMEMO perangkat"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Otomatis mengkonfirmasi kunci baru"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr "Kunci enkripsi baru dari kontak ini akan diterima secara otomatis."
+
+#~ msgid "Own key"
+#~ msgstr "Kunci milik sendiri"
+
+#~ msgid "Associated keys"
+#~ msgstr "Kunci terkait"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Kunci non-aktif"
+
+#~ msgid "Unused"
+#~ msgstr "Tidak terpakai"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Sidik jari sendiri"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Akan dibuat pada koneksi pertama"
+
+#~ msgid "Your contact"
+#~ msgstr "Kontak anda"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Menanyakan GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "Umumkan kunci"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Kesalahan pada GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Tidak ada kunci tersedia. Buat satu!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Dinonaktifkan"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Kunci tidak ada di rantai kunci"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Sidik jari"
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Penerbitan kunci dinonaktifkan"
+
+#~ msgid "Select key"
+#~ msgstr "Pilih kunci"
+
+#~ msgid "Loading…"
+#~ msgstr "Memuat…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1089,7 +1418,7 @@ msgstr "Masuk"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Tidak dapat membuat sambungan aman"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Kembali"
diff --git a/main/po/ie.po b/main/po/ie.po
index a07090df..4ac76a0f 100644
--- a/main/po/ie.po
+++ b/main/po/ie.po
@@ -17,6 +17,377 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.5\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Gerer aparates"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr "%s ne have fide por ti-ci aparate. Vu fórsan manca alcun missages."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Gerer li clave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Cuidosi compara li fingre-print con ti que es monstrat sur li aparate de vor "
+"contacte."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Fingre-printes difere"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Fingre-printes es identic"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Confirmar"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Verificar li clave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Fingre-printes ne es egal"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Ples verificar que vu compara li just fingre-print. Si fingre-printes ne es "
+"egal, li conto de %s posse esser compromettet e vu deve rejecter ti-ci clave."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Verificar li fingre-print"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Comparar li fingre-print de ti-ci clave con clave que es monstrat sur li "
+"aparate del contacte."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Rejecter li clave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Blocar ciffrat communication con li aparate del contacte quel usa ti-ci "
+"clave."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Acceptar li clave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Permisser ciffrat communication con li aparate del contacte quel usa ti-ci "
+"clave."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Ti-ci clave es actualmen %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "acceptat"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr "To significa que %s posse usar it por reciver e inviar missages."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "verificat"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+"Adplu, it ha esset verificat corresponder con li clave sur li aparate del "
+"contacte."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "rejectet"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"To significa que %s posse usar it por deciffrar vor missages e que vu ne va "
+"vider li missages ciffrat med it."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Gerer"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Ti-ci contacte have nov aparates"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "Un decision de confidentie OMEMO es besonat"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Esque vu ha adjuntet un nov aparate por li conto %s?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Nov claves"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Nov claves de ciffration de vor altri aparates va esser acceptat "
+"automaticmen."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Acceptat"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Rejectet"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Verificat"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr ""
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "Gerentie de claves OMEMO"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d aparate OMEMO"
+#~ msgstr[1] "%d aparates OMEMO"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Automaticmen acceptar nov claves"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr ""
+#~ "Nov claves de ciffration de ti-ci contacte va esser acceptat automaticmen."
+
+#~ msgid "Own key"
+#~ msgstr "Propri clave"
+
+#~ msgid "Associated keys"
+#~ msgstr "Associat claves"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Ínactiv claves"
+
+#~ msgid "Unused"
+#~ msgstr "Ínusat"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Propri fingre-print"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Va esser generat pos li prim conexion"
+
+#~ msgid "Not matching"
+#~ msgstr "Ne corresponde"
+
+#~ msgid "Matching"
+#~ msgstr "Corresponde"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "highlighted accordingly in the chat window."
+#~ msgstr ""
+#~ "Pos li confirmation, omni futuri missages inviat per %s con ti-ci clave "
+#~ "va esser colorat correspondmen in li fenestre de conversation."
+
+#~ msgid ""
+#~ "Stop accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "Cessar acceptar ti-ci clave por communication con su associat contacte."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact"
+#~ msgstr "Acceptar ti-ci clave por communication con su associat contacte"
+
+#~ msgid ""
+#~ "This means it cannot be used by %s to receive messages, and any messages "
+#~ "sent by it will be ignored."
+#~ msgstr ""
+#~ "To significa que %s ne posse usar it por reciver missages, e su missages "
+#~ "inviat va esser ignorat."
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "ignored and none of your messages will be readable using this key."
+#~ msgstr ""
+#~ "Pos confirmation, omni futuri missages inviat per %s con ti-ci clave va "
+#~ "esser ignorat, e null vor missages va esser leibil con ti-ci clave."
+
+#~ msgid ""
+#~ "Once confirmed this key will be usable by %s to receive and send messages."
+#~ msgstr ""
+#~ "Pos confirmation, ti-ci clave va esser usabil per %s por reciver e inviar "
+#~ "missages."
+
+#~ msgid ""
+#~ "When this contact adds new encryption keys to their account, "
+#~ "automatically accept them."
+#~ msgstr ""
+#~ "Quande ti-ci contacte adjunte nov ciffre-claves a su conto, acceptar les "
+#~ "automaticmen."
+
+#~ msgid ""
+#~ "When you add new encryption keys to your account, automatically accept "
+#~ "them."
+#~ msgstr ""
+#~ "Quande vu adjunte nov ciffre-claves a vor conto, acceptar les "
+#~ "automaticmen."
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Contactante GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Errore de GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Null claves disponibil. Crea ún!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr ""
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Clave ne es in li porta-clave"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr ""
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Publication de claves depermisset"
+
+#~ msgid "Select key"
+#~ msgstr "Selecter un clave"
+
+#~ msgid "Loading…"
+#~ msgstr "Cargante…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1093,7 +1464,7 @@ msgstr ""
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Ne successat etablisser un secur conexion"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Retro"
diff --git a/main/po/is.po b/main/po/is.po
index a9828324..dce54a93 100644
--- a/main/po/is.po
+++ b/main/po/is.po
@@ -17,6 +17,48 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n % 10 != 1 || n % 100 == 11;\n"
"X-Generator: Weblate 4.14-dev\n"
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Að spyrja GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Villa hjá GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Engir lyklar í boði. Búðu einn til!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr ""
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Lykill ekki í lyklakippu"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr ""
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Deiling lykla óvirkt"
+
+#~ msgid "Select key"
+#~ msgstr "Veldu lykil"
+
+#~ msgid "Loading…"
+#~ msgstr "Hleður…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1094,7 +1136,7 @@ msgstr ""
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Mistókst að skapa örugga tengingu"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Til baka"
diff --git a/main/po/isv.po b/main/po/isv.po
index cce61ef4..d2e2199e 100644
--- a/main/po/isv.po
+++ b/main/po/isv.po
@@ -17,6 +17,265 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.14.1-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s je upotrěbil(-a) nenadežny ustroj. Vy ne budete viděti soobčenja od "
+"ustrojev, ktore ne imajut dověrjenje."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Upravjenje ustrojami"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s ne dověrjaje tomu ustroju. To označaje, že vy možete ne viděti něktore "
+"soobčenja."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Upravjenje ključem"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Potvrditi"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Potvrditi ključ"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Prijeti ključ"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Tutoj ključ v tutom momentu je %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr ""
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Poprošenje GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "Zadany ključ"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Grěška v GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Nema dostupnyh ključev. Sgenerujte jedin!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Izključeno"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Nema ključa v svezku ključev"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Odtisk/odpečatok prsta"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1094,6 +1353,7 @@ msgstr ""
msgid "Could not establish a secure connection"
msgstr ""
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr ""
diff --git a/main/po/it.po b/main/po/it.po
index fd108f67..0c2cc5cb 100644
--- a/main/po/it.po
+++ b/main/po/it.po
@@ -18,6 +18,429 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.10.3-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s sta usando un dispositivo non verificato. Non vedrai messaggi inviati da "
+"un dispositivo che non hai verificato."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Gestisci dispositivi"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s non ha verificato questo dispositivo. Ciò significa che potresti perdere "
+"dei messaggi."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Gestisci la chiave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Confronta la fingerprint, carattere per carattere, con quella mostrata sul "
+"dispositivo del tuo contatto."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Le impronte non combaciano"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Le impronte combaciano"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Conferma"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Verifica la chiave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"I messaggi futuri inviati da %s dal dispositivo che usa questa chiave "
+"saranno evidenziati di conseguenza nella finestra della chat."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Le impronte non corrispondono"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Si prega di verificare che si stia confrontanto la fingerprint corretta. Se "
+"le fingerprint non corrispondono, l'account di %s potrebbe essere "
+"compromesso e si dovrebbe rifiutare questa chiave."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Verifica la fingerprint della chiave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Confronta la fingerprint di questa chiave con quella mostrata sul "
+"dispositivo del contatto."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Chiave rifiutata"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Blocca le comunicazioni crittografate con il dispositivo del contatto che "
+"sta usando questa chiave."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Chiave accettata"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Permetti la comunicazione crittografata con il dispositivo del contatto che "
+"sta usando questa chiave."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "La chiave attualmente è %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "accettata"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Questo vuol dire che può essere usata da %s per ricevere ed inviare messaggi."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "verificata"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+"Inoltre è stato verificato che corrisponda con la chiave sul dispositivo del "
+"contatto."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "rifiutata"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Questo vuol dire che non può essere usata da %s per decifrare i tuoi "
+"messaggi, e tu non vedrai i messaggi crittografati con essa."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Non vedrai i messaggi crittografati dal dispositivo di %s che usa questa "
+"chiave. Al contrario, quel dispositivo non sarà più in grado di decifrare i "
+"tuoi messaggi."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Sarai in grado di scambiare messaggi crittografati con il dispositivo di %s "
+"che usa questa chiave."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Gestisci"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Questo contatto ha dei nuovi dispositivi"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "Una decisione sulla fiducia è necessaria per la chiave OMEMO"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Hai aggiunto un nuovo dispositivo per l'account %s?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Nuove chiavi"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Le nuove chiavi di crittografia dei tuoi altri dispositivi verranno "
+"accettate automaticamente."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Accettata"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Rifiutata"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Verificata"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr ""
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "Gestione delle chiavi OMEMO"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d dispositivo OMEMO"
+#~ msgstr[1] "%d dispositivi OMEMO"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Accetta automaticamente le nuove chiavi"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr ""
+#~ "Le nuove chiavi di crittografia di questo contatto verranno accettate "
+#~ "automaticamente."
+
+#~ msgid "Own key"
+#~ msgstr "Proprie chiavi"
+
+#~ msgid "Associated keys"
+#~ msgstr "Chiavi associate"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Chiavi inattive"
+
+#~ msgid "Unused"
+#~ msgstr "Inutilizzata"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Propria impronta"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Verrà generata alla prima connessione"
+
+#~ msgid "Your contact"
+#~ msgstr "Il tuo contatto"
+
+#~ msgid "Not matching"
+#~ msgstr "Non corrispondenti"
+
+#~ msgid "Matching"
+#~ msgstr "Corrispondenti"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "highlighted accordingly in the chat window."
+#~ msgstr ""
+#~ "Una volta confermato, qualsiasi messaggio futuro inviato da %s usando "
+#~ "questa chiave sarà evidenziato di conseguenza nella finestra della "
+#~ "conversazione."
+
+#~ msgid ""
+#~ "Stop accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "Smetti di accettare questa chiave durante le comunicazioni col contatto "
+#~ "associato."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact"
+#~ msgstr ""
+#~ "Inizia ad accettare questa chiave durante le comunicazioni con il "
+#~ "contatto ad essa associato"
+
+#~ msgid ""
+#~ "This means it cannot be used by %s to receive messages, and any messages "
+#~ "sent by it will be ignored."
+#~ msgstr ""
+#~ "Questo vuol dire che non può essere usata da %s per ricevere messaggi, ed "
+#~ "ogni messaggio inviato attraverso di essa sarà ignorato."
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "ignored and none of your messages will be readable using this key."
+#~ msgstr ""
+#~ "Una volta confermato, ogni messaggio futuro inviato da %s usando questa "
+#~ "chiave sarà ignorato e nessuno dei tuoi messaggi sarà leggibile usando "
+#~ "questa chiave."
+
+#~ msgid ""
+#~ "Once confirmed this key will be usable by %s to receive and send messages."
+#~ msgstr ""
+#~ "Una volta confermata questa chiave sarà utilizzabile da %s per ricevere "
+#~ "ed inviare messaggi."
+
+#~ msgid ""
+#~ "When this contact adds new encryption keys to their account, "
+#~ "automatically accept them."
+#~ msgstr ""
+#~ "Quando questo contatto aggiunge nuove chiavi di cifratura al proprio "
+#~ "account, accettale automaticamente."
+
+#~ msgid ""
+#~ "When you add new encryption keys to your account, automatically accept "
+#~ "them."
+#~ msgstr ""
+#~ "Quando aggiungi nuove chiavi di cifratura al tuo account, accettale "
+#~ "automaticamente."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "Inizia ad accettare questa chiave durante le comunicazioni col contatto "
+#~ "associato"
+
+#~ msgid "Reject Key"
+#~ msgstr "Rifiuta la chiave"
+
+#~ msgid "Accept Key"
+#~ msgstr "Accetta la chiave"
+
+#~ msgid "Unknown device (0x%.8x)"
+#~ msgstr "Dispositivo sconosciuto (0x%.8x)"
+
+#~ msgid "Other devices"
+#~ msgstr "Altri dispositivi"
+
+#~ msgid "- None -"
+#~ msgstr "- Nessuno -"
+
+#~ msgid "OMEMO"
+#~ msgstr "OMEMO"
+
+#~ msgid "Database error"
+#~ msgstr "Errore del database"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Interrogando GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Errore in GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Nessuna chiave disponibile. Generane una!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr ""
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "La chiave non è nel portachiavi"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr ""
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Pubblicazione della chiave disabilitata"
+
+#~ msgid "Select key"
+#~ msgstr "Seleziona una chiave"
+
+#~ msgid "Loading…"
+#~ msgstr "Caricamento…"
+
+#~ msgid "OpenPGP"
+#~ msgstr "OpenPGP"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1096,7 +1519,7 @@ msgstr "Accedi"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Impossibile stabilire una connessione sicura"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Indietro"
diff --git a/main/po/ja.po b/main/po/ja.po
index 3ca9c003..a0b40a3f 100644
--- a/main/po/ja.po
+++ b/main/po/ja.po
@@ -18,6 +18,381 @@ msgstr ""
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 5.10.3-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s は信頼されていないデバイスを使用しています。信頼していないデバイスから送信"
+"されたメッセージは閲覧できません。"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "デバイスを管理"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s はこのデバイスを信頼していません。相手がメッセージを正しく受信できない可能"
+"性があります。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "キーを管理"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"以下のフィンガープリントと、お使いのデバイスに表示されているフィンガープリン"
+"トを、1文字ずつ比較してください。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "フィンガープリントが一致しません"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "フィンガープリントが一致します"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "確認"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "キーを確認"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"今後このキーを使ったデバイスから %s が送信するメッセージは、チャットウィンド"
+"ウでハイライト表示されます。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "フィンガープリントが一致しません"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"正しいフィンガープリントを比較しているか確認してください。フィンガープリント"
+"が一致しない場合、%s のアカウントはなりすましの可能性があるので、このキーを拒"
+"否することをおすすめします。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "キーのフィンガープリントを検証"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"このキーのフィンガープリントと、連絡先のデバイスに表示されたフィンガープリン"
+"トを比較します。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "キーを拒否"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr "このキーを使った連絡先のデバイスとの暗号化された会話をブロックします。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "キーを許可"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr "このキーを使った連絡先のデバイスとの暗号化された会話を許可します。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "このキーは現在%s。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "許可されています"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr "このキーを使って、%s は暗号化されたメッセージを送受信できます。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "検証済みです"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr "加えて、連絡先のデバイスのキーと一致することを検証済みです。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "拒否されています"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"このキーを使って、%s はあなたのメッセージを解読できなくなります。また、あなた"
+"は、このキーで暗号化されたメッセージを確認できなくなります。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"このキーを使った %s のデバイスから、暗号化されたメッセージを確認できなくなり"
+"ます。逆に、今後そのデバイスでは、あなたのメッセージを解読できなくなります。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"このキーを使った %s のデバイスと、暗号化されたメッセージをやり取りできるよう"
+"になります。"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "管理"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "この連絡先に新しいデバイスが追加されました"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "OMEMO 信頼選択が必要です"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "アカウント %s に新しいデバイスを追加しましたか?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "既定でOMEMO"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "新しい会話にOMEMO暗号化を有効にする"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "新しいデバイスに対して暗号化"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "この連絡先から新しいデバイスに対して自動的に暗号化を行います。"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "新しいキー"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"あなたのほかのデバイスから発行された新しい暗号化キーが自動的に許可されます。"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "許可"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "拒否"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "検証済み"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "新しいデバイス"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "OMEMO キー管理"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d 台の OMEMO デバイス"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "自動的に新しいキーを許可"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr "この連絡先から発行された新しい暗号化キーが自動的に許可されます。"
+
+#~ msgid "Own key"
+#~ msgstr "自身のキー"
+
+#~ msgid "Associated keys"
+#~ msgstr "関連付けられたキー"
+
+#~ msgid "Inactive keys"
+#~ msgstr "非アクティブなキー"
+
+#~ msgid "Unused"
+#~ msgstr "未使用"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "自身のフィンガープリント"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "最初の接続で生成されます"
+
+#~ msgid "Your contact"
+#~ msgstr "あなたの連絡先"
+
+#~ msgid "Not matching"
+#~ msgstr "一致しない"
+
+#~ msgid "Matching"
+#~ msgstr "一致"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "highlighted accordingly in the chat window."
+#~ msgstr ""
+#~ "一度確認すると、今後このキーを使って %s から送信されるメッセージは、チャッ"
+#~ "トウィンドウでハイライト表示されます。"
+
+#~ msgid ""
+#~ "Stop accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "関連付けられた連絡先とトークをする際に、このキーを許可しないようにします。"
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact"
+#~ msgstr ""
+#~ "関連付けられた連絡先とトークをする際に、このキーを許可するようにします"
+
+#~ msgid ""
+#~ "This means it cannot be used by %s to receive messages, and any messages "
+#~ "sent by it will be ignored."
+#~ msgstr ""
+#~ "このキーを使って %s からのメッセージを受信できません。また、当該アドレスか"
+#~ "らのメッセージはすべて無視されます。"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "ignored and none of your messages will be readable using this key."
+#~ msgstr ""
+#~ "一度確認すると、今後このキーを使って %s から送信されるメッセージは無視さ"
+#~ "れ、このキーを使ったご自身のメッセージも読み取れなくなります。"
+
+#~ msgid ""
+#~ "Once confirmed this key will be usable by %s to receive and send messages."
+#~ msgstr ""
+#~ "一度確認すると、このキーを使って %s からのメッセージを送受信可能になりま"
+#~ "す。"
+
+#~ msgid ""
+#~ "When this contact adds new encryption keys to their account, "
+#~ "automatically accept them."
+#~ msgstr ""
+#~ "この連絡先の相手がアカウントに追加する新しい暗号化キーを自動的に許可しま"
+#~ "す。"
+
+#~ msgid ""
+#~ "When you add new encryption keys to your account, automatically accept "
+#~ "them."
+#~ msgstr "アカウントに追加した新しい暗号化キーを自動的に許可します。"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "GnuPG に問い合わせています"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "GnuPG でのエラー"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "キーがありません。生成しましょう!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "無効"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "キーはキーチェーンにありません"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr ""
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "キーの発行は無効"
+
+#~ msgid "Select key"
+#~ msgstr "キーを選択"
+
+#~ msgid "Loading…"
+#~ msgstr "読み込んでいます…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1093,6 +1468,7 @@ msgstr ""
msgid "Could not establish a secure connection"
msgstr "安全な接続を確立できませんでした"
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "戻る"
diff --git a/main/po/ka.po b/main/po/ka.po
index d2c1ef57..82cd60c8 100644
--- a/main/po/ka.po
+++ b/main/po/ka.po
@@ -17,6 +17,261 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.17-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "დადასტურება"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "დადასტურებულია"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "გადამოწმებულია"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "უარყოფილია"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr ""
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "GnuPG-ის გამოთხოვა"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "გასაღების გამოცხადება"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "შეცდომა GnuPG-ში"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "გასაღებები ხელმისაწვდომი არაა. დაგენერირეთ ერთი მაინც!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "გათიშულია"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "გასაღები ბრელოკში არაა"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "ანაბეჭდი"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1093,7 +1348,7 @@ msgstr "შესვლა"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr ""
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "უკან"
diff --git a/main/po/kab.po b/main/po/kab.po
index 5af728ac..79e272d4 100644
--- a/main/po/kab.po
+++ b/main/po/kab.po
@@ -17,6 +17,276 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 5.16.1-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Sefrek obenkan"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%sur yettkil ara deg yibenk-a. Ayagi anamek-is d akken tzemreḍ ad tɛerqeḍ "
+"iznan."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Sefrek tasarut"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Snemhel adsil umḍin, s usekkil ɣer usekkil, s win i d-yettwaseknen deg ibenk "
+"n unermis-ik·im."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Adsil umḍinen mgaraden"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Adsil umḍinen mṣadan"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Serggeg"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Senqed tasarut"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Iznan n yimal ara yettwaznen sɣur %s seg yibenk i yesseqdacen tasarut-agi ad "
+"ttwabrureqqren deg usfaylu n udiwenni."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Idsilen umḍinen ur mṣadan ara"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Selken adsil umḍin n tsarut"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Snemhel tasarut n udsil umḍin akked udsil umḍin i d-yettwaseknen deg yibenk "
+"n unermis."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Agi tasarut"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Sewḥel taɣwalt tawgelhant akked yibenk n unermis-agi i yesseqdacen tasarut-a."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Qbel tasarut"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr "Sireg taywalt uwgelhen s yibenk n unermis i yesseqdac tasarut-a."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Tasarut-agi %s tura."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "yettwaqbel"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Ayagi yebɣa ad d-yini dakken yezmer ad yettwaseqdec sɣur %s akken ad yeṭṭef "
+"u ad yazen iznan iwgelhanen."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "yettwasenqed"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "yettwagi"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Ad tizmireḍ ad tbeddeleḍ iznan iwgelhanen akked yibenk %s i yesseqdacen "
+"tasarut-agi."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Sefrek"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Anermis-a ɣur-s ibenkan imaynuten"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "Tettwasra teɣtast n teflest OMEMO"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Terniḍ ibenk amaynut i umiḍan %s?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO s wudem amezwer"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Sermed awgelhen OMEMO i idiwenniyen imaynuten"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Wgelhen i yibenkan imaynuten"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Wgelhen s wudem awurman ɣer yibenkan imaynuten n unermis-a."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Tisura timaynutin"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Tisura n uwgelhen timaynutin seg yibenkan-ik nniḍen ad ttwaqeblent s wudem "
+"awurman."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Ibenk-a"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Ibenk nniḍen"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Ibenk"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Yettwaqbel"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Yettwasenqed"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Ibenk amaynut"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Tuttra GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "Berreḥ tsarut"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Tuccḍa deg GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Ulac tisura. Sarew-d yiwet!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Arurmid"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Tasarut ulac-itt deg uzrar n tsura"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Adsil umḍin"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1093,7 +1363,7 @@ msgstr "Qqen"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Ur izmir ara ad egg tuqqna taɣelsant"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Tuɣalin"
diff --git a/main/po/ko.po b/main/po/ko.po
index c929e4c3..c58ae762 100644
--- a/main/po/ko.po
+++ b/main/po/ko.po
@@ -17,6 +17,49 @@ msgstr ""
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 4.15-dev\n"
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "GnuPG에 에러가 있음"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "사용 가능한 키 없음. 하나 생성하세요!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr ""
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "키가 키체인에 있지 않음"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr ""
+
+#, fuzzy
+#~ msgid "Key publishing disabled"
+#~ msgstr "키 게재 비활성화됨"
+
+#~ msgid "Select key"
+#~ msgstr "키 선택"
+
+#~ msgid "Loading…"
+#~ msgstr "로딩중…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1096,7 +1139,7 @@ msgstr ""
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "보안 연결을 설정 할 수 없음"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "이전"
diff --git a/main/po/lb.po b/main/po/lb.po
index a86874f6..768c2989 100644
--- a/main/po/lb.po
+++ b/main/po/lb.po
@@ -13,6 +13,420 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.0-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Geräter managen"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Schlëssel verwalten"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Vergläich de Fangerofdrock, Zeeche fir Zeechen, mat dem den um Gerät vum "
+"Kontakt ugewise gëtt."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Fangerofdréck stemmen net iwwerteneen"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Fangerofdréck stemmen iwwerteneen"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Confirméieren"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Schlëssel verifizéieren"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Zukünfteg Noriichten, déi vum Apparat vum %s, den dëse Schlëssel benotzt, "
+"geschéckt ginn, wäerten deementspriechend am Chatfenster ervirgehuewen ginn."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Fangerofdréck stëmmen net iwwerteneen"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Wann ech gelift iwwerpréif, ob's du mat dem "
+"korrekte Fangerofdrock vergläichs. Wann Fangerofdréck net iwwerteneestëmmen, "
+"dann ass dem %s säi Konto villäicht kompromettéiert an du solls dëse "
+"Schlëssel verweigeren."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Iwwerpréif Schlëssel Fangerofdrock"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Vergläich de Fangerofdrock vun dësem Schlëssel mam Fangerofdrock den um "
+"Gerät vun dësem Kontakt steet."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Schlëssel ofleenen"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Blockéiert verschlësselt Kommunikatioun mam Apparat vum Kontakt deen dëse "
+"Schlëssel benotzt."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Schlëssel acceptéieren"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Erlaabt verschlësselt Kommunikatioun mam Apparat vum Kontakt, deen dëse "
+"Schlëssel benotzt."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Den aktuelle Schlëssel ass %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "akzeptéiert"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Dat bedeit, dass et vum %s ka benotzt gi fir Messagen ze empfänken an ze "
+"verschécken."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "verifizéiert"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+"De Schlëssel ass zousätzlech iwwerpréift gi mam Schlëssel um Gerät vum "
+"Kontakt iwwerteneen ze stëmmen."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "ofgeleent"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Dëst bedeit datt et net vum %s ka benotzt ginn fir är Messagen ze "
+"entschlësselen, an Dir gesitt keng Messagen déi mat dësem verschlësselt sinn."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Dir gesitt net verschlësselt Message vum Apparat vum %s deen dëse Schlëssel "
+"benotzt. Ëmgekéiert kann dëse Apparat net méi Är Messagen entschlësselen."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Dir kënnt verschlësselte Messagen austausche mat dem Apparat vum %s deen "
+"dësen Schlëssel benotzt."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Verwalten"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Dëse Kontakt huet nei Geräter"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "OMEMO Vertrauens Entscheedung noutwenneg"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Hues du een neit Gerät fir %s dobäi gemaach?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Nei Schlësselen"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Nei Verschlësslungs Schlëssele vun ären aneren Apparater ginn automatesch "
+"akzeptéiert."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Akzeptéiert"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Ofgeleent"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Verifizéiert"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr ""
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "OMEMO Schlësselenverwaltung"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d OMEMO Gerät"
+#~ msgstr[1] "%d OMEMO Geräter"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Automatesch nei Schlësselen akzeptéieren"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr ""
+#~ "Nei Verschlësslungs Schlëssele vun dem Kontakt ginn automatesch "
+#~ "akzeptéiert."
+
+#~ msgid "Own key"
+#~ msgstr "Eegene Schlëssel"
+
+#~ msgid "Associated keys"
+#~ msgstr "Zougehéiereg Schlësselen"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Inaktiv Schlësselen"
+
+#~ msgid "Unused"
+#~ msgstr "Onbenotzt"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Eegene Fangerofdrock"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Gett bei der éischter Connectioun generéiert"
+
+#~ msgid "Not matching"
+#~ msgstr "Stemmt net iwwerteneen"
+
+#~ msgid "Matching"
+#~ msgstr "Stemmt iwwerteneen"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "highlighted accordingly in the chat window."
+#~ msgstr ""
+#~ "Wann konforméiert, all zukünfteg Messagen déi vum %s mat dësem Schlëssel "
+#~ "geschéckt ginn, ginn deementspriechend am Chatfenster markéiert."
+
+#~ msgid ""
+#~ "Stop accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "Dëse Schlëssel net méi akzeptéiere wärend der Kommunikatioun mat sengem "
+#~ "verbonnene Kontakt."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact"
+#~ msgstr "Dëse Schlëssel wärend de Conversatioun mat sengem Kontakt benotzen"
+
+#~ msgid ""
+#~ "This means it cannot be used by %s to receive messages, and any messages "
+#~ "sent by it will be ignored."
+#~ msgstr ""
+#~ "Dat bedeit, dass dëse Schlëssel net ka vum %s benotz gi fir Messagen ze "
+#~ "empfänken an all Message déi geschéckt gi ginn ignoréiert."
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "ignored and none of your messages will be readable using this key."
+#~ msgstr ""
+#~ "Wann confirméiert, all zukünfteg Message déi vum %s mat dësem Schlëssel "
+#~ "geschéckt ginn, ginn ignoréiert a keng vun dengem Messagë wäerte liesbar "
+#~ "sinn."
+
+#~ msgid ""
+#~ "Once confirmed this key will be usable by %s to receive and send messages."
+#~ msgstr ""
+#~ "Wann konforméiert ass de Schlëssel vum %s benotzbar fir Messagen ze "
+#~ "empfänken an ze schécken."
+
+#~ msgid ""
+#~ "When this contact adds new encryption keys to their account, "
+#~ "automatically accept them."
+#~ msgstr ""
+#~ "Wann dëse Kontakt néi Schlësselen zu sengem Konto bäifüügt, déi "
+#~ "automatesch akzeptéieren."
+
+#~ msgid ""
+#~ "When you add new encryption keys to your account, automatically accept "
+#~ "them."
+#~ msgstr ""
+#~ "Wann s du nei Schlëssele bei däin Account bäifüügs, déi automatesch "
+#~ "akzeptéieren."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "Dëse Schlëssel wärend der Kommunikatioun mat sengem verbonne Kontakt "
+#~ "akzeptéieren."
+
+#~ msgid "Reject Key"
+#~ msgstr "Schlëssel verweigeren"
+
+#~ msgid "Accept Key"
+#~ msgstr "Schlëssel acceptéieren"
+
+#~ msgid "Unknown device (0x%.8x)"
+#~ msgstr "Onbekannt Gerät (0x%.8x)"
+
+#~ msgid "Other devices"
+#~ msgstr "Aner Geräter"
+
+#~ msgid "- None -"
+#~ msgstr "- Keng -"
+
+#~ msgid "OMEMO"
+#~ msgstr "OMEMO"
+
+#~ msgid "Database error"
+#~ msgstr "Datebank Feeler"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "GnuPG gëtt ofgefrot"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Feeler am GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Keng Schlëssele verfügbar. Generéier een!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr ""
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Schlësselen net am Schlësselbond"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr ""
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Schlëssel Verëffentlechung ausgeschalt"
+
+#~ msgid "Select key"
+#~ msgstr "Schlëssel auswielen"
+
+#~ msgid "Loading…"
+#~ msgstr "Lueden…"
+
+#~ msgid "OpenPGP"
+#~ msgstr "OpenPGP"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1089,7 +1503,7 @@ msgstr ""
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Konnt keng geséchert Verbindung opbauen"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Zeréck"
diff --git a/main/po/lt.po b/main/po/lt.po
index 226e0dbe..482f6ba2 100644
--- a/main/po/lt.po
+++ b/main/po/lt.po
@@ -18,6 +18,387 @@ msgstr ""
"(n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Weblate 5.15.1\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s naudoja nepatikimą įrenginį. Jūs nematysite žinučių iš įrenginių, kuriais "
+"nepasitikite."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Tvarkyti įrenginius"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s nepasitiki šiuo įrenginiu. Tai reiškia, kad galite nematyti žinučių."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Tvarkyti raktą"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Palyginkite kontrolinį kodą, simbolis po simbolio, su tuo, kuris yra rodomas "
+"jūsų adresato įrenginyje."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Kodas skiriasi"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Kodas atitinka"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Patvirtinti"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Patikrinkite raktą"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Nuo šiol žinutės nuo %s išsiųstos iš įrenginio naudojančio šį kontrolinį "
+"kodą bus atitinkamai paryškintos."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Kontroliniai kodai nesutampa"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Įsitikinkite, kad lyginate teisingą kontrolinį kodą. Jei kontroliniai kodai "
+"nesutampa, gali būti, kad %s paskyra yra sukompromituota ir turėtumėte "
+"apsvarstyti galimybę atmesti šį raktą."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Patikrinti rakto kontrolinį kodą"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Palyginti šio rakto kontrolinį kodą su adresato įrenginyje rodomu "
+"kontroliniu kodu."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Atmesti raktą"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Blokuoti šifruotą bendravimą su kontakto įrenginiu, kuris naudoja šį raktą."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Priimti raktą"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Leisti šifruotą bendravimą su kontakto įrenginiu, kuris naudoja šį raktą."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Šiuo metu šis raktas yra %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "priimtas"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Tai reiškia, kad %s gali jį naudoti šifruotų žinučių siuntimui ir gavimui."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "patikrintas"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+"Be to, jis buvo patikrintas ir sutampa su adresato įrenginyje rodomu raktu."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "atmestas"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Tai reiškia, kad %s negali jo naudoti jūsų žinučių iššifravimui ir jūs "
+"nematysite žinučiu užšifruotų šiuo raktu."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Jūs nematysite šifruotų žinučių išsiustų iš %s įrenginio, kuris naudoją šį "
+"raktą. Tuo pačiu tas įrenginys nebegalės iššifruoti jūsų žinučių."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Jūs galite keistis šifruotomis žinutėmis su %s įrenginiu, kuris naudoja šį "
+"raktą."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Tvarkyti"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Šis adresatas turi naujų įrenginių"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "OMEMO reikia pasitikėjimo sprendimo"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Ar savo %s paskyrai pridėjote naują įrenginį?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO pagal numatymą"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Įjungti naujiems pokalbiams OMEMO šifravimą"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Šifruoti į naujus įrenginius"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Automatiškai šifruoti į naujus įrenginius iš šio adresato."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Nauji raktai"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Nauji šifravimo raktai iš jūsų kitų įrenginių bus priimti automatiškai."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Šis įrenginys"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Kitas įrenginys"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Įrenginys"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Priimtas"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Atmestas"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Patikrintas"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Naujas įrenginys"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Kiekvienas įrenginys turi savo nuosavą OMEMO raktą. Įrenginys gali "
+"iššifruoti žinutes tik tuo atveju, jeigu jos yra šifruotos naudojant jo "
+"raktą. Žinutės yra šifruojamos tik priimtiems įrenginiams."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "OMEMO raktų tvarkymas"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d OMEMO įrenginys"
+#~ msgstr[1] "%d OMEMO įrenginiai"
+#~ msgstr[2] "%d OMEMO įrenginių"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Automatiškai priimti naujus raktus"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr "Nauji šifravimo raktai iš šio kontakto bus priimti automatiškai."
+
+#~ msgid "Own key"
+#~ msgstr "Nuosavas raktas"
+
+#~ msgid "Associated keys"
+#~ msgstr "Susieti raktai"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Neaktyvūs raktai"
+
+#~ msgid "Unused"
+#~ msgstr "Nenaudojamas"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Nuosavas kontrolinis kodas"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Bus sugeneruotas pirmojo prisijungimo metu"
+
+#~ msgid "Your contact"
+#~ msgstr "Jūsų adresatas"
+
+#~ msgid "Not matching"
+#~ msgstr "Nesutampa"
+
+#~ msgid "Matching"
+#~ msgstr "Sutampa"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "highlighted accordingly in the chat window."
+#~ msgstr ""
+#~ "Patikrinus, bet kokios būsimos žinutės, kurias %s išsiųs naudodamas šį "
+#~ "raktą, bus atitinkamai paryškintos pokalbių kambaryje."
+
+#~ msgid ""
+#~ "Stop accepting this key during communication with its associated contact."
+#~ msgstr "Nustoti priiminėti šį raktą bendravimo su susietu adresatu metu."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact"
+#~ msgstr "Pradėti priiminėti šį raktą bendravimo su susietu adresatu metu"
+
+#~ msgid ""
+#~ "This means it cannot be used by %s to receive messages, and any messages "
+#~ "sent by it will be ignored."
+#~ msgstr ""
+#~ "Tai reiškia, kad %s negali jo naudoti, kad gautų žinutes, o bet kurių "
+#~ "adresato siunčiamų žinučių bus nepaisoma."
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "ignored and none of your messages will be readable using this key."
+#~ msgstr ""
+#~ "Patvirtinus, bet kurių būsimų žinučių, kurias %s išsiųs naudodamas šį "
+#~ "raktą, bus nepaisoma ir jokių jūsų žinučių nebus įmanoma perskaityti "
+#~ "naudojant šį raktą."
+
+#~ msgid ""
+#~ "Once confirmed this key will be usable by %s to receive and send messages."
+#~ msgstr ""
+#~ "Patvirtinus, šis raktas taps tinkamu naudoti %s, kad gautų ir siųstų "
+#~ "žinutes."
+
+#~ msgid ""
+#~ "When this contact adds new encryption keys to their account, "
+#~ "automatically accept them."
+#~ msgstr ""
+#~ "Kai šis adresatas prie savo paskyros pridės naujus šifravimo raktus, "
+#~ "automatiškai juos priimti."
+
+#~ msgid ""
+#~ "When you add new encryption keys to your account, automatically accept "
+#~ "them."
+#~ msgstr ""
+#~ "Kai pridedate naujus šifravimo raktus prie savo paskyros, automatiškai "
+#~ "juos priimti."
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Užklausiama GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "Paskelbimo raktas"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Klaida GnuPG programoje"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Nėra prieinamų raktų. Sugeneruokite!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Išjungta"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Rakto nėra raktinėje"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Kontrolinis kodas"
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Rakto paskelbimas išjungtas"
+
+#~ msgid "Select key"
+#~ msgstr "Pasirinkti raktą"
+
+#~ msgid "Loading…"
+#~ msgstr "Įkeliama…"
+
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1098,7 +1479,7 @@ msgstr "Prisijungti"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Nepavyko užmegzti saugaus ryšio"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Atgal"
diff --git a/main/po/lv.po b/main/po/lv.po
index 2d41ae7a..9ef2a1e6 100644
--- a/main/po/lv.po
+++ b/main/po/lv.po
@@ -18,6 +18,39 @@ msgstr ""
"19) ? 0 : ((n % 10 == 1 && n % 100 != 11) ? 1 : 2);\n"
"X-Generator: Weblate 4.16-dev\n"
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr ""
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr ""
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1094,7 +1127,7 @@ msgstr ""
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr ""
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr ""
diff --git a/main/po/nb.po b/main/po/nb.po
index 86b76c66..2a78c0a1 100644
--- a/main/po/nb.po
+++ b/main/po/nb.po
@@ -18,6 +18,422 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.17-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s har brukt en ubetrodd enhet. Du vil ikke se meldinger fra enheter du ikke "
+"har tiltro til."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Håndter enheter"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s har ikke tiltro til denne enheten. Det betyr at du kan gå glipp av "
+"meldinger."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Håndter nøkkel"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Sammenlign fingeravtrykket, tegn for tegn, med den vist på din kontakts "
+"enhet."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Fingeravtrykkene stemmer ikke overens"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Fingeravtrykkene stemmer overens"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Bekreft"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Bekreft nøkkel"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Fremtidige meldinger sendt av %s fra enheten som benytter denne nøkkelen vil "
+"framheves i så måte i sludrevinduet."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Fingeravtrykkene stemmer ikke overens"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Sjekk at du sammenligner riktig fingeravtrykk. Hvis de ikke stemmer overens, "
+"kan det hende %s sin konto har falt i gale hender, og du bør overveie å "
+"avvise denne nøkkelen."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Sjekk nøkkelfingeravtrykk"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Sammenlign dette fingeravtrykket med fingeravtrykket vist på kontaktens "
+"enhet."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Avslå nøkkel"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Blokker kryptert kommunikasjon med kontaktens enhet som benytter denne "
+"nøkkelen."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Godta nøkkel"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Tillat kryptert kommunikasjon med kontaktens enhet som benytter denne "
+"nøkkelen."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Denne nøkkelen er i øyeblikket %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "godtatt"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Dette betyr at den kan brukes av %s til å motta og sende krypterte meldinger."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "bekreftet"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+"I tillegg har den blitt bekreftet å samsvare med nøkkelen på kontaktens "
+"enhet."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "avslått"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Dette betyr den ikke kan brukes av %s for å fortolke meldingene dine, og du "
+"vil ikke kunne se meldinger kryptert med den."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Du vil ikke se krypterte meldinger fra %s sin enhet som bruker denne "
+"nøkkelen. Denne enheten vil heller ikke kunne fortolke dine meldinger lenger."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Du vil kunne utveksle krypterte meldinger med %s sin enhet som benytter "
+"denne nøkkelen."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Behandle"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Denne kontakten har nye enheter"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "OMEMO tillitsbeslutning kreves"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "La du til en ny enhet for kontoen %s?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO som standard"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Aktiver OMEMO-kryptering for nye samtaler"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Krypter til nye enheter"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Krypter automatisk til nye enheter fra denne kontakten."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Nye nøkler"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr "Nye krypteringsnøkler fra dine andre enheter vil godtas automatisk."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Denne enheten"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Annen enhet"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Enhet"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Godtatt"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Avslått"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Bekreftet"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Ny enhet"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Hver enhet har sin egen OMEMO-nøkkel. Meldinger kan bare dekrypteres av en "
+"enhet hvis de er kryptert til dens nøkkel. Meldinger blir bare kryptert til "
+"godkjente enheter."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "OMEMO-nøkkelhåndtering"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d OMEMO-enhet"
+#~ msgstr[1] "%d OMEMO-enheter"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Godta nye nøkler automatisk"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr "Nye krypteringsnøkler fra denne kontakten vil godtas automatisk."
+
+#~ msgid "Own key"
+#~ msgstr "Egen nøkkel"
+
+#~ msgid "Associated keys"
+#~ msgstr "Tilknyttede nøkler"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Inaktive nøkler"
+
+#~ msgid "Unused"
+#~ msgstr "Ubrukt"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Eget fingeravtrykk"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Vil bli generert ved første tilkobling"
+
+#~ msgid "Your contact"
+#~ msgstr "Din kontakt"
+
+#~ msgid "Not matching"
+#~ msgstr "Samsvarer ikke"
+
+#~ msgid "Matching"
+#~ msgstr "Samsvarer"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "highlighted accordingly in the chat window."
+#~ msgstr ""
+#~ "Når først bekreftet, vil fremtidige meldinger sendt av %s ved bruk av "
+#~ "denne nøkkelen bli fremhevet tilsvarende i sludrevinduet."
+
+#~ msgid ""
+#~ "Stop accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "Slutt å godta denne nøkkelen under kommunikasjon med dens tilknyttede "
+#~ "kontakt."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact"
+#~ msgstr ""
+#~ "Aksepter heretter denne nøkkelen i kommunikasjon med dens tilhørende "
+#~ "kontakt"
+
+#~ msgid ""
+#~ "This means it cannot be used by %s to receive messages, and any messages "
+#~ "sent by it will be ignored."
+#~ msgstr ""
+#~ "Dette betyr at den ikke kan brukes av %s til å motta meldinger, og enhver "
+#~ "melding sendt på vegne av den vil bli ignorert."
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "ignored and none of your messages will be readable using this key."
+#~ msgstr ""
+#~ "Etter bekreftelsen vil fremtidige meldinger sendt av %s der denne "
+#~ "nøkkelen brukes bli ignorert, og ingen av dine meldinger vil kunne leses "
+#~ "med den."
+
+#~ msgid ""
+#~ "Once confirmed this key will be usable by %s to receive and send messages."
+#~ msgstr ""
+#~ "Når først bekreftet vil denne nøkkelen kunne brukes av %s til å motta og "
+#~ "sende meldinger."
+
+#~ msgid ""
+#~ "When this contact adds new encryption keys to their account, "
+#~ "automatically accept them."
+#~ msgstr ""
+#~ "Når denne kontakten legger nye krypteringsnøkler til kontoen sin, godta "
+#~ "dem automatisk."
+
+#~ msgid ""
+#~ "When you add new encryption keys to your account, automatically accept "
+#~ "them."
+#~ msgstr ""
+#~ "Godta dem automatisk når du legger nye krypteringsnøkler til kontoen din."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "Begynn å godta denne nøkkelen under kommunikasjon med dens tilknyttede "
+#~ "kontakt."
+
+#~ msgid "Reject Key"
+#~ msgstr "Avslå nøkkel"
+
+#~ msgid "Accept Key"
+#~ msgstr "Godta nøkkel"
+
+#~ msgid "Unknown device (0x%.8x)"
+#~ msgstr "Ukjent enhet (0x%.8x)"
+
+#~ msgid "Other devices"
+#~ msgstr "Andre enheter"
+
+#~ msgid "- None -"
+#~ msgstr "- Ingen -"
+
+#~ msgid "OMEMO"
+#~ msgstr "OMEMO"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Sender spørring til GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "Kunngjør nøkkel"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Feil i GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Ingen nøkler tilgjengelige. Generer én!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Deaktivert"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Nøkkelen finnes ikke i nøkkelknippet"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Fingeravtrykk"
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Nøkkelpublisering avskrudd"
+
+#~ msgid "Select key"
+#~ msgstr "Velg nøkkel"
+
+#~ msgid "Loading…"
+#~ msgstr "Laster…"
+
+#~ msgid "OpenPGP"
+#~ msgstr "OpenPGP"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1094,7 +1510,7 @@ msgstr "Logg på"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Kunne ikke etablere sikker forbindelse"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Tilbake"
diff --git a/main/po/nl.po b/main/po/nl.po
index 757e8992..53259f4e 100644
--- a/main/po/nl.po
+++ b/main/po/nl.po
@@ -18,6 +18,426 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.17-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s is een onvertrouwd apparaat. Berichten van onvertrouwde apparaten worden "
+"niet getoond."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Apparaten beheren"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr "%s vertrouwt dit apparaat niet. Je mist hierdoor mogelijk berichten."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Sleutel beheren"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Vergelijk de vingerafdruk, letter voor letter, met die op het apparaat van "
+"je contactpersoon."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Vingerafdrukken wijken af"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Vingerafdrukken komen overeen"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Bevestigen"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Sleutel verifiëren"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Toekomstige berichten van %s van het apparaat dat deze sleutel gebruikt, "
+"worden gemarkeerd in het gespreksvenster."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Vingerafdrukken komen niet overeen"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Zorg dat je de juiste vingerafdrukken vergelijkt. Als de vingerafdrukken "
+"niet overeenkomen, kan het zijn dat het account van %s gehackt is. Overweeg "
+"in dat geval deze sleutel te weigeren."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Vingerafdruk van sleutel verifiëren"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Vergelijk de vingerafdruk van deze sleutel met de vingerafdruk die wordt "
+"getoond op het apparaat van je contactpersoon."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Sleutel weigeren"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Blokkeer versleutelde communicatie met het apparaat van deze contactpersoon "
+"dat deze sleutel gebruikt."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Sleutel accepteren"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Sta versleutelde communicatie toe met het apparaat van deze contactpersoon "
+"dat deze sleutel gebruikt."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Deze sleutel is momenteel %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "geaccepteerd"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Dit betekent dat %s deze kan gebruiken om berichten te ontvangen en "
+"versturen."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "geverifieerd"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+"Er is vastgesteld dat deze sleutel overeenkomt met de sleutel op het "
+"apparaat van de contactpersoon."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "geweigerd"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"De sleutel kan niet door %s worden gebruikt om berichten te ont- en "
+"versleutelen."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Je ziet geen versleutelde berichten van het apparaat van %s dat deze sleutel "
+"gebruikt. Daarnaast kan het apparaat jouw berichten niet meer ontsleutelen."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Je kunt versleutelde berichten uitwisselen met het apparaat van %s dat deze "
+"sleutel gebruikt."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Beheren"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Deze contactpersoon heeft nieuwe apparaten"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "OMEMO-vertrouwenskeuze vereist"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Heb je een nieuw apparaat toegevoegd aan %s?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "Standaard OMEMO"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Zet OMEMO versleuteling aan voor nieuwe gesprekken"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Versleut nieuwe apparaten"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Automatisch versleutelen van nieuwe apparaten van dit contact."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Nieuwe sleutels"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Nieuwe sleutels van je andere apparaten worden automatisch geaccepteerd."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Dit apparaat"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Ander apparaat"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Apparaat"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Geaccepteerd"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Geweigerd"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Geverifieerd"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Nieuwe apparaat"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Ieder apparaat beschikt over een eigen OMEMO-sleutel. Berichten kunnen "
+"alleen worden ontsleuteld als beide versleuteld zijn met dezelfde sleutel, "
+"en alleen op goedgekeurde apparaten."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "OMEMO-sleutelbeheer"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d OMEMO-apparaat"
+#~ msgstr[1] "%d OMEMO-apparaten"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Nieuwe sleutels automatisch accepteren"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr ""
+#~ "Nieuwe sleutels van deze contactpersoon worden automatisch geaccepteerd."
+
+#~ msgid "Own key"
+#~ msgstr "Mijn sleutel"
+
+#~ msgid "Associated keys"
+#~ msgstr "Geassocieerde sleutels"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Inactieve sleutels"
+
+#~ msgid "Unused"
+#~ msgstr "Ongebruikt"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Mijn vingerafdruk"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Wordt bij de eerste verbinding gegenereerd"
+
+#~ msgid "Your contact"
+#~ msgstr "Je contactpersoon"
+
+#~ msgid "Not matching"
+#~ msgstr "Komen niet overeen"
+
+#~ msgid "Matching"
+#~ msgstr "Komen overeen"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "highlighted accordingly in the chat window."
+#~ msgstr ""
+#~ "Zodra bevestigd, worden nieuwe berichten verstuurd door %s met deze "
+#~ "sleutel uitgelicht in het chatvenster."
+
+#~ msgid ""
+#~ "Stop accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "Accepteer niet langer deze sleutel tijdens communicatie met het "
+#~ "bijbehorende contact."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact"
+#~ msgstr ""
+#~ "Accepteer deze sleutel tijdens communicatie met het bijbehorende contact"
+
+#~ msgid ""
+#~ "This means it cannot be used by %s to receive messages, and any messages "
+#~ "sent by it will be ignored."
+#~ msgstr ""
+#~ "Dit betekent dat het niet gebruikt kan worden door %s om berichten te "
+#~ "ontvangen. Berichten die hiermee verstuurd worden worden genegeerd."
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "ignored and none of your messages will be readable using this key."
+#~ msgstr ""
+#~ "Zodra bevestigd, worden toekomstige berichten die verstuurd worden door "
+#~ "%s met deze sleutel genegeerd en zullen geen van je berichten leesbaar "
+#~ "zijn met deze sleutel."
+
+#~ msgid ""
+#~ "Once confirmed this key will be usable by %s to receive and send messages."
+#~ msgstr ""
+#~ "Zodra bevestigd kan deze sleutel gebruikt worden door %s om berichten te "
+#~ "ontvangen en te versturen."
+
+#~ msgid ""
+#~ "When this contact adds new encryption keys to their account, "
+#~ "automatically accept them."
+#~ msgstr ""
+#~ "Indien dit contact nieuwe encryptiesleutels toevoegt aan hun account, "
+#~ "automatisch accepteren."
+
+#~ msgid ""
+#~ "When you add new encryption keys to your account, automatically accept "
+#~ "them."
+#~ msgstr ""
+#~ "Nieuwe encryptiesleutels die aan het account worden toegevoegd "
+#~ "automatisch accepteren."
+
+#, fuzzy
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "Accepteer deze sleutel tijdens communicatie met het bijbehorende contact"
+
+#~ msgid "Reject Key"
+#~ msgstr "Sleutel Afwijzen"
+
+#~ msgid "Accept Key"
+#~ msgstr "Sleutel Aanvaarden"
+
+#~ msgid "Unknown device (0x%.8x)"
+#~ msgstr "Onbekend apparaat (0x%.8x)"
+
+#~ msgid "Other devices"
+#~ msgstr "Andere apparaten"
+
+#~ msgid "- None -"
+#~ msgstr "- Geen -"
+
+#~ msgid "OMEMO"
+#~ msgstr "OMEMO"
+
+#~ msgid "Database error"
+#~ msgstr "Databasefout"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Bezig met aanroepen van GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "Aankondigingssleutel"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Fout in GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Geen sleutels beschikbaar. Genereer een sleutel!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Uitgeschakeld"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Sleutel niet in sleutelbos"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Vingerafdruk"
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Sleutelpublicatie uitgeschakeld"
+
+#~ msgid "Select key"
+#~ msgstr "Kies een sleutel"
+
+#~ msgid "Loading…"
+#~ msgstr "Bezig met laden…"
+
+#~ msgid "OpenPGP"
+#~ msgstr "OpenPGP"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1094,7 +1514,7 @@ msgstr "Inloggen"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Kan geen beveiligde verbinding opzetten"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Terug"
diff --git a/main/po/oc.po b/main/po/oc.po
index 75e68655..853f0bb9 100644
--- a/main/po/oc.po
+++ b/main/po/oc.po
@@ -17,6 +17,340 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 5.15.1\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s a utilizat un aparelh desconegut. Veiretz pas los messatges venents de "
+"client que vos fisatz pas."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Gerir los aparelhs"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s se fisa pas d’aqueste client. Significa que mancaretz benlèu de messatges."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Gestion de las claus"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Comparatz l’emprenta, caractèr per caractèr, amb aquela qu’es afichada al "
+"client de vòstre contacte."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "L’emprenta es diferenta"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Las emprentas correspondon"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Confirmar"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Verificar la clau"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Los messatges venents enviat per %s a partir del client utilizant aquesta "
+"clau seràn meses en davant dins la fenèstra del chat."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Las emprentas correspondon pas"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Mercés de verificar que sètz a comparar l’emprenta corrècta. Se l’emprenta "
+"correspond pas, lo compte de %s pòt èsser compromés e deuriatz regetar "
+"aquesta clau."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Verificar l’emprenta d’aquesta clau"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Comparatz aquesta clau amb l’emprenta afichada sus l'aparelh de vòstre "
+"contacte."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Regetar la clau"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Blocar las comunicacion chifradas amb lo client del contacte qu’utiliza "
+"aquesta clau."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Acceptar la clau"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Autorizar las comunicacions chifradas amb lo client del contacte qu’utiliza "
+"aquesta clau."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "La clau es actualament %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "acceptada"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Aquò significa que èsser utilizada per %s per recebre e enviar de messatges."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "verificada"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+"Amai, la verificacion de la correspondéncia d’aquesta clau amb la del client "
+"del contacte es estada facha."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "regetada"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Aquò significa que pòt pas èsser utilizada per %s per deschifrar vòstres "
+"messatges, veiretz pas mai los messatges chifrats amb ela."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Veiretz pas mai los messatges que venon de l’aparelh de %s qu’utiliza "
+"aquesta clau. Al contrari, aqueste aparelh poirà pas mai deschifrar vòstres "
+"messatges."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Poiretz escambiar de messatges chifrats amb l’aparelh de %s qu’utiliza "
+"aquesta clau."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Gerir"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Aqueste contacte a d’aparelhs novèls"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "Decision de fisança OMEMO requerida"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Avètz apondut un aparelh novèl pel compte de %s ?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO per defaut"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Activar lo chiframent OMEMO per las discussions novèlas"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Chifrar pels aparelhs novèls"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Chifrar automaticament pels aparelhs novèls d'aqueste contacte."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Claus novèlas"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Las claus novèlas de deschiframent de vòstres autres aparelhs seràn "
+"automaticament acceptadas."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Aqueste aparelh"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Un autre aparelh"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Aparelh"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Acceptada"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Regetada"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Verificada"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Aparelh novèl"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Cada aparelh a sa pròpria clau OMEMO. Los messatges pòdon èsser deschifrats "
+"per un aparelh solament se son chifrats amb sa clau. Los messatges son "
+"chifrats unicament pels aparelhs acceptats."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "Gestion de las claus OMEMO"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d periferic OMEMO"
+#~ msgstr[1] "%d periferics OMEMO"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Acceptar automaticament las claus novèlas"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr ""
+#~ "Las claus novèlas de deschiframent d’aqueste contacte seràn "
+#~ "automaticament acceptadas."
+
+#~ msgid "Own key"
+#~ msgstr "Ma clau publica"
+
+#~ msgid "Associated keys"
+#~ msgstr "Claus associadas"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Claus inactivas"
+
+#~ msgid "Unused"
+#~ msgstr "Pas utilizada"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Emprenta publica"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Serà generat a la primièra connexion"
+
+#~ msgid "Your contact"
+#~ msgstr "Vòstre contacte"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Consultacion de GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "Anonciar la clau"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Error dins gnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Cap de clau pas disponibla. Generatz-ne una !"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Desactivat"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "La clau es pas al trocèl"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Emprenta"
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Publicacion de clau desactivada"
+
+#~ msgid "Select key"
+#~ msgstr "Seleccionar una clau"
+
+#~ msgid "Loading…"
+#~ msgstr "Cargament…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1096,7 +1430,7 @@ msgstr "Se connectar"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Establiment impossible d’una connexion segura"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Tornar"
diff --git a/main/po/pl.po b/main/po/pl.po
index b0743181..838a4ee0 100644
--- a/main/po/pl.po
+++ b/main/po/pl.po
@@ -19,6 +19,401 @@ msgstr ""
"|| n%100>=20) ? 1 : 2);\n"
"X-Generator: Weblate 5.8-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s używa niezaufanego urządzenia. Nie będziesz widzieć wiadomości wysłanych "
+"z urządzeń, którym nie ufasz."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Zarządzaj urządzeniami"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s nie ufa temu urządzeniu. Oznacza to, że wiadomości mogą do ciebie nie "
+"docierać."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Zarządzaj kluczem"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Porównaj odcisk klucza, znak po znaku, z tym pokazanym na urządzeniu twojego "
+"kontaktu."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Odcisk klucza różni się"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Odcisk klucza pasuje"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Potwierdź"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Zweryfikuj klucz"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Przyszłe wiadomości wysyłane przez %s z urządzenia używającego tego klucza "
+"zostaną odpowiednio podświetlone w oknie czatu."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Odcisk klucza nie zgadza się"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Proszę zweryfikować, że porównujesz prawidłowy odcisk klucza. Jeśli odciski "
+"nie zgadzają się, konto %s mogło być zaatakowane i należy rozważyć "
+"odrzucenie tego klucza."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Zweryfikuj odcisk klucza"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Porównaj odcisk tego klucza z odciskiem wyświetlonym na urządzeniu kontaktu."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Odrzuć klucz"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Blokuj szyfrowaną komunikację z urządzeniem kontaktu, które korzysta z tego "
+"klucza."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Zaakceptuj klucz"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Zezwól na szyfrowaną komunikację z urządzeniem kontaktu, które korzysta z "
+"tego klucza."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Ten klucz jest obecnie %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "zaakceptowany"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"To znaczy, że może być używany przez %s do odbierania i wysyłania "
+"szyfrowanych wiadomości."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "zweryfikowany"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+"Dodatkowo zostało sprawdzone, że zgadza się z kluczem na urządzeniu kontaktu."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "odrzucony"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Oznacza to, że %s nie może go użyć do odszyfrowania wiadomości i nie "
+"zobaczysz wiadomości zaszyfrowanych przy jego pomocy."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Nie zobaczysz zaszyfrowanych wiadomości z urządzenia %s, które używa tego "
+"klucza. I odwrotnie, to urządzenie nie będzie już w stanie odszyfrować "
+"Twoich wiadomości."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Będziesz mógł wymieniać zaszyfrowane wiadomości z urządzeniem %s, które "
+"używa tego klucza."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Zarządzaj"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Ten kontakt ma nowe urządzenia"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "Decyzja o zaufaniu OMEMO jest potrzebna"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Czy dodałeś nowe urządzenie dla konta %s?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "Domyślnie OMEMO"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Włącz szyfrowanie za pomocą OMEMO dla nowych konwersacji"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Szyfrowanie nowych urządzeń"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Automatycznie szyfruj na nowych urządzeniach od tego kontaktu."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Nowe klucze"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Nowe klucze szyfrowania z innych urządzeń będą akceptowane automatycznie."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Zaakceptowany"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Odrzucony"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Zweryfikowany"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Nowe urządzenie"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "Zarządzanie kluczami OMEMO"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d urządzenie OMEMO"
+#~ msgstr[1] "%d urządzenia OMEMO"
+#~ msgstr[2] "%d urządzeń OMEMO"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Automatycznie akceptuj nowe klucze"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr ""
+#~ "Nowe klucze szyfrowania od tego kontaktu będą akceptowane automatycznie."
+
+#~ msgid "Own key"
+#~ msgstr "Własny klucz"
+
+#~ msgid "Associated keys"
+#~ msgstr "Pozostałe klucze"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Nieaktywne klucze"
+
+#~ msgid "Unused"
+#~ msgstr "Nieużywany"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Własny odcisk klucza"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Zostanie wygenerowany przy pierwszym połączeniu"
+
+#~ msgid "Not matching"
+#~ msgstr "Odciski nie zgadzają się"
+
+#~ msgid "Matching"
+#~ msgstr "Odciski zgadzają się"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "highlighted accordingly in the chat window."
+#~ msgstr ""
+#~ "Przyszłe wiadomości wysłane przez %s i szyfrowane tym kluczem będą "
+#~ "odpowiednio zaznaczone w oknie czatu."
+
+#~ msgid ""
+#~ "Stop accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "Zablokuj szyfrowaną komunikację ze sprzętem kontaktu, który używa ten "
+#~ "klucz."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact"
+#~ msgstr ""
+#~ "Włącz szyfrowaną komunikację ze sprzętem kontaktu, który używa ten klucz."
+
+#~ msgid ""
+#~ "This means it cannot be used by %s to receive messages, and any messages "
+#~ "sent by it will be ignored."
+#~ msgstr ""
+#~ "To znaczy, że nie może być używany przez %s do rozszyfrowania twoich "
+#~ "wiadomości, a wiadomości szyfrowane nim nie będą u ciebie wyświetlane."
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "ignored and none of your messages will be readable using this key."
+#~ msgstr ""
+#~ "Wiadomości wysłane przez %s ze sprzętu używającego ten klucz nie będą "
+#~ "wyświetlane. Podobnie sprzęt tej osoby nie będzie mógł rozszyfrować "
+#~ "twoich wiadomości."
+
+#~ msgid ""
+#~ "Once confirmed this key will be usable by %s to receive and send messages."
+#~ msgstr ""
+#~ "To umożliwi wymianę szyfrowanych wiadomości ze sprzętem należącym do %s, "
+#~ "który używaja ten klucz."
+
+#~ msgid ""
+#~ "When this contact adds new encryption keys to their account, "
+#~ "automatically accept them."
+#~ msgstr ""
+#~ "Gdy ten kontakt doda nowe klucze szyfrowania do swojego konta, zaakceptuj "
+#~ "je automatycznie."
+
+#~ msgid ""
+#~ "When you add new encryption keys to your account, automatically accept "
+#~ "them."
+#~ msgstr ""
+#~ "Gdy dodam nowe klucze szyfrowania do mojego konta, zaakceptuj je "
+#~ "automatycznie."
+
+#~ msgid "Unknown device (0x%.8x)"
+#~ msgstr "Nieznane urządzenie (0x%.8x)"
+
+#~ msgid "Other devices"
+#~ msgstr "Pozostałe urządzenia"
+
+#~ msgid "- None -"
+#~ msgstr "- Wybierz -"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Odpytuję GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Błąd w GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Brak kluczy. Wygeneruj nowy!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Wyłączono"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Klucz nie znajduje się w pęku kluczy"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr ""
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Publikowanie kluczy wyłączone"
+
+#~ msgid "Select key"
+#~ msgstr "Wybierz klucz"
+
+#~ msgid "Loading…"
+#~ msgstr "Ładowanie…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1101,7 +1496,7 @@ msgstr ""
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Nie udało się nawiązać bezpiecznego połączenia"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Wstecz"
diff --git a/main/po/pt.po b/main/po/pt.po
index 6e4984e6..253578c0 100644
--- a/main/po/pt.po
+++ b/main/po/pt.po
@@ -17,6 +17,341 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 5.11-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s esteve a usar um aparelho não confiável. Não verá mensagens de aparelhos "
+"nos quais não confia."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Gerir aparelhos"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s não confia neste aparelho. Isso significa que pode estar a perder "
+"mensagens."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Gerir Chave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Compare a impressão digital, caractere a caractere, com aquela mostrada no "
+"aparelho de seu contato."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "As impressões digitais não correspondem uma a outra"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "As impressões digitais correspondem uma a outra"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Confirmar"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Verificar chave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Mensagens futuras enviadas por %s do aparelho que usa essa chave serão "
+"destacadas no janela de bate papo."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Impressões digitais não correspondem"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Por favor verifique se está a comparar as impressões digitais corretas. Caso "
+"elas não correspondam, a conta do %s pode estar comprometida e deve "
+"considerar rejeitar essa chave."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Verificar impressão digital da chave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Compare a impressão digital dessa chave com a impressão digital exibida no "
+"aparelho do contato."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Rejeitar chave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Bloqueie comunicação criptografada com o aparelho do contato que usa essa "
+"chave."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Aceitar chave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Permita comunicação criptografada com o aparelho do contato que usa essa "
+"chave."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Essa chave está atualmente %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "aceita"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Isso significa que ela pode ser usada por %s para enviar e receber mensagens "
+"criptografadas."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "verificada"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+"Além disso, verificou-se que ela corresponde com a chave no aparelho do "
+"contato."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "rejeitada"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Isso significa que ela não pode ser usada por %s para decifrar suas "
+"mensagens, e não irá visualizar mensagens criptografadas com ela."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Não irá visualizar mensagens criptografas pelo aparelho de %s que usa essa "
+"chave. Além disso, esse aparelho não será mais capaz de decifrar suas "
+"mensagens."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Poderá trocar mensagem criptografadas com o aparelho de %s que usa essa "
+"chave."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Gerir"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Esse contato possui novos aparelhos"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "Decisão de confiança OMEMO necessária"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Adicionou um novo aparelho para a conta %s?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO por padrão"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Ativar a criptografia OMEMO em novas conversas"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Criptografar para novos dispositivos"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Automaticamente criptografar para novos dispositivos deste contacto."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Chaves novas"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Novas chaves de criptografia de seus outros aparelhos serão aceitas "
+"automaticamente."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Este dispositivo"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Outro dispositivo"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Dispositivo"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Aceita"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Rejeitada"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Verificada"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Dispositivo novo"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Cada dispositivo tem a sua própria chave OMEMO. Mensagens só podem ser "
+"descriptografadas pelo dispositivo se foram criptografadas para as suas "
+"chaves. Mensagens só são criptografadas para dispositivos aceites."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "Gestão de chave OMEMO"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d aparelho OMEMO"
+#~ msgstr[1] "%d aparelhos OMEMO"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Aceitar novas chaves automaticamente"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr ""
+#~ "Novas chaves de criptografia desse contato serão aceitas automaticamente."
+
+#~ msgid "Own key"
+#~ msgstr "Chave própria"
+
+#~ msgid "Associated keys"
+#~ msgstr "Chaves associadas"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Chaves inativas"
+
+#~ msgid "Unused"
+#~ msgstr "Não usada"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Impressão digital própria"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Será gerada na primeira conexão"
+
+#~ msgid "Your contact"
+#~ msgstr "O seu contacto"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Consultando GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "Anunciar chave"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Erro no GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Nenhuma chave disponível. Gere uma!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Desativado"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "A chave não está no chaveiro"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Impressão digital"
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Publicação da chave desativada"
+
+#~ msgid "Select key"
+#~ msgstr "Selecionar chave"
+
+#~ msgid "Loading…"
+#~ msgstr "Carregando…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1094,7 +1429,7 @@ msgstr "Autenticar"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Não foi possível estabelecer uma conexão segura"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Voltar"
diff --git a/main/po/pt_BR.po b/main/po/pt_BR.po
index add854a8..fe57a330 100644
--- a/main/po/pt_BR.po
+++ b/main/po/pt_BR.po
@@ -17,6 +17,396 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 5.15-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s tem usado um dispositivo não confiável. Você não verá mensagens de "
+"dispositivos que você não confia."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Gerenciar dispositivos"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s não confia nesse dispositivo. Isso significa que você pode estar perdendo "
+"algumas mensagens."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Gerenciar Chave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Compare a impressão digital, caractere a caractere, com aquela mostrada no "
+"dispositivo de seu contato."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "As impressões digitais não correspondem uma a outra"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "As impressões digitais correspondem uma a outra"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Confirmar"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Verificar chave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Mensagens futuras enviadas por %s do dispositivo que usa essa chave serão "
+"destacadas no janela de bate papo."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Impressões digitais não correspondem"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Por favor verifique se você está comparando as impressões digitais corretas. "
+"Caso elas não correspondam, a conta do %s pode estar comprometida e você "
+"deve considerar rejeitar essa chave."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Verificar impressão digital da chave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Compare a impressão digital dessa chave com a impressão digital exibida no "
+"dispositivo do contato."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Rejeitar chave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Bloqueie comunicação criptografada com o dispositivo do contato que usa essa "
+"chave."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Aceitar chave"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Permita comunicação criptografada com o dispositivo do contato que usa essa "
+"chave."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Essa chave está atualmente %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "aceita"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Isso significa que ela pode ser usada por %s para enviar e receber mensagens "
+"criptografadas."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "verificada"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+"Além disso, verificou-se que ela corresponde com a chave no dispositivo do "
+"contato."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "rejeitada"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Isso significa que ela não pode ser usada por %s para decifrar suas "
+"mensagens, e você não irá visualizar mensagens criptografadas com ela."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Você não irá visualizar mensagens criptografas pelo dispositivo de %s que "
+"usa essa chave. Além disso, esse dispositivo não será mais capaz de decifrar "
+"suas mensagens."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Você poderá trocar mensagem criptografadas com o dispositivo de %s que usa "
+"essa chave."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Gerenciar"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Esse contato possui novos dispositivos"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "Decisão de confiança OMEMO necessária"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Você adicionou um novo dispositivo para a conta %s?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO por padrão"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Ativar a criptografia OMEMO em novas conversas"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Criptografar para novos dispositivos"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Automaticamente criptografar para novos dispositivos deste contato."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Chaves novas"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Novas chaves de criptografia de seus outros dispositivos serão aceitas "
+"automaticamente."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Este dispositivo"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Outro dispositivo"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Dispositivo"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Aceita"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Rejeitada"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Verificada"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Dispositivo novo"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Cada dispositivo tem sua própria chave OMEMO. Mensagens só podem ser "
+"descriptografadas pelo dispositivo se foram criptografadas para suas chaves. "
+"Mensagens só são criptografadas para dispositivos aceitos."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "Gerenciamento de Chave OMEMO"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d dispositivo OMEMO"
+#~ msgstr[1] "%d dispositivos OMEMO"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Aceitar novas chaves automaticamente"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr ""
+#~ "Novas chaves de criptografia desse contato serão aceitas automaticamente."
+
+#~ msgid "Own key"
+#~ msgstr "Chave própria"
+
+#~ msgid "Associated keys"
+#~ msgstr "Chaves associadas"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Chaves inativas"
+
+#~ msgid "Unused"
+#~ msgstr "Não usada"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Impressão digital própria"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Será gerada na primeira conexão"
+
+#~ msgid "Your contact"
+#~ msgstr "Seu contato"
+
+#~ msgid "Not matching"
+#~ msgstr "Não correspondem"
+
+#~ msgid "Matching"
+#~ msgstr "Correspondem"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "highlighted accordingly in the chat window."
+#~ msgstr ""
+#~ "Uma vez confirmada, toda mensagem enviada por %s no futuro será destacada "
+#~ "na janela da conversa."
+
+#~ msgid ""
+#~ "Stop accepting this key during communication with its associated contact."
+#~ msgstr "Pare de aceitar essa chave ao se comunicar com o contato associado."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact"
+#~ msgstr "Aceite essa chave ao se comunicar com o contato associado"
+
+#~ msgid ""
+#~ "This means it cannot be used by %s to receive messages, and any messages "
+#~ "sent by it will be ignored."
+#~ msgstr ""
+#~ "Isso significa que ela não pode ser usada por %s para receber mensagens e "
+#~ "qualquer mensagem enviada com ela será ignorada."
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "ignored and none of your messages will be readable using this key."
+#~ msgstr ""
+#~ "Uma vez confirmada, toda mensagem enviada por %s usando essa chave será "
+#~ "ignorada e nenhuma de suas mensagens com ela serão legíveis."
+
+#~ msgid ""
+#~ "Once confirmed this key will be usable by %s to receive and send messages."
+#~ msgstr ""
+#~ "Uma vez confirmada, essa chave poderá ser usada por %s para receber e "
+#~ "enviar mensagens."
+
+#~ msgid ""
+#~ "When this contact adds new encryption keys to their account, "
+#~ "automatically accept them."
+#~ msgstr ""
+#~ "Quando esse contato adicionar novas chaves de criptografia à conta, "
+#~ "aceite-as automaticamente."
+
+#~ msgid ""
+#~ "When you add new encryption keys to your account, automatically accept "
+#~ "them."
+#~ msgstr ""
+#~ "Quando você adicionar novas chaves de criptografia para sua conta, aceite-"
+#~ "as automaticamente."
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Consultando GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "Anunciar chave"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Erro no GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Nenhuma chave disponível. Gere uma!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Desativado"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "A chave não está no chaveiro"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Impressão digital"
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Publicação da chave desativada"
+
+#~ msgid "Select key"
+#~ msgstr "Selecionar chave"
+
+#~ msgid "Loading…"
+#~ msgstr "Carregando…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1095,7 +1485,7 @@ msgstr "Login"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Não foi possível estabelecer uma conexão segura"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Voltar"
diff --git a/main/po/ro.po b/main/po/ro.po
index 527c396d..9847a4cd 100644
--- a/main/po/ro.po
+++ b/main/po/ro.po
@@ -19,6 +19,421 @@ msgstr ""
"20)) ? 1 : 2;\n"
"X-Generator: Weblate 5.15-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s a utilizat un dispozitiv care nu este de încredere. Nu veți vedea mesaje "
+"de pe dispozitive în care nu aveți încredere."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Gestionare dispozitive"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s nu are încredere în acest dispozitiv. Asta înseamnă că s-ar putea să-ți "
+"lipsească mesaje."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Gestionare cheie"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Comparați amprenta, caracter cu caracter, cu amprenta afișată pe "
+"dispozitivul contactului."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Amprentele diferă"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Amprentele se potrivesc"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Confirmare"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Verificare cheie"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Mesajele viitoare trimise de %s de pe dispozitivul care utilizează această "
+"cheie vor fi evidențiate în mod corespunzător în fereastra de chat."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Amprentele nu se potrivesc"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Vă rugäm să verificați dacă se compară amprentele corecte. Dacă nu se "
+"potrivesc amprentele s-ar putea ca %s să aibä un cont compromis și ar trebui "
+"să luați în considerare respingerea acestei chei."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Verificare amprentă cheie"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Comparați amprenta cheii cu amprenta afișată pe dispozitivul contactului."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Respingere cheie"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Blocați comunicarea criptată cu dispozitivul persoanei de contact care "
+"utilizează această cheie."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Acceptare cheie"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Permiteți comunicarea criptată cu dispozitivul persoanei de contact care "
+"utilizează această cheie."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Cheia este în prezent %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "acceptată"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Aceasta înseamnă că poate fi utilizată de %s pentru a primi și a trimite "
+"mesaje criptate."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "verificată"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+"În plus, a fost verificată că se potrivește cu cheia de pe dispozitivul "
+"contactului."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "respinsă"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Aceasta înseamnă că nu poate fi utilizată de %s pentru a vă descifra "
+"mesajele și nu veți vedea mesajele criptate cu aceasta."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Nu veți vedea mesaje criptate de la dispozitivul %s care utilizează această "
+"cheie. În schimb, dispozitivul respectiv nu va mai putea descifra mesajele "
+"dumneavoastră."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Veți putea schimba mesaje criptate cu dispozitivul %s care utilizează "
+"această cheie."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Gestionare"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Acest contact are dispozitive noi"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "Este necesara luarea unei decizii în privința OMEMO"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Ați adăugat un nou dispozitiv pentru contul %s?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO activat implicit"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Activează criptarea OMEMO pentru conversațiile noi"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Criptează pentru dispozitive noi"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Criptează automat pentru dispozitivele noi ale acestui contact."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Chei noi"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Noile chei de criptare de pe celelalte dispozitive ale dumneavoastră vor fi "
+"acceptate automat."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Acest dispozitiv"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Alt dispozitiv"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Dispozitiv"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Acceptată"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Respinsă"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Verificată"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Dispozitiv nou"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Fiecare dispozitiv are propria cheie OMEMO. Mesajele pot fi decriptate de un "
+"dispozitiv numai dacă sunt criptate pentru cheia sa. Mesajele sunt criptate "
+"numai pentru dispozitivele acceptate."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "Administrare chei OMEMO"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d dispozitiv OMEMO"
+#~ msgstr[1] "%d dispozitive OMEMO"
+#~ msgstr[2] "%d de dispozitive OMEMO"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Acceptă automat chei noi"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr ""
+#~ "Noile chei de criptare de la această persoană de contact vor fi acceptate "
+#~ "automat."
+
+#~ msgid "Own key"
+#~ msgstr "Cheie proprie"
+
+#~ msgid "Associated keys"
+#~ msgstr "Chei asociate"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Chei inactive"
+
+#~ msgid "Unused"
+#~ msgstr "Neutilizatä"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Amprentă proprie"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Se va genera la prima conectare"
+
+#~ msgid "Your contact"
+#~ msgstr "Persoana de contact"
+
+#~ msgid "Not matching"
+#~ msgstr "Nu se potrivesc"
+
+#~ msgid "Matching"
+#~ msgstr "Se potrivesc"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "highlighted accordingly in the chat window."
+#~ msgstr ""
+#~ "Odată confirmată, orice viitoare mesaje trimise de %s folosind această "
+#~ "cheie vor fi evidenţiate în consecință în fereastra de discuție."
+
+#~ msgid ""
+#~ "Stop accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "Nu mai accepta această cheie în timpul comunicärii cu acest contact "
+#~ "asociat."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact"
+#~ msgstr ""
+#~ "Se va accepta această cheie în timpul comunicării cu acest contact asociat"
+
+#~ msgid ""
+#~ "This means it cannot be used by %s to receive messages, and any messages "
+#~ "sent by it will be ignored."
+#~ msgstr ""
+#~ "Aceasta înseamnă că nu poate fi folosită de %s ca să primească mesaje, "
+#~ "iar orice mesaj trimis cu ea v-a fi ignorat."
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "ignored and none of your messages will be readable using this key."
+#~ msgstr ""
+#~ "Odată confirmată, orice viitoare mesaje trimise de %s folosind această "
+#~ "cheie vor fi ignorate și nici un mesaj trimis de dumneavoastră nu se va "
+#~ "putea citii folosid aceastä cheie."
+
+#~ msgid ""
+#~ "Once confirmed this key will be usable by %s to receive and send messages."
+#~ msgstr ""
+#~ "Odată confirmată, aceastä cheie va fi utilizatä de %s pentru a primi și "
+#~ "trimite mesaje."
+
+#~ msgid ""
+#~ "When this contact adds new encryption keys to their account, "
+#~ "automatically accept them."
+#~ msgstr ""
+#~ "Când acest contact adäugă chei de criptare noi în contul lor, acestea vor "
+#~ "fi acceptate în mod automat."
+
+#~ msgid ""
+#~ "When you add new encryption keys to your account, automatically accept "
+#~ "them."
+#~ msgstr ""
+#~ "Când adäugați chei de criptare noi pentru acest cont, acestea vor fi "
+#~ "acceptate în mod automat."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "Acceptă această cheie în timpul comunicării cu acest contact asociat."
+
+#~ msgid "Reject Key"
+#~ msgstr "Respingere cheie"
+
+#~ msgid "Accept Key"
+#~ msgstr "Acceptare cheie"
+
+#~ msgid "Unknown device (0x%.8x)"
+#~ msgstr "Dispozitiv necunoscut (0x%.8x)"
+
+#~ msgid "Other devices"
+#~ msgstr "Alte dispozitive"
+
+#~ msgid "- None -"
+#~ msgstr "- Nici unul -"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Se interoghează GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "Anunță cheie"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Eroare în GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Nici o cheie disponibilă. Generați una!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Dezactivat"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Cheia nu este în șirul de chei"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Amprentă"
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Cheie publică dezactivată"
+
+#~ msgid "Select key"
+#~ msgstr "Selectați cheia"
+
+#~ msgid "Loading…"
+#~ msgstr "Se încarcă…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1101,7 +1516,7 @@ msgstr "Autentificare"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Nu s-a putut stabili o conexiune securizată"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Înapoi"
diff --git a/main/po/ru.po b/main/po/ru.po
index 3c9be41e..e18b2957 100644
--- a/main/po/ru.po
+++ b/main/po/ru.po
@@ -19,6 +19,401 @@ msgstr ""
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Weblate 5.17-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s использовал(а) ненадёжное устройство. Вы не будете видеть сообщения от "
+"устройств, которым не доверяете."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Управление устройствами"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s не доверяет этому устройству. Это означает, что у вас могут отсутствовать "
+"сообщения."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Управление ключом"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Сравните отпечаток, символ за символом, с тем, который показан на устройстве "
+"вашего контакта."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Отпечатки отличаются"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Отпечатки схожи"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Подтвердить"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Подтвердить ключ"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Будущие сообщения, отправленные %s с устройства, использующего этот ключ, "
+"будут соответствующим образом выделены в окне чата."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Отпечатки не совпадают"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Пожалуйста, проверьте совпадение отпечатков. Если они не совпадают, аккаунт "
+"\"%s\" может быть скомпрометирован, и вам стоит отклонить этот ключ."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Подтвердить отпечаток"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr "Сверить этот отпечаток с ключом, отображаемым у контакта."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Отклонить ключ"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Заблокировать зашифрованную связь с устройством контакта, использующего этот "
+"ключ."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Принять ключ"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Разрешает зашифрованную связь с устройством контакта, использующего этот "
+"ключ."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Ключ был успешно %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "принят"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Это означает, что %s теперь может отправлять и принимать зашифрованные "
+"сообщения."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "проверен"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr "Также была проведена проверка совпадения ключа."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "отклонён"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Это означает что он не сможетт использоваться %s для расшифровки ваших "
+"сообщений, и вы также не увидите сообщений зашифрованных им."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Вы не увидите зашифрованных сообщений от устройства %s, которое использует "
+"этот ключ. И наоборот, это устройство больше не сможет расшифровывать ваши "
+"сообщения."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Вы сможете обмениваться зашифрованными сообщениями с устройством %s, которое "
+"использует этот ключ."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Настроить"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Этот контакт воспользовался новым устройством"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "Требуется решение OMEMO о доверии"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Вы добавляли аккаунт %s на новое устройство?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO по умолчанию"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Включить OMEMO-шифрование для новых бесед"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Шифрование для новых устройств"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Автоматическое шифрование для новых устройств этого контакта."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Новые ключи"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Новые ключи шифрования от других ваших устройств будут приняты автоматически."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Это устройство"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Другое устройство"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Устройство"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Принят"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Отклонён"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Подтверждён"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Новое устройство"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Каждое устройство имеет свой собственный ключ OMEMO. Сообщения могут быть "
+"расшифрованы устройством только в том случае, если они зашифрованы его "
+"ключом. Сообщения зашифрованы только для одобренных устройств."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "Управление ключами OMEMO"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d устройство OMEMO"
+#~ msgstr[1] "%d устройства OMEMO"
+#~ msgstr[2] "%d устройств OMEMO"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Автоматически принимать новые ключи"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr ""
+#~ "Новые ключи шифрования от этого контакта будут приняты автоматически."
+
+#~ msgid "Own key"
+#~ msgstr "Собственный ключ"
+
+#~ msgid "Associated keys"
+#~ msgstr "Связанные ключи"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Неактивные ключи"
+
+#~ msgid "Unused"
+#~ msgstr "Не используется"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Отпечаток этого устройства"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Будет сгенерирован при первом подключении"
+
+#~ msgid "Your contact"
+#~ msgstr "Ваш контакт"
+
+#~ msgid "Not matching"
+#~ msgstr "Не совпадает"
+
+#~ msgid "Matching"
+#~ msgstr "Совпадает"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "highlighted accordingly in the chat window."
+#~ msgstr ""
+#~ "После подтверждения все последующие сообщения, отправленные с %s при "
+#~ "помощи этого ключа, будут соответственно подсвечены в окне чата."
+
+#~ msgid ""
+#~ "Stop accepting this key during communication with its associated contact."
+#~ msgstr "Не принимать ключ этого контакта."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact"
+#~ msgstr "Принять ключ этого контакта"
+
+#~ msgid ""
+#~ "This means it cannot be used by %s to receive messages, and any messages "
+#~ "sent by it will be ignored."
+#~ msgstr ""
+#~ "Это значит, что %s не может отправлять сообщения — все они будут "
+#~ "игнорироваться."
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "ignored and none of your messages will be readable using this key."
+#~ msgstr ""
+#~ "После подтверждения все будущие сообщения, отправленные %s с "
+#~ "использованием этого ключа, будут игнорироваться и ни одно из ваших "
+#~ "сообщений не сможет быть прочитано с использованием этого ключа."
+
+#~ msgid ""
+#~ "Once confirmed this key will be usable by %s to receive and send messages."
+#~ msgstr ""
+#~ "После подтверждения этот ключ будет использоваться %s для получения и "
+#~ "отправки сообщений."
+
+#~ msgid ""
+#~ "When this contact adds new encryption keys to their account, "
+#~ "automatically accept them."
+#~ msgstr ""
+#~ "Когда этот контакт добавляет новые ключи шифрования в свою учетную "
+#~ "запись, автоматически принимайте их."
+
+#~ msgid ""
+#~ "When you add new encryption keys to your account, automatically accept "
+#~ "them."
+#~ msgstr ""
+#~ "Когда вы добавляете новые ключи шифрования в свою учетную запись, "
+#~ "автоматически принимайте их."
+
+#~ msgid "Unknown device (0x%.8x)"
+#~ msgstr "Неизвестное устройство (0x%.8x)"
+
+#~ msgid "Other devices"
+#~ msgstr "Другие устройства"
+
+#~ msgid "- None -"
+#~ msgstr "- Нет -"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Запрос GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "Объявленный ключ"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Ошибка в GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Нет доступных ключей. Стоило бы сгенерировать один!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Выключено"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Отсутствует ключ в связке"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Отпечаток"
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Публикация ключа отключена"
+
+#~ msgid "Select key"
+#~ msgstr "Выбрать ключ"
+
+#~ msgid "Loading…"
+#~ msgstr "Загрузка…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1099,7 +1494,7 @@ msgstr "Войти"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Не удалось установить защищённое соединение"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Назад"
diff --git a/main/po/si.po b/main/po/si.po
index 52810233..595c767b 100644
--- a/main/po/si.po
+++ b/main/po/si.po
@@ -18,6 +18,9 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 5.1-dev\n"
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1095,6 +1098,7 @@ msgstr ""
msgid "Could not establish a secure connection"
msgstr ""
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "පෙර"
diff --git a/main/po/sq.po b/main/po/sq.po
index 7574a426..d4094b4a 100644
--- a/main/po/sq.po
+++ b/main/po/sq.po
@@ -17,6 +17,335 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.15-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s ka përdorur një pajisje jo të besuar. S’do të shihni mesazhe prej "
+"pajisjesh që nuk i besoni."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Administroni pajisje"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s nuk e beson këtë pajisje. Kjo do të thotë, mund të jeni duke humbur "
+"mesazhe."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Administroni Kyç"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Krahasoni shenjën e gishtave, shenjë pas shenje, me atë të shfaqur në "
+"pajisjen e kontaktit tuaj."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Shenjat e gishtave janë të ndryshme"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Shenjat e gishtave përputhen"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Ripohojeni"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Verifikoni kyç"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Mesazhe të ardhshme dërguar nga %s prej pajisjes që përdor këtë kyç do të "
+"theksohen te dritarja e fjalosjes."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Shenjat e gishtave s’përputhen"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Ju lutemi, verifikoni se po krahasoni shenjat e sakta të gishtave. Nëse "
+"shenjat e gishtave s’përputhen, llogaria e %s mund të komprometohet dhe "
+"duhet të shihni mundësinë e hedhjes poshtë të këtij kyçi."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Verifikoni shenja gishtash kyçi"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Krahasoni shenjën e gishtit të këtij kyçi me shenjën e gishtit të shfaqur në "
+"pajisjen e kontaktit."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Hidhe tej kyçin"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Blloko komunikim të fshehtëzuar me pajisjen e kontaktit që përdor këtë kyç."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Pranoje kyçin"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Lejo komunikim të fshehtëzuar me pajisjen e kontaktit që përdor këtë kyç."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Ky kyç aktualisht është %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "i pranuar"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Kjo do të thotë se mund të përdoret nga %s për të marrë dhe dërguar mesazhe "
+"të fshehtëzuara."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "i verifikuar"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+"Për më tepër, është verifikuar për t’u përputhur me kyçin në pajisjen e "
+"kontaktit."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "i hedhur poshtë"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Kjo do të thotë se s’mund të përdoret nga %s për të deshifruar mesazhet "
+"tuaja dhe s’do të shihni dot mesazhe të fshehtëzuara me të."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"S’do të shihni dot mesazhe të fshehtëzuar prej pajisjes së %s që përdor këtë "
+"kyç. Më anë tjetër, ajo pajisje s’do të jetë në gjendje të deshifrojë më "
+"mesazhet tuaja."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Do të jeni në gjendje të shkëmbeni mesazhe të fshehtëzuar me pajisjen e %s "
+"që përdor këtë kyç."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Administroni"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Ky kontakt ka pajisje të reja"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "Lypset vendim besimi OMEMO"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Shtuat një pajisje të re për llogarinë %s?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO, si parazgjedhje"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Aktivizo fshehtëzim OMEMO për biseda të reja"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Fshehtëzo në pajisje të reja"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Fshehtëzo automatikisht në pajisje të reja nga ky kontakt."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Kyçe të rinj"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Kyçe të rinj fshehtëzimi prej pajisjesh tuaja të tjera do të pranohen "
+"automatikisht."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Këtë pajisje"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Tjetër pajisje"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Pajisje"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Të pranuar"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Të hedhur tej"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Të verifikuar"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Pajisje e re"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Çdo pajisje ka kyçin e vet OMEMO. Mesazhet mund të shfshehtëzohen vetëm nga "
+"një pajisje, nëse janë fshehtëzuar me kyçin e saj."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "Administrim Kyçesh OMEMO"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d pajisje OMEMO"
+#~ msgstr[1] "%d pajisje OMEMO"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Prano automatikisht kyçe të rinj"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr ""
+#~ "Kyçe të rinj fshehtëzimi nga ky kontakt do të pranohen automatikisht."
+
+#~ msgid "Own key"
+#~ msgstr "Kyç i vet"
+
+#~ msgid "Associated keys"
+#~ msgstr "Kyçe të përshoqëruar"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Kyçe jo aktivë"
+
+#~ msgid "Unused"
+#~ msgstr "Të papërdorur"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Shenjë e vet gishtash"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Do të prodhohet gjatë lidhjes së parë"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Po pyetet GnuPG-ja"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "Njoftojeni kyçin"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Gabim në GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "S’ka kyçe gati. Prodhoni një të tillë!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "I çaktivizuar"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Kyç jo në varg kyçesh"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Shenja gishtash"
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Publikim kyçesh i çaktivizuar"
+
+#~ msgid "Select key"
+#~ msgstr "Përzgjidhni kyç"
+
+#~ msgid "Loading…"
+#~ msgstr "Po ngarkohet…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1093,7 +1422,7 @@ msgstr "Hyrje"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "S’u vendos dot një lidhje të sigurt"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Mbrapsht"
diff --git a/main/po/sv.po b/main/po/sv.po
index f43ea3e2..af5137dd 100644
--- a/main/po/sv.po
+++ b/main/po/sv.po
@@ -17,6 +17,388 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.7.2-rc\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s har använt en ej betrodd enhet. Du kommer inte se meddelanden från "
+"enheter du inte litar på."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Hantera enheter"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr "%s litar inte på den här enheten. Du kanske inte ser alla meddelanden."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Hantera nyckel"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Jämför fingeravtrycket, tecken för tecken, med det som visas i din kontakts "
+"enhet."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Fingeravtrycken matcher ej"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Fingeravtrycken matchar"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Bekräfta"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Verifiera nyckel"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Framtida meddelanden skickade av %s från enheten som använder denna nyckel "
+"kommer tydligt att markeras i chattfönstret."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Fingeravtrycken överensstämmer inte"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Kontrollera att du jämför rätt fingeravtryck. Om fingeravtrycken inte "
+"stämmer så kan %s konto vara underminerat och du bör överväga att avvisa "
+"denna nyckel."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Verifiera nyckelns fingeravtryck"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Jämför nyckelns fingeravtryck med det fingeravtryck som visas i kontaktens "
+"enhet."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Avvisa nyckeln"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Blockera krypterad kommunikation med kontaktens enhet som använder den här "
+"nyckeln."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Acceptera nyckeln"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Tillåt krypterad kommunikation med kontaktens enhet som använder den här "
+"nyckeln."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Denna nyckel är för närvarande %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "accepterad"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Det betyder att den kan användas av %s för att skicka och ta emot krypterade "
+"meddelanden."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "verifierad"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+"Dessutom har den verifierats så att den överensstämmer med nyckeln på "
+"kontaktens enhet."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "avvisad"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Det innebär att den inte kan användas av %s för att dechiffrera dina "
+"meddelanden och du ser inte meddelanden som krypterats med den."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Du ser inte krypterade meddelanden från enheten %s som använder den här "
+"nyckeln. Omvänt kan den enheten inte dechiffrera dina meddelanden längre."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Du kommer att kunna utbyta krypterade meddelanden med enheten %s som "
+"använder den här nyckeln."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Hantera"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Denna kontakt har nya enheter"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "OMEMO-tillitsbeslut krävs"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Har du lagt till en ny enhet för kontot %s?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO som standard"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Aktivera OMEMO kryptering för nya konversationer"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Kryptera nya enheter"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Kryptera automatiskt för nya enheter från den här kontakten."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Ny nyckel"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr "Nya krypteringsnycklar från dina andra enheter accepteras automatiskt."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Accepterad"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Avvisad"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Verifierad"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Ny enhet"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "OMEMO-nyckelhantering"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d OMEMO-enhet"
+#~ msgstr[1] "%d OMEMO-enheter"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Acceptera automatiskt nya nycklar"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr ""
+#~ "Nya krypteringsnycklar från den här kontakten accepteras automatiskt."
+
+#~ msgid "Own key"
+#~ msgstr "Egen nyckel"
+
+#~ msgid "Associated keys"
+#~ msgstr "Kopplade nycklar"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Inaktiva nycklar"
+
+#~ msgid "Unused"
+#~ msgstr "Oanvänd"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Eget fingeravtryck"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Genereras vid första anslutningstillfället"
+
+#~ msgid "Your contact"
+#~ msgstr "Din kontakt"
+
+#~ msgid "Not matching"
+#~ msgstr "Stämmer ej"
+
+#~ msgid "Matching"
+#~ msgstr "Stämmer"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "highlighted accordingly in the chat window."
+#~ msgstr ""
+#~ "Om du går vidare så kommer framtida meddelanden från %s med denna nyckel "
+#~ "att markeras i enlighet med nyckelns nya status."
+
+#~ msgid ""
+#~ "Stop accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "Sluta acceptera denna nyckel vid kommunikation med den tillhörande "
+#~ "kontakten."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact"
+#~ msgstr ""
+#~ "Börja acceptera nyckeln för kommunikation med den tillhörande kontakten"
+
+#~ msgid ""
+#~ "This means it cannot be used by %s to receive messages, and any messages "
+#~ "sent by it will be ignored."
+#~ msgstr ""
+#~ "Det betyder att den inte kan användas av %s för att ta emot meddelanden, "
+#~ "och att alla skickade meddelanden kommer att ignoreras."
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "ignored and none of your messages will be readable using this key."
+#~ msgstr ""
+#~ "Om du går vidare så kommer framtida meddelanden från %s som använder "
+#~ "denna nyckel att ignoreras, och meddelanden från dig blir oläsbara med "
+#~ "denna nyckel."
+
+#~ msgid ""
+#~ "Once confirmed this key will be usable by %s to receive and send messages."
+#~ msgstr ""
+#~ "Om du går vidare så kommer nyckeln kunna användas av %s för att skicka "
+#~ "och ta emot meddelanden."
+
+#~ msgid ""
+#~ "When this contact adds new encryption keys to their account, "
+#~ "automatically accept them."
+#~ msgstr "Acceptera automatiskt nya nycklar som läggs till av denna kontakt."
+
+#~ msgid ""
+#~ "When you add new encryption keys to your account, automatically accept "
+#~ "them."
+#~ msgstr "Acceptera automatiskt nya nycklar som du läggs till ditt konto."
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Frågar GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Fel i GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Inga nycklar tillgängliga. Generera en!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Inaktiverad"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Nyckeln finns inte i nyckelknippan"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr ""
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Nyckelpublicering inaktiverad"
+
+#~ msgid "Select key"
+#~ msgstr "Välj nyckel"
+
+#~ msgid "Loading…"
+#~ msgstr "Laddar…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1094,7 +1476,7 @@ msgstr ""
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Kunde inte etablera en säker anslutning"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Tillbaka"
diff --git a/main/po/ta.po b/main/po/ta.po
index c51b5b40..07d9b57d 100644
--- a/main/po/ta.po
+++ b/main/po/ta.po
@@ -17,6 +17,312 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.16.1-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s நம்பத்தகாத சாதனத்தைப் பயன்படுத்துகின்றன. நீங்கள் நம்பாத சாதனங்களிலிருந்து செய்திகளை "
+"நீங்கள் காண மாட்டீர்கள்."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "சாதனங்களை நிர்வகிக்கவும்"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr "இந்த சாதனத்தை %s நம்பவில்லை. அதாவது, நீங்கள் செய்திகளைக் காணவில்லை."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "விசையை நிர்வகிக்கவும்"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"உங்கள் தொடர்பின் சாதனத்தில் காட்டப்பட்டுள்ள கைரேகை, எழுத்துக்குறி எழுத்துக்குறியை ஒப்பிடுக."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "கைரேகைகள் வேறுபடுகின்றன"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "கைரேகைகள் பொருந்துகின்றன"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "உறுதிப்படுத்தவும்"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "விசையை சரிபார்க்கவும்"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"இந்த விசையைப் பயன்படுத்தும் சாதனத்திலிருந்து %s அனுப்பிய எதிர்கால செய்திகள் அரட்டை "
+"சாளரத்தில் அதற்கேற்ப முன்னிலைப்படுத்தப்படும்."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "கைரேகைகள் பொருந்தவில்லை"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"நீங்கள் சரியான கைரேகையை ஒப்பிடுகிறீர்கள் என்பதை சரிபார்க்கவும். கைரேகைகள் பொருந்தவில்லை "
+"என்றால், %s இன் கணக்கு வேறுபாடின்மை செய்யப்படலாம், மேலும் இந்த விசையை நிராகரிப்பதை நீங்கள் "
+"கருத்தில் கொள்ள வேண்டும்."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "முக்கிய கைரேகையை சரிபார்க்கவும்"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr "இந்த விசையின் கைரேகையை தொடர்பின் சாதனத்தில் காட்டப்படும் கைரேகையுடன் ஒப்பிடுக."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "விசையை நிராகரிக்கவும்"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"இந்த விசையைப் பயன்படுத்தும் தொடர்புகளின் சாதனத்துடன் மறைகுறியாக்கப்பட்ட தகவல்தொடர்புகளைத் "
+"தடுக்கவும்."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "சாவியை ஏற்றுக்கொள்"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"இந்த விசையைப் பயன்படுத்தும் தொடர்புகளின் சாதனத்துடன் மறைகுறியாக்கப்பட்ட தகவல்தொடர்புகளை "
+"அனுமதிக்கவும்."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "இந்த விசை தற்போது %s ஆகும்."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "ஏற்றுக்கொள்ளப்பட்டது"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"இதன் பொருள் மறைகுறியாக்கப்பட்ட செய்திகளைப் பெறுவதற்கும் அனுப்புவதற்கும் %s ஆல் "
+"பயன்படுத்தப்படலாம்."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "சரிபார்க்கப்பட்டது"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr "கூடுதலாக, தொடர்பின் சாதனத்தில் விசையுடன் பொருந்த இது சரிபார்க்கப்பட்டது."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "நிராகரிக்கப்பட்டது"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"இதன் பொருள் உங்கள் செய்திகளைப் புரிந்துகொள்ள %s ஆல் பயன்படுத்த முடியாது, மேலும் அதனுடன் "
+"குறியாக்கம் செய்யப்பட்ட செய்திகளை நீங்கள் காண மாட்டீர்கள்."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"இந்த விசையைப் பயன்படுத்தும் %s சாதனத்திலிருந்து மறைகுறியாக்கப்பட்ட செய்திகளை நீங்கள் காண "
+"மாட்டீர்கள். மாறாக, அந்த சாதனம் உங்கள் செய்திகளை இனி புரிந்துகொள்ள முடியாது."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"இந்த விசையைப் பயன்படுத்தும் %s சாதனத்துடன் மறைகுறியாக்கப்பட்ட செய்திகளை நீங்கள் "
+"பரிமாறிக்கொள்ள முடியும்."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "நிர்வகிக்கவும்"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "இந்த தொடர்புக்கு புதிய சாதனங்கள் உள்ளன"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "ஓம்மோ நம்பிக்கை முடிவு தேவை"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "கணக்கு %s க்கு புதிய சாதனத்தைச் சேர்த்தீர்களா?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "இயல்பாக ஓம்மோ"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "புதிய உரையாடல்களுக்கான ஓமமோ குறியாக்கத்தை இயக்கவும்"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "புதிய சாதனங்களுக்கு குறியாக்கம்"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "இந்த தொடர்பிலிருந்து புதிய சாதனங்களுக்கு தானாக குறியாக்கம் செய்யுங்கள்."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "புதிய விசைகள்"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr "உங்கள் பிற சாதனங்களிலிருந்து புதிய குறியாக்க விசைகள் தானாக ஏற்றுக்கொள்ளப்படும்."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "இந்தக் கருவி"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "பிற கருவி"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "கருவி"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "ஏற்றுக்கொள்ளப்பட்டது"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "நிராகரிக்கப்பட்டது"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "சரிபார்க்கப்பட்டது"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "புதிய சாதனம்"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"ஒவ்வொரு சாதனத்திற்கும் அதன் சொந்த ஓமமோ விசை உள்ளது. செய்திகளை அதன் விசைக்குக் குறியாக்கம் "
+"செய்தால் மட்டுமே அவை மறைகுறியாக்கப்படும். செய்திகள் ஏற்றுக்கொள்ளப்பட்ட சாதனங்களுக்கு மட்டுமே "
+"குறியாக்கம் செய்யப்படுகின்றன."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "ஓமமோ முக்கிய மேலாண்மை"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d OMEMO சாதனம்"
+#~ msgstr[1] "%d OMEMO சாதனங்கள்"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "புதிய விசைகளை தானாக ஏற்றுக்கொள்ளுங்கள்"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr "இந்த தொடர்பிலிருந்து புதிய குறியாக்க விசைகள் தானாக ஏற்றுக்கொள்ளப்படும்."
+
+#~ msgid "Own key"
+#~ msgstr "சொந்த விசை"
+
+#~ msgid "Associated keys"
+#~ msgstr "தொடர்புடைய விசைகள்"
+
+#~ msgid "Inactive keys"
+#~ msgstr "செயலற்ற விசைகள்"
+
+#~ msgid "Unused"
+#~ msgstr "பயன்படுத்தப்படாதது"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Gnupg ஐ வினவுகிறது"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "அறிவிப்பு திறவுகோல்"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "குனுபிசீ இல் பிழை"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "திறவுகோல்கள் எதுவும் கிடைக்கவில்லை. ஒன்றை உருவாக்கு!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "முடக்கப்பட்டது"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "விசை கீச்சினில் இல்லை"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "கைரேகை"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1093,7 +1399,7 @@ msgstr "புகுபதிவு"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "பாதுகாப்பான இணைப்பை நிறுவ முடியவில்லை"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "பின்"
diff --git a/main/po/th.po b/main/po/th.po
index 3fe8a64b..afb0d917 100644
--- a/main/po/th.po
+++ b/main/po/th.po
@@ -17,6 +17,270 @@ msgstr ""
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 5.14-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr "%s ได้ใช้อุปกรณ์ที่ไม่น่าเชื่อถือ คุณจะไม่เห็นข้อความจากอุปกรณ์ที่คุณไม่น่าเชื่อถือ"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "จัดการอุปกรณ์"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr "%s ไม่เชื่อถืออุปกรณ์นี้ นั่นหมายความว่าคุณอาจพลาดข้อความ"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "จัดการกุญแจ"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr "เปรียบเทียบลายนิ้วมือแต่ละอักขระกับลายนิ้วมือที่แสดงบนอุปกรณ์ของผู้ติดต่อของคุณ"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "ลายนิ้วมือแตกต่างกัน"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "ลายนิ้วมือตรงกัน"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "ยืนยัน"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "ตรวจสอบคีย์"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr "ข้อความในอนาคตที่ส่งโดย %s จากอุปกรณ์ที่ใช้คีย์นี้จะถูกไฮไลท์ในหน้าต่างแชทตามลำดับ"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "ลายนิ้วมือไม่ตรงกัน"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"โปรดตรวจสอบให้แน่ใจว่าคุณกำลังเปรียบเทียบลายนิ้วมือที่ถูกต้อง หากลายนิ้วมือไม่ตรงกัน บัญชีของ %s "
+"อาจถูกบุกรุก และคุณควรพิจารณาปฏิเสธคีย์นี้"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "ตรวจสอบลายนิ้วมือคีย์"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr "เปรียบเทียบลายนิ้วมือของคีย์นี้กับลายนิ้วมือที่แสดงบนอุปกรณ์ของผู้ติดต่อ"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "ปฏิเสธคีย์"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr "บล็อกการสื่อสารที่เข้ารหัสกับอุปกรณ์ของผู้ติดต่อที่ใช้คีย์นี้"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "ยอมรับคีย์"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr "อนุญาตให้มีการสื่อสารแบบเข้ารหัสกับอุปกรณ์ของผู้ติดต่อที่ใช้คีย์นี้"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "คีย์นี้ปัจจุบันคือ %s"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "ได้รับการยอมรับ"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr "ซึ่งหมายความว่าสามารถใช้โดย %s เพื่อรับและส่งข้อความเข้ารหัสได้"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "ตรวจสอบแล้ว"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr "นอกจากนี้ ยังได้รับการตรวจสอบว่าตรงกับคีย์บนอุปกรณ์ของผู้ติดต่อแล้ว"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "ถูกปฏิเสธ"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"ซึ่งหมายความว่าไม่สามารถใช้ %s เพื่อถอดรหัสข้อความของคุณได้ "
+"และคุณจะไม่เห็นข้อความที่เข้ารหัสด้วยมัน"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"คุณจะไม่เห็นข้อความเข้ารหัสจากอุปกรณ์ของ %s ที่ใช้คีย์นี้ ในทางกลับกัน "
+"อุปกรณ์นั้นจะไม่สามารถถอดรหัสข้อความของคุณได้อีกต่อไป"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr "คุณจะสามารถแลกเปลี่ยนข้อความเข้ารหัสกับอุปกรณ์ %s ที่ใช้คีย์นี้ได้"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "จัดการ"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "ผู้ติดต่อรายนี้มีอุปกรณ์ใหม่"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "จำเป็นต้องมีการตัดสินใจเกี่ยวกับความไว้วางใจของ OMEMO"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "คุณได้เพิ่มอุปกรณ์ใหม่สำหรับบัญชี %s แล้วหรือยัง?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO ตามค่าเริ่มต้น"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "เปิดใช้งานการเข้ารหัส OMEMO สำหรับการสนทนาใหม่"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "เข้ารหัสไปยังอุปกรณ์ใหม่"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "เข้ารหัสไปยังอุปกรณ์ใหม่จากผู้ติดต่อนี้โดยอัตโนมัติ"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "กุญแจใหม่"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr "คีย์การเข้ารหัสใหม่จากอุปกรณ์อื่นของคุณจะได้รับการยอมรับโดยอัตโนมัติ"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "อุปกรณ์นี้"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "อุปกรณ์อื่น ๆ"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "อุปกรณ์"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "ได้รับการยอมรับ"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "ถูกปฏิเสธ"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "ได้รับการยืนยันแล้ว"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "อุปกรณ์ใหม่"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"แต่ละอุปกรณ์จะมีคีย์ OMEMO ของตัวเอง "
+"ข้อความสามารถถอดรหัสได้โดยอุปกรณ์เฉพาะเมื่อเข้ารหัสด้วยคีย์ของอุปกรณ์นั้นๆ เท่านั้น "
+"ข้อความจะถูกเข้ารหัสไปยังอุปกรณ์ที่ได้รับการยอมรับเท่านั้น"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "การสอบถาม GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "กุญแจ"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "GnuPG ผิดพลาด"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "ไม่มีคีย์ที่ใช้งานได้ สร้างอันใหม่สิ!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "ผิดพลาด"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "กุญแจไม่อยู่ในพวงกุญแจ"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "ลายนิ้วมือ"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1092,7 +1356,7 @@ msgstr ""
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr ""
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "กลับ"
diff --git a/main/po/tr.po b/main/po/tr.po
index e60361d1..82aea00a 100644
--- a/main/po/tr.po
+++ b/main/po/tr.po
@@ -17,6 +17,390 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.15-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s güvenilmeyen bir cihaz kullanıyor. Güvenmediğiniz cihazlardan gelen "
+"mesajları görmezsiniz."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Cihazları yönet"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s bu cihaza güvenmiyor. Bu, eksik mesajlarınız olabileceği anlamına gelir."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Anahtarı Yönet"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Parmak izinin her bir karakterini, kişinizin cihazında gösterilen karakterle "
+"karşılaştırın."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Parmak izleri farklı"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Parmak izleri eşleşiyor"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Onayla"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Anahtarı doğrula"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Bu anahtarı kullanan cihazdan %s tarafından gönderilen gelecekteki mesajlar, "
+"sohbet penceresinde vurgulanacaktır."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Parmak izleri uyuşmuyor"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Lütfen doğru parmak izini karşılaştırdığınızdan emin olun. Parmak izleri "
+"eşleşmezse, %s hesabının güvenliği ihlal edilmiş olabilir ve bu anahtarı "
+"reddetmenizi öneririz."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Anahtar parmak izini doğrulayın"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Bu anahtarın parmak izini, kişinin cihazında görüntülenen parmak izi ile "
+"karşılaştırın."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Anahtarı reddet"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr "Bu anahtarı kullanan kişinin cihazıyla şifreli iletişimi engelle."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Kabul"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr "Bu anahtarı kullanan kişinin cihazıyla şifreli iletişime izin ver."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Bu anahtar şu anda %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "kabul ediliyor"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Bu, şifreli mesajlar almak ve göndermek için %s tarafından kullanılabileceği "
+"anlamına gelir."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "onaylı"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr "Ayrıca, kişinin cihazındaki anahtarla eşleştiği doğrulandı."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "reddedildi"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Bu, mesajlarınızın şifresini çözmek için %s tarafından kullanılamayacağı ve "
+"onunla şifrelenmiş mesajları göremeyeceğiniz anlamına gelir."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Bu anahtarı kullanan %s cihazından gelen şifreli mesajları görmeyeceksiniz. "
+"Diğer taraftan, o cihaz artık mesajlarınızın şifresini çözemeyecek."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Bu anahtarı kullanan %s cihazıyla şifreli mesaj alışverişi yapabileceksiniz."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Yönet"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Bu kişinin yeni cihazları var"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "OMEMO güven kararı gerekli"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "%s hesabı için yeni bir cihaz eklediniz mi?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "Öntanımlı olarak OMEMO"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Yeni sohbetler için OMEMO şifrelemesini etkinleştir"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Yeni aygıtlara şifrele"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Bu kişiden yeni aygıtlara otomatik olarak şifrele."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Yeni anahtarlar"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Diğer cihazlarınızdan gelen yeni şifreleme anahtarları otomatik olarak kabul "
+"edilecek."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Bu aygıt"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Diğer aygıt"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Aygıt"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Kabul edildi"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Reddedildi"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Onaylandı"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Yeni aygıt"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Her aygıtın kendi OMEMO anahtarı vardır. Mesajlar, yalnızca kendi "
+"anahtarıyla şifrelendiyse bir aygıt tarafından şifresi çözülebilir. Mesajlar "
+"yalnızca kabul edilen aygıtlara şifrelenir."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "OMEMO Anahtar Yönetimi"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d OMEMO aygıtı"
+#~ msgstr[1] "%d OMEMO aygıtı"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Yeni anahtarları otomatik olarak kabul et"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr ""
+#~ "Bu kişiden gelen yeni şifreleme anahtarları otomatik olarak kabul "
+#~ "edilecek."
+
+#~ msgid "Own key"
+#~ msgstr "Kendi anahtarınız"
+
+#~ msgid "Associated keys"
+#~ msgstr "İlişkili anahtarlar"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Etkin olmayan anahtarlar"
+
+#~ msgid "Unused"
+#~ msgstr "Kullanılmamış"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Kendi parmak iziniz"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "İlk bağlantıda oluşturulacak"
+
+#~ msgid "Your contact"
+#~ msgstr "Kişiniz"
+
+#~ msgid "Not matching"
+#~ msgstr "Eşleşmiyor"
+
+#~ msgid "Matching"
+#~ msgstr "Eşleşti"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "highlighted accordingly in the chat window."
+#~ msgstr ""
+#~ "Onaylandıktan sonra, bu anahtarı kullanarak %s tarafından gönderilen "
+#~ "gelecek iletiler sohbet penceresinde buna göre vurgulanır."
+
+#~ msgid ""
+#~ "Stop accepting this key during communication with its associated contact."
+#~ msgstr ""
+#~ "İlişkili kişiyle iletişim kurarken bu anahtarı kabul etmeyi durdurun."
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact"
+#~ msgstr "İlişkili kişiyle iletişim için bu anahtarı kabul edin"
+
+#~ msgid ""
+#~ "This means it cannot be used by %s to receive messages, and any messages "
+#~ "sent by it will be ignored."
+#~ msgstr ""
+#~ "Bu, %s tarafından ileti almak için kullanılamayacağı ve gönderdiği "
+#~ "iletilerin yok sayılacağı anlamına gelir."
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "ignored and none of your messages will be readable using this key."
+#~ msgstr ""
+#~ "Onaylandıktan sonra, bu anahtarı kullanarak %s tarafından gönderilen "
+#~ "gelecek iletiler yok sayılır ve iletilerinizden hiçbiri bu anahtar "
+#~ "kullanılarak okunmaz."
+
+#~ msgid ""
+#~ "Once confirmed this key will be usable by %s to receive and send messages."
+#~ msgstr ""
+#~ "Onaylandıktan sonra bu anahtar %s tarafından mesaj almak ve göndermek "
+#~ "için kullanılabilir."
+
+#~ msgid ""
+#~ "When this contact adds new encryption keys to their account, "
+#~ "automatically accept them."
+#~ msgstr ""
+#~ "Bu kişi hesaplarına yeni şifreleme anahtarları eklediğinde, otomatik "
+#~ "olarak kabul edilir."
+
+#~ msgid ""
+#~ "When you add new encryption keys to your account, automatically accept "
+#~ "them."
+#~ msgstr ""
+#~ "Hesabınıza yeni şifreleme anahtarları eklediğinizde, bunları otomatik "
+#~ "olarak kabul edin."
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "GnuPG sorgu"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "Anahtarı yayınla"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "GnuPG'de Hata"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Anahtar yok. Bir tane oluşturun!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Devre dışı"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Anahtar anahtarlıkta değil"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Parmak izi"
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Anahtar yayınlama devre dışı"
+
+#~ msgid "Select key"
+#~ msgstr "Anahtar seçin"
+
+#~ msgid "Loading…"
+#~ msgstr "Yükleniyor…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1093,7 +1477,7 @@ msgstr "Oturum aç"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Güvenli bir bağlantı oluşturulamadı"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Geri"
diff --git a/main/po/uk.po b/main/po/uk.po
index d14a90dd..5138d9b9 100644
--- a/main/po/uk.po
+++ b/main/po/uk.po
@@ -18,6 +18,337 @@ msgstr ""
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Weblate 5.15.1\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s використовував(ла) ненадійний пристрій. Ви не будете бачити повідомлення "
+"від пристроїв, яким не довіряєте."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Керування пристроями"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s не довіряє цьому пристрою. Це означає, що ви можете не отримувати "
+"повідомлення."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Керування ключем"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"Порівняйте відбиток, літеру за літерою з тим, що відібражається на пристрої "
+"вашого контакту."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Відбитки відрізняються"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Відбитки збігаються"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Підтвердити"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Підтвердити ключ"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Майбутні повідомлення надіслані %s з пристрія, який використовує цей ключ, "
+"будуть відповідно виделені у вікні чату."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Відбитки не збігаються"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Будьласка перевірте, що ви порівнюєте саме той відбиток. Якщо відбитки не "
+"збігаються, обліковий запис %s може бути скомпрометовано, і вам слід "
+"відхилити цей ключ."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Підтвердити відбиток ключа"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"Порівняйте цей відбиток ключа з відбитком, який відображається у пристрої "
+"контакта."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Відхилити ключ"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Заблокувати шифрований зв'язок з пристроєм контакта, який викорустовує цей "
+"ключ."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Прийняти ключ"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr ""
+"Дозволити шифрований зв'язок з пристроєм контакта, який викорустовує цей "
+"ключ."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Цей ключ зараз є %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "прийнято"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Це означає, що %s тепер може приймати та відсилати шифровані повідомлення."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "перевірено"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr "Додатково була підтверджена відповідність ключа на пристрої контакту."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "відхилено"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Це означає, що він не може бути задіян %s щоб дешифрувати ваші повідомлення "
+"і ви не зможете побачити повідомлень зашифрованих ним."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Ви не побачете шифровані повідомлення з пристрія %s, що використовує цей "
+"ключ. І навпаки, цей пристрій більше не зможе розшифрувати ваші повідомлення."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Ви можете обмінюватися шифрованими повідомленнями з пристріем %s, що "
+"використовує цей ключ."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Налаштувати"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "У цього контакту з'явилися нові пристрої"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "Потрібне рішення OMEMO про довіру"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Чи додавали ви новий пристрій до облікового запису %s?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "OMEMO за замовчуванням"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Увімкнути шифрування OMEMO для нових розмов"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Шифрувати до нових пристроїв"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Одразу шифрувати до нових пристроїв цього контакту."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Нові ключи"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Нові ключи шифрування з ваших інших пристроїв будуть прийматися автоматично."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Цей пристрій"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Інший пристрій"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Пристрій"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Прийнятий"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Відхилений"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Перевірений"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Новий пристрій"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Кожен пристрій має власний ключ OMEMO. Повідомлення можуть бути розшифровані "
+"пристроєм, лише якщо вони зашифровані його ключем. Повідомлення шифруються "
+"лише для підтримуваних пристроїв."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "Управління ключами OMEMO"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d пристрій OMEMO"
+#~ msgstr[1] "%d пристрої OMEMO"
+#~ msgstr[2] "%d пристроїв OMEMO"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Автоматично прийняти нові ключи"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr ""
+#~ "Нові ключи шифрування від цього контакта будуть прийматися автоматично."
+
+#~ msgid "Own key"
+#~ msgstr "Власний ключ"
+
+#~ msgid "Associated keys"
+#~ msgstr "Асоційовані ключі"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Неактивні ключи"
+
+#~ msgid "Unused"
+#~ msgstr "Невикористаний"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Власний відбиток"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Буде згенеровано при першому з'єднанні"
+
+#~ msgid "Your contact"
+#~ msgstr "Ваш контакт"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Запит до GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "Оголосити ключ"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Помилка у GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Немає доступних ключей. Сгенеріть!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Вимкнено"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Відсутній ключ у зв’язці"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "Відбиток пальця"
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Публікація ключа відключена"
+
+#~ msgid "Select key"
+#~ msgstr "Вибрати ключ"
+
+#~ msgid "Loading…"
+#~ msgstr "Завантаження…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1098,7 +1429,7 @@ msgstr "Логін"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Не вдалося встановити безпечне з'єднання"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Назад"
diff --git a/main/po/vi.po b/main/po/vi.po
index d2fa54f5..b9280d5a 100644
--- a/main/po/vi.po
+++ b/main/po/vi.po
@@ -17,6 +17,331 @@ msgstr ""
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 5.13-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr ""
+"%s đang sử dụng một thiết bị chưa được tin tưởng. Bạn sẽ không nhìn thấy tin "
+"nhắn từ các thiệt bị bạn không tin tưởng."
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "Quản lý thiết bị"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr ""
+"%s không tin tưởng thiết bị này. Điều đó có nghĩa là bạn có thể bị thiếu tin "
+"nhắn."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "Quản lý khóa"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr ""
+"So sánh chuỗi fingerprint từng ký tự một với chuỗi được hiển thị trên thiết "
+"bị của liên hệ của bạn."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "Fingerprints khác nhau"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "Fingerprints trùng khớp"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "Xác nhận"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "Xác thực khoá"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr ""
+"Tin nhắn được gửi trong tương lai bởi %s từ thiết bị sử dụng khoá này sẽ "
+"được làm nổi bật trong cửa sổ trò chuyện."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "Fingerprints không khớp"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"Vui lòng xác minh rằng bạn đang so sánh đúng chuỗi fingerprint. Nếu "
+"fingerprints không khớp, tài khoản của %s có thể đã bị xâm phạm và bạn nên "
+"cân nhắc từ chối khoá này."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "Xác thực khoá fingerprint"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr ""
+"So sáng chuỗi fingerprint của khoá này với chuỗi fingerprint được hiển thị "
+"trên thiết bị của người liên hệ."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "Từ chối khoá"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr "Chặn liên lạc được mã hóa với thiết bị của liên hệ sử dụng khóa này."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "Chấp nhận khóa"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr "Cho phép giao tiếp mã hóa với thiết bị của liên hệ sử dụng khóa này."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "Khoá này hiện %s."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "đã chấp nhận"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr ""
+"Điều này có nghĩa là nó có thể được sử dụng bởi %s để nhận và gửi tin nhắn "
+"được mã hóa."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "đã xác thực"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr ""
+"Ngoài ra, nó đã được xác thực trùng khớp với khóa trên thiết bị của người "
+"liên hệ."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "đã bị từ chối"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr ""
+"Điều này có nghĩa là %s không thể sử dụng nó để giải mã tin nhắn của bạn và "
+"bạn sẽ không thấy tin nhắn được mã hóa bằng nó."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"Bạn sẽ không thấy tin nhắn được mã hóa từ thiết bị của %s sử dụng khóa này. "
+"Ngược lại, thiết bị đó cũng sẽ không thể giải mã tin nhắn của bạn nữa."
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr ""
+"Bạn sẽ có thể trao đổi tin nhắn được mã hóa với thiết bị của %s sử dụng khóa "
+"này."
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "Quản lý"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "Liên hệ này có thiết bị mới"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "Yêu cầu quyết định ủy thác OMEMO"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "Bạn đã thêm một thiết bị mới cho tài khoản %s à?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "Mặc định mã hoá OMEMO"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "Kích hoạt mã hoá OMEMO cho những cuộc hội thoại mới"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "Mã hoá cho các thiết bị mới"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "Tự động mã hóa sang các thiết bị mới từ liên hệ này."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "Khoá mới"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr ""
+"Khóa mã hóa mới từ các thiết bị khác của bạn sẽ được chấp nhận tự động."
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "Thiết bị này"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "Thiết bị khác"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "Thiết bị"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "Đã chấp nhận"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "Đã từ chối"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "Đã xác thực"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "Thiết bị mới"
+
+#: main/data/encryption_preferences_entry.ui:8
+#, fuzzy
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"Mỗi thiết bị có một khoá mã hoá OMEMO riêng. Tin nhắn chỉ có thể được giải "
+"mã bởi một thiết bị nếu chúng được mã hóa bằng khóa của thiết bị đó. Tin "
+"nhắn chỉ được mã hóa bởi các thiết bị được chấp nhận."
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "Quản lý khóa OMEMO"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d thiết bị OMEMO"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "Tự động chấp nhận khóa mới"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr "Các khóa mã hóa mới từ liên hệ này sẽ được chấp nhận tự động."
+
+#~ msgid "Own key"
+#~ msgstr "Khoá của bạn"
+
+#~ msgid "Associated keys"
+#~ msgstr "Các khóa đã liên kết"
+
+#~ msgid "Inactive keys"
+#~ msgstr "Các khoá không hoạt động"
+
+#~ msgid "Unused"
+#~ msgstr "Chưa được sử dụng"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "Fingerprint đang sở hữu"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "Sẽ được tạo trong lần kết nối đầu tiên"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "Đang truy vấn GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "Lỗi trong GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "Không có khoá khả dụng. Hãy tạo một khoá!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "Đã vô hiệu hoá"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "Khoá không trong chuỗi khoá"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr ""
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "Công khai khoá đã bị vô hiệu hoá"
+
+#~ msgid "Select key"
+#~ msgstr "Chọn khoá"
+
+#~ msgid "Loading…"
+#~ msgstr "Đang tải…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1096,7 +1421,7 @@ msgstr "Đăng nhập"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "Không thể thiết lập kết nối an toàn"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "Quay lại"
diff --git a/main/po/zh_CN.po b/main/po/zh_CN.po
index c49932e7..dfa4da37 100644
--- a/main/po/zh_CN.po
+++ b/main/po/zh_CN.po
@@ -18,6 +18,370 @@ msgstr ""
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 5.16.1-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr "%s 正在使用未受信任的设备。您将无法查看来自您未信任的设备的消息。"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "管理设备"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr "%s 未信任此设备,这意味着您可能会丢失消息。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "管理密钥"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr "请将指纹逐个字符与对方设备上显示的指纹进行比对。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "指纹不匹配"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "指纹匹配"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "确认"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "验证密钥"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr "%s 今后从使用此密钥的设备发送的消息将在聊天窗口中相应突出显示。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "指纹不匹配"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"请验证您正在比对的指纹是否正确。如果指纹不匹配,%s 的账号可能已被盗用,您应考"
+"虑拒绝此密钥。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "验证密钥指纹"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr "请将此密钥的指纹与对方设备上显示的指纹进行比对。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "拒绝密钥"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr "阻止与使用此密钥的对方设备进行加密通信。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "接受密钥"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr "允许与使用此密钥的对方设备进行加密通信。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "此密钥当前%s。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "已接受"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr "这意味着 %s 可以使用此密钥来接收和发送加密消息。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "已验证"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr "此外,已验证其与对方设备上的密钥匹配。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "已拒绝"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr "这意味着 %s 无法使用它来解密您的消息,您将无法查看用它加密的消息。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"您将无法查看来自 %s 的使用此密钥的设备的加密消息。反之,该设备将无法再解密您"
+"的消息。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr "您将能够与 %s 的使用此密钥的设备交换加密消息。"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "管理"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "此联系人有新设备"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "需要 OMEMO 信任决定"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "您是否为账号 %s 添加了新设备?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr "默认使用 OMEMO"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr "为新对话启用 OMEMO 加密"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr "加密新设备"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr "自动加密此联系人的新设备。"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "新密钥"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr "将自动接受来自您其他设备的新加密密钥。"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr "此设备"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr "其他设备"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr "设备"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "已接受"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "已拒绝"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "已验证"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr "新设备"
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+"每个设备都有自己的 OMEMO 密钥。设备只能解密对设备密钥加密的消息。消息仅对已接"
+"受的设备进行加密。"
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "OMEMO 密钥管理"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d 个 OMEMO 设备"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "自动接受新密钥"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr "将自动接受来自此联系人的新加密密钥。"
+
+#~ msgid "Own key"
+#~ msgstr "自己的密钥"
+
+#~ msgid "Associated keys"
+#~ msgstr "关联的密钥"
+
+#~ msgid "Inactive keys"
+#~ msgstr "非活动密钥"
+
+#~ msgid "Unused"
+#~ msgstr "不再使用"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "自己的指纹"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "将在第一次连接时生成"
+
+#~ msgid "Your contact"
+#~ msgstr "您的联系人"
+
+#~ msgid "Not matching"
+#~ msgstr "不匹配"
+
+#~ msgid "Matching"
+#~ msgstr "匹配"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "highlighted accordingly in the chat window."
+#~ msgstr ""
+#~ "一旦确认,未来由%s使用此密钥发送的任何消息将在聊天窗口中相应突出显示。"
+
+#~ msgid ""
+#~ "Stop accepting this key during communication with its associated contact."
+#~ msgstr "在与其关联的联系人通信期间停止接受此密钥。"
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact"
+#~ msgstr "在与其关联的联系人通信期间开始接受此密钥"
+
+#~ msgid ""
+#~ "This means it cannot be used by %s to receive messages, and any messages "
+#~ "sent by it will be ignored."
+#~ msgstr "这意味着%s不能使用它来接收消息, 它发送的任何消息都将被忽略。"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "ignored and none of your messages will be readable using this key."
+#~ msgstr ""
+#~ "一旦确认,由%s使用此密钥发送的任何未来消息都将被忽略,并且使用此密钥将无法"
+#~ "读取任何消息。"
+
+#~ msgid ""
+#~ "Once confirmed this key will be usable by %s to receive and send messages."
+#~ msgstr "一旦确认,此密钥将被%s用于接收和发送消息。"
+
+#~ msgid ""
+#~ "When this contact adds new encryption keys to their account, "
+#~ "automatically accept them."
+#~ msgstr "当此联系人向其帐户添加新的加密密钥时,自动接受它们。"
+
+#~ msgid ""
+#~ "When you add new encryption keys to your account, automatically accept "
+#~ "them."
+#~ msgstr "当您向帐户添加新的加密密钥时,会自动接受它们。"
+
+#~ msgid "Unknown device (0x%.8x)"
+#~ msgstr "未知设备 (0x%.8x)"
+
+#~ msgid "Other devices"
+#~ msgstr "其他设备"
+
+#~ msgid "- None -"
+#~ msgstr "- 无 -"
+
+#~ msgid "Database error"
+#~ msgstr "数据库错误"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "正在查询 GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr "公布密钥"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "GnuPG 错误"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "没有密钥可用。生成一个吧!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr "已禁用"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "密钥不在密钥链中"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr "指纹"
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "已禁用密钥发布功能"
+
+#~ msgid "Select key"
+#~ msgstr "选择密钥"
+
+#~ msgid "Loading…"
+#~ msgstr "载入中…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1090,7 +1454,7 @@ msgstr "登录"
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "无法建立安全连接"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "返回"
diff --git a/main/po/zh_TW.po b/main/po/zh_TW.po
index 9a62f09b..3bc18948 100644
--- a/main/po/zh_TW.po
+++ b/main/po/zh_TW.po
@@ -17,6 +17,356 @@ msgstr ""
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 5.14-dev\n"
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:168
+#, c-format
+msgid ""
+"%s has been using an untrusted device. You won't see messages from devices "
+"that you do not trust."
+msgstr "%s 使用了未信任的裝置。您不會看見來自未被您信任裝置的訊息。"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:169
+msgid "Manage devices"
+msgstr "管理裝置"
+
+#: main/src/plugins/omemo/ui/bad_messages_populator.vala:171
+#, c-format
+msgid ""
+"%s does not trust this device. That means, you might be missing messages."
+msgstr "%s 不信任這部裝置。這意味著您可能會遺漏訊息。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:34
+msgid "Manage Key"
+msgstr "管理金鑰"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:35
+msgid ""
+"Compare the fingerprint, character by character, with the one shown on your "
+"contact's device."
+msgstr "將指紋與顯示在聯絡人裝置上的指紋逐個字元地進行比較。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:36
+msgid "Fingerprints differ"
+msgstr "指紋不同"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:37
+msgid "Fingerprints match"
+msgstr "指紋吻合"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:39
+msgid "Confirm"
+msgstr "確定"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:59
+msgid "Verify key"
+msgstr "核驗金鑰"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:60
+#, c-format
+msgid ""
+"Future messages sent by %s from the device that uses this key will be "
+"highlighted accordingly in the chat window."
+msgstr "未來由 %s 從使用了此金鑰的裝置所傳送的訊息都將會在對話視窗內加亮顯示。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:70
+msgid "Fingerprints do not match"
+msgstr "指紋不吻合"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:71
+#, c-format
+msgid ""
+"Please verify that you are comparing the correct fingerprint. If "
+"fingerprints do not match, %s's account may be compromised and you should "
+"consider rejecting this key."
+msgstr ""
+"請確定您正在比較正確的指紋。如果指紋不吻合,%s 的帳號可能不安全,同時您應該考"
+"虑拒絕此金鑰。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid "Verify key fingerprint"
+msgstr "核驗金鑰指紋"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:123
+msgid ""
+"Compare this key's fingerprint with the fingerprint displayed on the "
+"contact's device."
+msgstr "將此金鑰的指紋與顯示在聯絡人裝置上的指紋進行比較。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:151
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:288
+msgid "Reject key"
+msgstr "拒絕金鑰"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:125
+msgid ""
+"Block encrypted communication with the contact's device that uses this key."
+msgstr "封鎖與該聯絡人使用此金鑰的裝置之間的加密通訊。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:159
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:283
+msgid "Accept key"
+msgstr "接收金鑰"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:127
+msgid ""
+"Allow encrypted communication with the contact's device that uses this key."
+msgstr "允許與該聯絡人使用此金鑰的裝置之間的加密通訊。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid "This key is currently %s."
+msgstr "此金鑰目前%s。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+msgid "accepted"
+msgstr "已接收"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:131
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+#, c-format
+msgid "This means it can be used by %s to receive and send encrypted messages."
+msgstr "這表示 %s 可以使用它來傳送及收受加密訊息。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid "verified"
+msgstr "已核驗"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:136
+msgid ""
+"Additionally it has been verified to match the key on the contact's device."
+msgstr "此外,已經核驗它與聯絡人裝置上的金鑰吻合。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+msgid "rejected"
+msgstr "已拒絕"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:140
+#, c-format
+msgid ""
+"This means it cannot be used by %s to decipher your messages, and you won't "
+"see messages encrypted with it."
+msgstr "這表示 %s 無法使用它來解密您的訊息,同時您不會看到使用它加密的訊息。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:152
+#, c-format
+msgid ""
+"You won't see encrypted messages from the device of %s that uses this key. "
+"Conversely, that device won't be able to decipher your messages anymore."
+msgstr ""
+"您不會看到從 %s 使用此金鑰的裝置所傳送的加密訊息。同時,該裝置亦無法再解密您"
+"的訊息。"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:160
+#, c-format
+msgid ""
+"You will be able to exchange encrypted messages with the device of %s that "
+"uses this key."
+msgstr "您將能夠與 %s 所使用此金鑰的裝置互相傳送加密訊息。"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:73
+msgid "Manage"
+msgstr "管理"
+
+#: main/src/plugins/omemo/ui/device_notification_populator.vala:80
+msgid "This contact has new devices"
+msgstr "此連絡人有新的裝置"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:29
+msgid "OMEMO trust decision required"
+msgstr "需要 OMEMO 信任決策"
+
+#: main/src/plugins/omemo/ui/own_notifications.vala:31
+#, c-format
+msgid "Did you add a new device for account %s?"
+msgstr "您是否有爲帳號 %s 增加新裝置?"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:52
+msgid "OMEMO by default"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:53
+msgid "Enable OMEMO encryption for new conversations"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:54
+msgid "Encrypt to new devices"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:55
+msgid "Automatically encrypt to new devices from this contact."
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:56
+msgid "New keys"
+msgstr "新金鑰"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:100
+msgid ""
+"New encryption keys from your other devices will be accepted automatically."
+msgstr "來自您其它裝置的新加密金鑰將會被自動接收。"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:160
+msgid "This device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Other device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:220
+msgid "Device"
+msgstr ""
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:222
+msgid "Accepted"
+msgstr "已接收"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:225
+msgid "Rejected"
+msgstr "已拒絕"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:228
+msgid "Verified"
+msgstr "已核驗"
+
+#: main/src/plugins/omemo/ui/encryption_preferences_entry.vala:277
+msgid "New device"
+msgstr ""
+
+#: main/data/encryption_preferences_entry.ui:8
+msgid ""
+"Each device has its own OMEMO key. Messages can only be decrypted by a "
+"device if they are encrypted to its key. Messages are only encrypted to "
+"accepted devices."
+msgstr ""
+
+#~ msgid "OMEMO Key Management"
+#~ msgstr "OMEMO 金鑰管理"
+
+#, c-format
+#~ msgid "%d OMEMO device"
+#~ msgid_plural "%d OMEMO devices"
+#~ msgstr[0] "%d 個 OMEMO 裝置"
+
+#~ msgid "Automatically accept new keys"
+#~ msgstr "自動接收新金鑰"
+
+#~ msgid ""
+#~ "New encryption keys from this contact will be accepted automatically."
+#~ msgstr "新的來自此聯絡人的加密金鑰將會被自動接收。"
+
+#~ msgid "Own key"
+#~ msgstr "本裝置金鑰"
+
+#~ msgid "Associated keys"
+#~ msgstr "其它裝置上的金鑰"
+
+#~ msgid "Inactive keys"
+#~ msgstr "長時間未用過的金鑰"
+
+#~ msgid "Unused"
+#~ msgstr "不再使用"
+
+#~ msgid "Own fingerprint"
+#~ msgstr "本裝置指紋"
+
+#~ msgid "Will be generated on first connection"
+#~ msgstr "將會在第一次連線時產生"
+
+#~ msgid "Your contact"
+#~ msgstr "您的聯絡人"
+
+#~ msgid "Not matching"
+#~ msgstr "不吻合"
+
+#~ msgid "Matching"
+#~ msgstr "吻合"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "highlighted accordingly in the chat window."
+#~ msgstr ""
+#~ "一經確定,所有未來由 %s 使用此金鑰傳送的訊息都會在對話視窗內被加亮。"
+
+#~ msgid ""
+#~ "Stop accepting this key during communication with its associated contact."
+#~ msgstr "在與其連結的聯絡人通訊期間停止接收此金鑰。"
+
+#~ msgid ""
+#~ "Start accepting this key during communication with its associated contact"
+#~ msgstr "在與其連結的聯絡人通訊期間開始接收此金鑰"
+
+#~ msgid ""
+#~ "This means it cannot be used by %s to receive messages, and any messages "
+#~ "sent by it will be ignored."
+#~ msgstr "這代表 %s 不能使用它來收受訊息,並且經它傳送的所有訊息都將被忽略。"
+
+#~ msgid ""
+#~ "Once confirmed, any future messages sent by %s using this key will be "
+#~ "ignored and none of your messages will be readable using this key."
+#~ msgstr ""
+#~ "一經確定,所有未來由 %s 使用此金鑰傳送的訊息都會被忽略,並且無法使用此金鑰"
+#~ "讀取您的任何訊息。"
+
+#~ msgid ""
+#~ "Once confirmed this key will be usable by %s to receive and send messages."
+#~ msgstr "一經確定,此金鑰將會被 %s 用於收受及傳送訊息。"
+
+#~ msgid ""
+#~ "When this contact adds new encryption keys to their account, "
+#~ "automatically accept them."
+#~ msgstr "當此聯絡人新增加密金鑰到其帳號時,自動接收它們。"
+
+#~ msgid ""
+#~ "When you add new encryption keys to your account, automatically accept "
+#~ "them."
+#~ msgstr "當您新增加密金鑰到您的帳號時,自動接收它們。"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:18
+msgid "Querying GnuPG"
+msgstr "正在查詢 GnuPG"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:41
+msgid "Announce key"
+msgstr ""
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:32
+msgid "Error in GnuPG"
+msgstr "GnuPG 錯誤"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:36
+msgid "No keys available. Generate one!"
+msgstr "沒有可用的金鑰。生成一個!"
+
+#: main/src/plugins/openpgp/encryption_preferences_entry.vala:45
+msgid "Disabled"
+msgstr ""
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:36
+msgid "Key not in keychain"
+msgstr "密鑰不在密鑰串中"
+
+#: main/src/plugins/openpgp/contact_details_provider.vala:40
+msgid "Fingerprint"
+msgstr ""
+
+#~ msgid "Key publishing disabled"
+#~ msgstr "金鑰發佈已經被禁用"
+
+#~ msgid "Select key"
+#~ msgstr "選擇金鑰"
+
+#~ msgid "Loading…"
+#~ msgstr "載入中…"
+
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:38
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:81
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:87
#: main/src/windows/preferences_window/account_preferences_subpage.vala:64
#: main/src/windows/preferences_window/account_preferences_subpage.vala:131
#: main/src/ui/conversation_view_controller.vala:200
@@ -1089,7 +1439,7 @@ msgstr ""
#: main/data/preferences_window/add_account_dialog.ui:147
msgid "Could not establish a secure connection"
msgstr "無法建立安全連線"
-
+#: main/src/plugins/omemo/ui/manage_key_dialog.vala:166
#: main/data/preferences_window/add_account_dialog.ui:165
msgid "Back"
msgstr "返回"
diff --git a/main/src/main.vala b/main/src/main.vala
index 4a6d31c7..65e9d250 100644
--- a/main/src/main.vala
+++ b/main/src/main.vala
@@ -18,7 +18,18 @@ void main(string[] args) {
Gtk.init();
Dino.Ui.Application app = new Dino.Ui.Application() { search_path_generator=search_path_generator };
Plugins.Loader loader = new Plugins.Loader(app);
- loader.load_all();
+ if (Environment.get_variable("DINO_PLUGINS_LOAD_ALL") == "1") {
+ loader.load_all();
+ }
+#if WITH_RTP
+ loader.load_type(typeof(Plugins.Rtp.Plugin));
+#endif
+#if WITH_OPENPGP
+ loader.load_type(typeof(Plugins.OpenPgp.Plugin));
+#endif
+#if WITH_OMEMO
+ loader.load_type(typeof(Plugins.Omemo.Plugin));
+#endif
app.run(args);
loader.shutdown();
diff --git a/main/src/plugins/omemo/dtls_srtp_verification_draft.vala b/main/src/plugins/omemo/dtls_srtp_verification_draft.vala
new file mode 100644
index 00000000..09617a2a
--- /dev/null
+++ b/main/src/plugins/omemo/dtls_srtp_verification_draft.vala
@@ -0,0 +1,268 @@
+using Omemo;
+using Gee;
+using Xmpp;
+
+namespace Dino.Plugins.Omemo.DtlsSrtpVerificationDraft {
+ public const string NS_URI = "http://gultsch.de/xmpp/drafts/omemo/dlts-srtp-verification";
+
+ public class StreamModule : XmppStreamModule {
+
+ public static Xmpp.ModuleIdentity<StreamModule> IDENTITY = new Xmpp.ModuleIdentity<StreamModule>(NS_URI, "dtls_srtp_omemo_verification_draft");
+
+ private VerificationSendListener send_listener = new VerificationSendListener();
+ private HashMap<string, int> device_id_by_jingle_sid = new HashMap<string, int>();
+ private HashMap<string, int> device_id_by_muji_member = new HashMap<string, int>();
+ private HashMap<string, Gee.List<string>> content_names_by_jingle_sid = new HashMap<string, Gee.List<string>>();
+
+ private void on_preprocess_incoming_iq_set_get(XmppStream stream, Xmpp.Iq.Stanza iq) {
+ if (iq.type_ != Iq.Stanza.TYPE_SET) return;
+
+ Gee.List<StanzaNode> content_nodes = iq.stanza.get_deep_subnodes(Xep.Jingle.NS_URI + ":jingle", Xep.Jingle.NS_URI + ":content");
+ if (content_nodes.size == 0) return;
+
+ string? jingle_sid = iq.stanza.get_deep_attribute(Xep.Jingle.NS_URI + ":jingle", "sid");
+ if (jingle_sid == null) return;
+
+ Xep.Omemo.OmemoDecryptor decryptor = stream.get_module(Xep.Omemo.OmemoDecryptor.IDENTITY);
+
+ foreach (StanzaNode content_node in content_nodes) {
+ string? content_name = content_node.get_attribute("name");
+ if (content_name == null) continue;
+ StanzaNode? transport_node = content_node.get_subnode("transport", Xep.JingleIceUdp.NS_URI);
+ if (transport_node == null) continue;
+ StanzaNode? fingerprint_node = transport_node.get_subnode("fingerprint", NS_URI);
+ if (fingerprint_node == null) continue;
+ StanzaNode? encrypted_node = fingerprint_node.get_subnode("encrypted", Omemo.NS_URI);
+ if (encrypted_node == null) continue;
+
+ Xep.Omemo.ParsedData? parsed_data = decryptor.parse_node(encrypted_node);
+ if (parsed_data == null || parsed_data.ciphertext == null) continue;
+
+ if (device_id_by_jingle_sid.has_key(jingle_sid) && device_id_by_jingle_sid[jingle_sid] != parsed_data.sid) {
+ warning("Expected DTLS fingerprint to be OMEMO encrypted from %s %d, but it was from %d", iq.from.to_string(), device_id_by_jingle_sid[jingle_sid], parsed_data.sid);
+ }
+
+ foreach (Bytes encr_key in parsed_data.our_potential_encrypted_keys.keys) {
+ parsed_data.is_prekey = parsed_data.our_potential_encrypted_keys[encr_key];
+ parsed_data.encrypted_key = encr_key.get_data();
+
+ try {
+ uint8[] key = decryptor.decrypt_key(parsed_data, iq.from.bare_jid);
+ string cleartext = decryptor.decrypt(parsed_data.ciphertext, key, parsed_data.iv);
+
+ StanzaNode new_fingerprint_node = new StanzaNode.build("fingerprint", Xep.JingleIceUdp.DTLS_NS_URI).add_self_xmlns()
+ .put_node(new StanzaNode.text(cleartext));
+ string? hash_attr = fingerprint_node.get_attribute("hash", NS_URI);
+ string? setup_attr = fingerprint_node.get_attribute("setup", NS_URI);
+ if (hash_attr != null) new_fingerprint_node.put_attribute("hash", hash_attr);
+ if (setup_attr != null) new_fingerprint_node.put_attribute("setup", setup_attr);
+ transport_node.put_node(new_fingerprint_node);
+
+ device_id_by_jingle_sid[jingle_sid] = parsed_data.sid;
+ if (!content_names_by_jingle_sid.has_key(content_name)) {
+ content_names_by_jingle_sid[content_name] = new ArrayList<string>();
+ }
+ content_names_by_jingle_sid[content_name].add(content_name);
+
+ stream.get_flag(Xep.Jingle.Flag.IDENTITY).get_session.begin(jingle_sid, (_, res) => {
+ Xep.Jingle.Session? session = stream.get_flag(Xep.Jingle.Flag.IDENTITY).get_session.end(res);
+ if (session == null || !session.contents_map.has_key(content_name)) return;
+ var encryption = new OmemoContentEncryption(NS_URI, "OMEMO", iq.from.bare_jid, device_id_by_jingle_sid[jingle_sid]);
+ session.contents_map[content_name].encryptions[NS_URI] = encryption;
+
+ if (iq.stanza.get_deep_attribute(Xep.Jingle.NS_URI + ":jingle", "action") == "session-accept") {
+ session.additional_content_add_incoming.connect(on_content_add_received);
+ }
+ });
+
+ break;
+ } catch (Error e) {
+ debug("Decrypting message from %s/%d failed: %s", iq.from.bare_jid.to_string(), parsed_data.sid, e.message);
+ }
+ }
+ }
+ }
+
+ private void on_preprocess_outgoing_iq_set_get(XmppStream stream, Xmpp.Iq.Stanza iq) {
+ if (iq.type_ != Iq.Stanza.TYPE_SET) return;
+
+ StanzaNode? jingle_node = iq.stanza.get_subnode("jingle", Xep.Jingle.NS_URI);
+ if (jingle_node == null) return;
+
+ int device_id = -1;
+ string? sid = jingle_node.get_attribute("sid", Xep.Jingle.NS_URI);
+ if (sid != null && device_id_by_jingle_sid.has_key(sid)) {
+ device_id = device_id_by_jingle_sid[sid];
+ }
+
+ StanzaNode? muji_node = jingle_node.get_subnode("muji", Xep.Muji.NS_URI);
+ if (muji_node != null) {
+ string muji_room = muji_node.get_attribute("room");
+ try {
+ Jid muji_jid = Jid.from_string(muji_room);
+ if (device_id_by_muji_member.has_key(@"$(muji_jid.bare_jid)/$(iq.to)")) {
+ device_id = device_id_by_muji_member[@"$(muji_jid.bare_jid)/$(iq.to)"];
+ }
+ } catch (InvalidJidError e) {
+ // Ignore
+ }
+ }
+
+ if (device_id == -1) return;
+
+ Gee.List<StanzaNode> content_nodes = jingle_node.get_subnodes("content", Xep.Jingle.NS_URI);
+ if (content_nodes.size == 0) return;
+
+ foreach (StanzaNode content_node in content_nodes) {
+ StanzaNode? transport_node = content_node.get_subnode("transport", Xep.JingleIceUdp.NS_URI);
+ if (transport_node == null) continue;
+ StanzaNode? fingerprint_node = transport_node.get_subnode("fingerprint", Xep.JingleIceUdp.DTLS_NS_URI);
+ if (fingerprint_node == null) continue;
+ string fingerprint = fingerprint_node.get_deep_string_content();
+
+ StanzaNode? encrypted_node = null;
+ try {
+ Xep.Omemo.OmemoEncryptor encryptor = stream.get_module(Xep.Omemo.OmemoEncryptor.IDENTITY);
+ Xep.Omemo.EncryptionData enc_data = encryptor.encrypt_plaintext(fingerprint);
+ encryptor.encrypt_key(enc_data, iq.to.bare_jid, device_id);
+ encrypted_node = enc_data.get_encrypted_node();
+ } catch (Error e) {
+ warning("Error while OMEMO-encrypting call keys: %s", e.message);
+ return;
+ }
+
+ StanzaNode new_fingerprint_node = new StanzaNode.build("fingerprint", NS_URI).add_self_xmlns().put_node(encrypted_node);
+ string? hash_attr = fingerprint_node.get_attribute("hash", Xep.JingleIceUdp.DTLS_NS_URI);
+ string? setup_attr = fingerprint_node.get_attribute("setup", Xep.JingleIceUdp.DTLS_NS_URI);
+ if (hash_attr != null) new_fingerprint_node.put_attribute("hash", hash_attr);
+ if (setup_attr != null) new_fingerprint_node.put_attribute("setup", setup_attr);
+ transport_node.put_node(new_fingerprint_node);
+
+ transport_node.sub_nodes.remove(fingerprint_node);
+ }
+ }
+
+ private void on_message_received(XmppStream stream, Xmpp.MessageStanza message) {
+ StanzaNode? proceed_node = message.stanza.get_subnode("proceed", Xep.JingleMessageInitiation.NS_URI);
+ if (proceed_node == null) return;
+
+ string? jingle_sid = proceed_node.get_attribute("id");
+ if (jingle_sid == null) return;
+
+ StanzaNode? device_node = proceed_node.get_subnode("device", NS_URI);
+ if (device_node == null) return;
+
+ int device_id = device_node.get_attribute_int("id", -1);
+ if (device_id == -1) return;
+
+ device_id_by_jingle_sid[jingle_sid] = device_id;
+ }
+
+ private void on_session_initiate_received(XmppStream stream, Xep.Jingle.Session session) {
+ if (device_id_by_jingle_sid.has_key(session.sid)) {
+ foreach (Xep.Jingle.Content content in session.contents) {
+ on_content_add_received(stream, content);
+ }
+ }
+ session.additional_content_add_incoming.connect(on_content_add_received);
+ }
+
+ private void on_content_add_received(XmppStream stream, Xep.Jingle.Content content) {
+ if (!content_names_by_jingle_sid.has_key(content.session.sid) || content_names_by_jingle_sid[content.session.sid].contains(content.content_name)) {
+ var encryption = new OmemoContentEncryption(NS_URI, "OMEMO", content.peer_full_jid.bare_jid, device_id_by_jingle_sid[content.session.sid]);
+ content.encryptions[encryption.encryption_ns] = encryption;
+ }
+ }
+
+ private void on_pre_send_presence_stanza(XmppStream stream, Presence.Stanza presence) {
+ StanzaNode? muji_node = presence.stanza.get_subnode("muji", Xep.Muji.NS_URI);
+ if (muji_node == null) return;
+
+ StanzaNode device_node = new StanzaNode.build("device", NS_URI).add_self_xmlns()
+ .put_attribute("id", stream.get_module(Omemo.StreamModule.IDENTITY).store.local_registration_id.to_string());
+ muji_node.put_node(device_node);
+ }
+
+ private void on_received_available(XmppStream stream, Presence.Stanza presence) {
+ StanzaNode? muji_node = presence.stanza.get_subnode("muji", Xep.Muji.NS_URI);
+ if (muji_node == null) return;
+
+ StanzaNode? device_node = muji_node.get_subnode("device", NS_URI);
+ if (device_node == null) return;
+
+ int device_id = device_node.get_attribute_int("id", -1);
+ if (device_id == -1) return;
+
+ StanzaNode? muc_x_node = presence.stanza.get_subnode("x", "http://jabber.org/protocol/muc#user");
+ if (muc_x_node == null) return;
+
+ StanzaNode? item_node = muc_x_node.get_subnode("item");
+ if (item_node == null) return;
+
+ Jid? real_jid = null;
+ try {
+ string jid_attribute = item_node.get_attribute("jid");
+ if (jid_attribute == null) return;
+ real_jid = Jid.from_string(jid_attribute);
+ } catch (InvalidJidError e) {
+ // Ignore
+ return;
+ }
+
+ device_id_by_muji_member[@"$(presence.from.bare_jid)/$(real_jid)"] = device_id;
+ }
+
+ public override void attach(XmppStream stream) {
+ stream.get_module(Xmpp.MessageModule.IDENTITY).received_message.connect(on_message_received);
+ stream.get_module(Xmpp.MessageModule.IDENTITY).send_pipeline.connect(send_listener);
+ stream.get_module(Xmpp.Iq.Module.IDENTITY).preprocess_incoming_iq_set_get.connect(on_preprocess_incoming_iq_set_get);
+ stream.get_module(Xmpp.Iq.Module.IDENTITY).preprocess_outgoing_iq_set_get.connect(on_preprocess_outgoing_iq_set_get);
+ stream.get_module(Xep.Jingle.Module.IDENTITY).session_initiate_received.connect(on_session_initiate_received);
+ stream.get_module(Xmpp.Presence.Module.IDENTITY).pre_send_presence_stanza.connect(on_pre_send_presence_stanza);
+ stream.get_module(Xmpp.Presence.Module.IDENTITY).received_available.connect(on_received_available);
+ }
+
+ public override void detach(XmppStream stream) {
+ stream.get_module(Xmpp.MessageModule.IDENTITY).received_message.disconnect(on_message_received);
+ stream.get_module(Xmpp.MessageModule.IDENTITY).send_pipeline.disconnect(send_listener);
+ stream.get_module(Xmpp.Iq.Module.IDENTITY).preprocess_incoming_iq_set_get.disconnect(on_preprocess_incoming_iq_set_get);
+ stream.get_module(Xmpp.Iq.Module.IDENTITY).preprocess_outgoing_iq_set_get.disconnect(on_preprocess_outgoing_iq_set_get);
+ stream.get_module(Xep.Jingle.Module.IDENTITY).session_initiate_received.disconnect(on_session_initiate_received);
+ stream.get_module(Xmpp.Presence.Module.IDENTITY).received_available.disconnect(on_received_available);
+ }
+
+ public override string get_ns() { return NS_URI; }
+
+ public override string get_id() { return IDENTITY.id; }
+ }
+
+ public class VerificationSendListener : StanzaListener<MessageStanza> {
+
+ private string[] after_actions_const = {};
+
+ public override string action_group { get { return "REWRITE_NODES"; } }
+ public override string[] after_actions { get { return after_actions_const; } }
+
+ public override async bool run(XmppStream stream, MessageStanza message) {
+ StanzaNode? proceed_node = message.stanza.get_subnode("proceed", Xep.JingleMessageInitiation.NS_URI);
+ if (proceed_node == null) return false;
+
+ StanzaNode device_node = new StanzaNode.build("device", NS_URI).add_self_xmlns()
+ .put_attribute("id", stream.get_module(Omemo.StreamModule.IDENTITY).store.local_registration_id.to_string());
+ proceed_node.put_node(device_node);
+ return false;
+ }
+ }
+
+ public class OmemoContentEncryption : Xep.Jingle.ContentEncryption {
+ public Jid jid { get; set; }
+ public int sid { get; set; }
+
+ public OmemoContentEncryption(string encryption_ns, string encryption_name, Jid jid, int sid) {
+ base(encryption_ns, encryption_name);
+ this.jid = jid;
+ this.sid = sid;
+ }
+ }
+}
+
diff --git a/main/src/plugins/omemo/file_transfer/file_decryptor.vala b/main/src/plugins/omemo/file_transfer/file_decryptor.vala
new file mode 100644
index 00000000..8ae0b96b
--- /dev/null
+++ b/main/src/plugins/omemo/file_transfer/file_decryptor.vala
@@ -0,0 +1,90 @@
+using Dino.Entities;
+
+using Dino.Crypto;
+using Omemo;
+
+namespace Dino.Plugins.Omemo {
+
+public class OmemoHttpFileReceiveData : HttpFileReceiveData {
+ public string original_url;
+}
+
+public class OmemoFileDecryptor : FileDecryptor, Object {
+
+ private Regex url_regex = /^aesgcm:\/\/(.*)#(([A-Fa-f0-9]{2}){48}|([A-Fa-f0-9]{2}){44})$/;
+
+ public Encryption get_encryption() {
+ return Encryption.OMEMO;
+ }
+
+ public FileReceiveData prepare_get_meta_info(Conversation conversation, FileTransfer file_transfer, FileReceiveData receive_data) {
+ HttpFileReceiveData? http_receive_data = receive_data as HttpFileReceiveData;
+ if (http_receive_data == null) assert(false);
+ if ((receive_data as OmemoHttpFileReceiveData) != null) return receive_data;
+
+ var omemo_http_receive_data = new OmemoHttpFileReceiveData();
+ omemo_http_receive_data.url = aesgcm_to_https_link(http_receive_data.url);
+ omemo_http_receive_data.original_url = http_receive_data.url;
+
+ return omemo_http_receive_data;
+ }
+
+ public FileMeta prepare_download_file(Conversation conversation, FileTransfer file_transfer, FileReceiveData receive_data, FileMeta file_meta) {
+ if (file_meta.file_name != null) {
+ file_meta.file_name = file_meta.file_name.split("#")[0];
+ }
+ return file_meta;
+ }
+
+ public bool can_decrypt_file(Conversation conversation, FileTransfer file_transfer, FileReceiveData receive_data) {
+ HttpFileReceiveData? http_file_receive = receive_data as HttpFileReceiveData;
+ if (http_file_receive == null) return false;
+
+ return this.url_regex.match(http_file_receive.url) || (receive_data as OmemoHttpFileReceiveData) != null;
+ }
+
+ public async InputStream decrypt_file(InputStream encrypted_stream, Conversation conversation, FileTransfer file_transfer, FileReceiveData receive_data) throws FileReceiveError {
+ const uint KEY_SIZE = 32;
+ try {
+ OmemoHttpFileReceiveData? omemo_http_receive_data = receive_data as OmemoHttpFileReceiveData;
+ if (omemo_http_receive_data == null) assert(false);
+
+ // Decode IV and key
+ MatchInfo match_info;
+ this.url_regex.match(omemo_http_receive_data.original_url, 0, out match_info);
+ uint8[] iv_and_key = hex_to_bin(match_info.fetch(2).up());
+ uint8[] iv = iv_and_key[0:iv_and_key.length-KEY_SIZE];
+ uint8[] key = iv_and_key[iv_and_key.length-KEY_SIZE:iv_and_key.length];
+
+ file_transfer.encryption = Encryption.OMEMO;
+ debug("Decrypting file %s from %s", file_transfer.file_name, file_transfer.server_file_name);
+
+ SymmetricCipherDecryption cipher = create_symmetric_cipher_decryption("AES-GCM");
+ cipher.set_key(key);
+ cipher.set_iv(iv);
+ return new ConverterInputStream(encrypted_stream, new SymmetricCipherDecrypter((owned) cipher, 16));
+
+ } catch (Crypto.Error e) {
+ throw new FileReceiveError.DECRYPTION_FAILED("OMEMO file decryption error: %s".printf(e.message));
+ } catch (GLib.Error e) {
+ throw new FileReceiveError.DECRYPTION_FAILED("OMEMO file decryption error: %s".printf(e.message));
+ }
+ }
+
+ private uint8[] hex_to_bin(string hex) {
+ uint8[] bin = new uint8[hex.length / 2];
+ const string HEX = "0123456789ABCDEF";
+ for (int i = 0; i < hex.length / 2; i++) {
+ bin[i] = (uint8) (HEX.index_of_char(hex[i*2]) << 4) | HEX.index_of_char(hex[i*2+1]);
+ }
+ return bin;
+ }
+
+ private string aesgcm_to_https_link(string aesgcm_link) {
+ MatchInfo match_info;
+ this.url_regex.match(aesgcm_link, 0, out match_info);
+ return "https://" + match_info.fetch(1);
+ }
+}
+
+}
diff --git a/main/src/plugins/omemo/file_transfer/file_encryptor.vala b/main/src/plugins/omemo/file_transfer/file_encryptor.vala
new file mode 100644
index 00000000..5f1d6e69
--- /dev/null
+++ b/main/src/plugins/omemo/file_transfer/file_encryptor.vala
@@ -0,0 +1,76 @@
+using Gee;
+using Gtk;
+
+using Dino.Crypto;
+using Dino.Entities;
+using Xmpp;
+using Omemo;
+
+namespace Dino.Plugins.Omemo {
+
+public class OmemoHttpFileMeta : HttpFileMeta {
+ public uint8[] iv;
+ public uint8[] key;
+}
+
+public class OmemoFileEncryptor : Dino.FileEncryptor, Object {
+
+ public bool can_encrypt_file(Conversation conversation, FileTransfer file_transfer) {
+ return file_transfer.encryption == Encryption.OMEMO;
+ }
+
+ public FileMeta encrypt_file(Conversation conversation, FileTransfer file_transfer) throws FileSendError {
+ const uint KEY_SIZE = 32;
+ const uint IV_SIZE = 12;
+ var omemo_http_file_meta = new OmemoHttpFileMeta();
+
+ try {
+ //Create a key and use it to encrypt the file
+ uint8[] iv = new uint8[IV_SIZE];
+ Crypto.randomize(iv);
+ uint8[] key = new uint8[KEY_SIZE];
+ Crypto.randomize(key);
+
+ SymmetricCipherEncryption cipher = create_symmetric_cipher_encryption("AES-GCM");
+ cipher.set_key(key);
+ cipher.set_iv(iv);
+
+ omemo_http_file_meta.iv = iv;
+ omemo_http_file_meta.key = key;
+ omemo_http_file_meta.size = file_transfer.size + 16;
+ omemo_http_file_meta.content_type = new FileContentType.from_mime_type("application/octet-stream");
+ file_transfer.input_stream = new ConverterInputStream(file_transfer.input_stream, new SymmetricCipherEncrypter((owned) cipher, 16));
+ } catch (Crypto.Error error) {
+ throw new FileSendError.ENCRYPTION_FAILED("OMEMO file encryption error: %s".printf(error.message));
+ } catch (GLib.Error error) {
+ throw new FileSendError.ENCRYPTION_FAILED("OMEMO file encryption error: %s".printf(error.message));
+ }
+
+ debug("Encrypting file %s as %s", file_transfer.file_name, file_transfer.server_file_name);
+
+ return omemo_http_file_meta;
+ }
+
+ public FileSendData? preprocess_send_file(Conversation conversation, FileTransfer file_transfer, FileSendData file_send_data, FileMeta file_meta) {
+ HttpFileSendData? send_data = file_send_data as HttpFileSendData;
+ if (send_data == null) return null;
+
+ OmemoHttpFileMeta? omemo_http_file_meta = file_meta as OmemoHttpFileMeta;
+ if (omemo_http_file_meta == null) return null;
+
+ // Convert iv and key to hex
+ string iv_and_key = "";
+ foreach (uint8 byte in omemo_http_file_meta.iv) iv_and_key += byte.to_string("%02x");
+ foreach (uint8 byte in omemo_http_file_meta.key) iv_and_key += byte.to_string("%02x");
+
+ string aesgcm_link = send_data.url_down + "#" + iv_and_key;
+ aesgcm_link = "aesgcm://" + aesgcm_link.substring(8); // replace https:// by aesgcm://
+
+ send_data.url_down = aesgcm_link;
+ send_data.encrypt_message = true;
+
+ return file_send_data;
+ }
+}
+
+}
diff --git a/main/src/plugins/omemo/jingle/jet_omemo.vala b/main/src/plugins/omemo/jingle/jet_omemo.vala
new file mode 100644
index 00000000..07d03f64
--- /dev/null
+++ b/main/src/plugins/omemo/jingle/jet_omemo.vala
@@ -0,0 +1,115 @@
+using Dino.Crypto;
+using Dino.Crypto.Omemo;
+using Dino;
+using Dino.Entities;
+using Gee;
+using Omemo;
+using Xmpp;
+using Xmpp.Xep;
+
+namespace Dino.Plugins.JetOmemo {
+
+private const string NS_URI = "urn:xmpp:jingle:jet-omemo:0";
+private const string AES_128_GCM_URI = "urn:xmpp:ciphers:aes-128-gcm-nopadding";
+
+public class Module : XmppStreamModule, Jet.EnvelopEncoding {
+ public static Xmpp.ModuleIdentity<Module> IDENTITY = new Xmpp.ModuleIdentity<Module>(NS_URI, "0396_jet_omemo");
+ const uint KEY_SIZE = 16;
+ const uint IV_SIZE = 12;
+
+ public override void attach(XmppStream stream) {
+ if (stream.get_module(Jet.Module.IDENTITY) != null) {
+ stream.get_module(ServiceDiscovery.Module.IDENTITY).add_feature(stream, NS_URI);
+ stream.get_module(Jet.Module.IDENTITY).register_envelop_encoding(this);
+ stream.get_module(Jet.Module.IDENTITY).register_cipher(new AesGcmCipher(KEY_SIZE, IV_SIZE, AES_128_GCM_URI));
+ }
+ }
+
+ public override void detach(XmppStream stream) {
+ stream.get_module(ServiceDiscovery.Module.IDENTITY).remove_feature(stream, NS_URI);
+ }
+
+ public async bool is_available(XmppStream stream, Jid full_jid) {
+ bool? has_feature = yield stream.get_module(ServiceDiscovery.Module.IDENTITY).has_entity_feature(stream, full_jid, NS_URI);
+ if (has_feature == null || !(!)has_feature) {
+ return false;
+ }
+ return yield stream.get_module(Xep.Jet.Module.IDENTITY).is_available(stream, full_jid);
+ }
+
+ public string get_type_uri() {
+ return Omemo.NS_URI;
+ }
+
+ public Jet.TransportSecret decode_envolop(XmppStream stream, Jid local_full_jid, Jid peer_full_jid, StanzaNode security) throws Jingle.IqError {
+ StanzaNode? encrypted = security.get_subnode("encrypted", Omemo.NS_URI);
+ if (encrypted == null) throw new Jingle.IqError.BAD_REQUEST("Invalid JET-OMEMO envelop: missing encrypted element");
+
+ Xep.Omemo.OmemoDecryptor decryptor = stream.get_module(Xep.Omemo.OmemoDecryptor.IDENTITY);
+
+ Xmpp.Xep.Omemo.ParsedData? data = decryptor.parse_node(encrypted);
+ if (data == null) throw new Jingle.IqError.BAD_REQUEST("Invalid JET-OMEMO envelop: bad encrypted element");
+
+ foreach (Bytes encr_key in data.our_potential_encrypted_keys.keys) {
+ data.is_prekey = data.our_potential_encrypted_keys[encr_key];
+ data.encrypted_key = encr_key.get_data();
+
+ try {
+ uint8[] key = decryptor.decrypt_key(data, peer_full_jid.bare_jid);
+ return new Jet.TransportSecret(key, data.iv);
+ } catch (GLib.Error e) {
+ debug("Decrypting JET key from %s/%d failed: %s", peer_full_jid.bare_jid.to_string(), data.sid, e.message);
+ }
+ }
+ throw new Jingle.IqError.NOT_ACCEPTABLE("Not encrypted for targeted device");
+ }
+
+ public void encode_envelop(XmppStream stream, Jid local_full_jid, Jid peer_full_jid, Jet.SecurityParameters security_params, StanzaNode security) {
+ Store store = stream.get_module(Omemo.StreamModule.IDENTITY).store;
+
+ var encryption_data = new Xep.Omemo.EncryptionData(store.local_registration_id);
+ encryption_data.iv = security_params.secret.initialization_vector;
+ encryption_data.keytag = security_params.secret.transport_key;
+ Xep.Omemo.OmemoEncryptor encryptor = stream.get_module(Xep.Omemo.OmemoEncryptor.IDENTITY);
+ encryptor.encrypt_key_to_recipient(stream, encryption_data, peer_full_jid.bare_jid);
+
+ security.put_node(encryption_data.get_encrypted_node());
+ }
+
+ public override string get_ns() { return NS_URI; }
+ public override string get_id() { return IDENTITY.id; }
+}
+
+public class AesGcmCipher : Jet.Cipher, Object {
+ private uint key_size;
+ private uint default_iv_size;
+ private string uri;
+ public AesGcmCipher(uint key_size, uint default_iv_size, string uri) {
+ this.key_size = key_size;
+ this.default_iv_size = default_iv_size;
+ this.uri = uri;
+ }
+ public string get_cipher_uri() {
+ return uri;
+ }
+ public Jet.TransportSecret generate_random_secret() {
+ uint8[] iv = new uint8[default_iv_size];
+ Crypto.randomize(iv);
+ uint8[] key = new uint8[key_size];
+ Crypto.randomize(key);
+ return new Jet.TransportSecret(key, iv);
+ }
+ public InputStream wrap_input_stream(InputStream input, Jet.TransportSecret secret) requires (secret.transport_key.length == key_size) {
+ SymmetricCipherDecryption cipher = create_symmetric_cipher_decryption("AES-GCM");
+ cipher.set_key(secret.transport_key);
+ cipher.set_iv(secret.initialization_vector);
+ return new ConverterInputStream(input, new SymmetricCipherDecrypter((owned) cipher, 16));
+ }
+ public OutputStream wrap_output_stream(OutputStream output, Jet.TransportSecret secret) requires (secret.transport_key.length == key_size) {
+ SymmetricCipherEncryption cipher = create_symmetric_cipher_encryption("AES-GCM");
+ cipher.set_key(secret.transport_key);
+ cipher.set_iv(secret.initialization_vector);
+ return new ConverterOutputStream(output, new SymmetricCipherEncrypter((owned) cipher, 16));
+ }
+}
+}
diff --git a/main/src/plugins/omemo/jingle/jingle_helper.vala b/main/src/plugins/omemo/jingle/jingle_helper.vala
new file mode 100644
index 00000000..ec6c0eca
--- /dev/null
+++ b/main/src/plugins/omemo/jingle/jingle_helper.vala
@@ -0,0 +1,53 @@
+using Dino.Entities;
+using Xmpp;
+
+namespace Dino.Plugins.JetOmemo {
+public class EncryptionHelper : JingleFileEncryptionHelper, Object {
+ private StreamInteractor stream_interactor;
+
+ public EncryptionHelper(StreamInteractor stream_interactor) {
+ this.stream_interactor = stream_interactor;
+ }
+
+ public bool can_transfer(Conversation conversation) {
+ return true;
+ }
+
+ public async bool can_encrypt(Conversation conversation, FileTransfer file_transfer, Jid? full_jid) {
+ XmppStream? stream = stream_interactor.get_stream(conversation.account);
+ if (stream == null) return false;
+
+ Gee.List<Jid>? resources = stream.get_flag(Presence.Flag.IDENTITY).get_resources(conversation.counterpart);
+ if (resources == null) return false;
+
+ if (full_jid == null) {
+ foreach (Jid test_jid in resources) {
+ if (yield stream.get_module(Module.IDENTITY).is_available(stream, test_jid)) {
+ return true;
+ }
+ }
+ } else {
+ if (yield stream.get_module(Module.IDENTITY).is_available(stream, full_jid)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public string? get_precondition_name(Conversation conversation, FileTransfer file_transfer) {
+ return Xep.Jet.NS_URI;
+ }
+
+ public Object? get_precondition_options(Conversation conversation, FileTransfer file_transfer) {
+ return new Xep.Jet.Options(Omemo.NS_URI, AES_128_GCM_URI);
+ }
+
+ public Encryption get_encryption(Xmpp.Xep.JingleFileTransfer.FileTransfer jingle_transfer) {
+ Xep.Jet.SecurityParameters? security = jingle_transfer.security as Xep.Jet.SecurityParameters;
+ if (security != null && security.encoding.get_type_uri() == Omemo.NS_URI) {
+ return Encryption.OMEMO;
+ }
+ return Encryption.NONE;
+ }
+}
+}
diff --git a/main/src/plugins/omemo/logic/database.vala b/main/src/plugins/omemo/logic/database.vala
new file mode 100644
index 00000000..f2a92259
--- /dev/null
+++ b/main/src/plugins/omemo/logic/database.vala
@@ -0,0 +1,284 @@
+using Gee;
+
+using Dino.Entities;
+using Dino.Qlite;
+
+namespace Dino.Plugins.Omemo {
+
+public class Database : Qlite.Database {
+ private const int VERSION = 5;
+
+ public class IdentityMetaTable : Table {
+ //Default to provide backwards compatability
+ public Column<int> identity_id = new Column.Integer("identity_id") { not_null = true, min_version = 2, default = "-1" };
+ public Column<string> address_name = new Column.Text("address_name") { not_null = true };
+ public Column<int> device_id = new Column.Integer("device_id") { not_null = true };
+ public Column<string?> identity_key_public_base64 = new Column.Text("identity_key_public_base64");
+ public Column<bool> trusted_identity = new Column.BoolInt("trusted_identity") { default = "0", max_version = 1 };
+ public Column<int> trust_level = new Column.Integer("trust_level") { default = TrustLevel.UNKNOWN.to_string(), min_version = 2 };
+ public Column<bool> now_active = new Column.BoolInt("now_active") { default = "1" };
+ public Column<long> last_active = new Column.Long("last_active");
+ public Column<long> last_message_untrusted = new Column.Long("last_message_untrusted") { min_version = 5 };
+ public Column<long> last_message_undecryptable = new Column.Long("last_message_undecryptable") { min_version = 5 };
+
+ internal IdentityMetaTable(Database db) {
+ base(db, "identity_meta");
+ init({identity_id, address_name, device_id, identity_key_public_base64, trusted_identity, trust_level, now_active, last_active, last_message_untrusted, last_message_undecryptable});
+ index("identity_meta_idx", {identity_id, address_name, device_id}, true);
+ index("identity_meta_list_idx", {identity_id, address_name});
+ }
+
+ public QueryBuilder with_address(int identity_id, string address_name) {
+ return select().with(this.identity_id, "=", identity_id).with(this.address_name, "=", address_name);
+ }
+
+ public QueryBuilder get_with_device_id(int identity_id, int device_id) {
+ return select().with(this.identity_id, "=", identity_id).with(this.device_id, "=", device_id);
+ }
+
+ public void insert_device_list(int32 identity_id, string address_name, ArrayList<int32> devices) {
+ update().with(this.identity_id, "=", identity_id).with(this.address_name, "=", address_name).set(now_active, false).perform();
+ foreach (int32 device_id in devices) {
+ upsert()
+ .value(this.identity_id, identity_id, true)
+ .value(this.address_name, address_name, true)
+ .value(this.device_id, device_id, true)
+ .value(this.now_active, true)
+ .value(this.last_active, (long) new DateTime.now_utc().to_unix())
+ .perform();
+ }
+ }
+
+ public int64 insert_device_bundle(int32 identity_id, string address_name, int device_id, Bundle bundle, TrustLevel trust) {
+ if (bundle == null || bundle.identity_key == null) return -1;
+ // Do not replace identity_key if it was known before, it should never change!
+ string identity_key = Base64.encode(bundle.identity_key.serialize());
+ RowOption row = with_address(identity_id, address_name).with(this.device_id, "=", device_id).single().row();
+ if (row.is_present() && row[identity_key_public_base64] != null && row[identity_key_public_base64] != identity_key) {
+ critical("Tried to change the identity key for a known device id. Likely an attack.");
+ return -1;
+ }
+ return upsert()
+ .value(this.identity_id, identity_id, true)
+ .value(this.address_name, address_name, true)
+ .value(this.device_id, device_id, true)
+ .value(this.identity_key_public_base64, identity_key)
+ .value(this.trust_level, trust).perform();
+ }
+
+ public int64 insert_device_session(int32 identity_id, string address_name, int device_id, string identity_key, TrustLevel trust) {
+ RowOption row = with_address(identity_id, address_name).with(this.device_id, "=", device_id).single().row();
+ if (row.is_present() && row[identity_key_public_base64] != null && row[identity_key_public_base64] != identity_key) {
+ critical("Tried to change the identity key for a known device id. Likely an attack.");
+ return -1;
+ }
+ return upsert()
+ .value(this.identity_id, identity_id, true)
+ .value(this.address_name, address_name, true)
+ .value(this.device_id, device_id, true)
+ .value(this.identity_key_public_base64, identity_key)
+ .value(this.trust_level, trust).perform();
+ }
+
+ public void update_last_message_untrusted(int identity_id, int device_id, DateTime? time) {
+ var stmt = update()
+ .with(this.identity_id, "=", identity_id)
+ .with(this.device_id, "=", device_id);
+ if (time != null) {
+ stmt.set(last_message_untrusted, (long)time.to_unix());
+ } else {
+ stmt.set_null(last_message_untrusted);
+ }
+ stmt.perform();
+ }
+
+ public void update_last_message_undecryptable(int identity_id, int device_id, DateTime? time) {
+ var stmt = update()
+ .with(this.identity_id, "=", identity_id)
+ .with(this.device_id, "=", device_id);
+ if (time != null) {
+ stmt.set(last_message_undecryptable, (long)time.to_unix());
+ } else {
+ stmt.set_null(last_message_undecryptable);
+ }
+ stmt.perform();
+ }
+
+ public QueryBuilder get_trusted_devices(int identity_id, string address_name) {
+ return this.with_address(identity_id, address_name)
+ .with(this.trust_level, "!=", TrustLevel.UNTRUSTED)
+ .with(this.now_active, "=", true);
+ }
+
+ public QueryBuilder get_known_devices(int identity_id, string address_name) {
+ return this.with_address(identity_id, address_name)
+ .with(this.trust_level, "!=", TrustLevel.UNKNOWN)
+ .without_null(this.identity_key_public_base64);
+ }
+
+ public QueryBuilder get_unknown_devices(int identity_id, string address_name) {
+ return this.with_address(identity_id, address_name)
+ .with_null(this.identity_key_public_base64);
+ }
+
+ public QueryBuilder get_new_devices(int identity_id, string address_name) {
+ return this.with_address(identity_id, address_name)
+ .with(this.trust_level, "=", TrustLevel.UNKNOWN)
+ .without_null(this.identity_key_public_base64);
+ }
+
+ public Row? get_device(int identity_id, string address_name, int device_id) {
+ return this.with_address(identity_id, address_name)
+ .with(this.device_id, "=", device_id).single().row().inner;
+ }
+ }
+
+
+ public class TrustTable : Table {
+ public Column<int> identity_id = new Column.Integer("identity_id") { not_null = true };
+ public Column<string> address_name = new Column.Text("address_name");
+ public Column<bool> blind_trust = new Column.BoolInt("blind_trust") { default = "1" } ;
+
+ internal TrustTable(Database db) {
+ base(db, "trust");
+ init({identity_id, address_name, blind_trust});
+ index("trust_idx", {identity_id, address_name}, true);
+ }
+
+ public bool get_blind_trust(int32 identity_id, string address_name, bool def = false) {
+ RowOption row = this.select().with(this.identity_id, "=", identity_id)
+ .with(this.address_name, "=", address_name).single().row();
+ if (row.is_present()) return row[blind_trust];
+ return def;
+ }
+ }
+
+ public class IdentityTable : Table {
+ public Column<int> id = new Column.Integer("id") { primary_key = true, auto_increment = true };
+ public Column<int> account_id = new Column.Integer("account_id") { unique = true, not_null = true };
+ public Column<int> device_id = new Column.Integer("device_id") { not_null = true };
+ public Column<string> identity_key_private_base64 = new Column.NonNullText("identity_key_private_base64");
+ public Column<string> identity_key_public_base64 = new Column.NonNullText("identity_key_public_base64");
+
+ internal IdentityTable(Database db) {
+ base(db, "identity");
+ init({id, account_id, device_id, identity_key_private_base64, identity_key_public_base64});
+ }
+
+ public int get_id(int account_id) {
+ int id = -1;
+ Row? row = this.row_with(this.account_id, account_id).inner;
+ if (row != null) id = ((!)row)[this.id];
+ return id;
+ }
+ }
+
+ public class SignedPreKeyTable : Table {
+ public Column<int> identity_id = new Column.Integer("identity_id") { not_null = true };
+ public Column<int> signed_pre_key_id = new Column.Integer("signed_pre_key_id") { not_null = true };
+ public Column<string> record_base64 = new Column.NonNullText("record_base64");
+
+ internal SignedPreKeyTable(Database db) {
+ base(db, "signed_pre_key");
+ init({identity_id, signed_pre_key_id, record_base64});
+ unique({identity_id, signed_pre_key_id});
+ index("signed_pre_key_idx", {identity_id, signed_pre_key_id}, true);
+ }
+ }
+
+ public class PreKeyTable : Table {
+ public Column<int> identity_id = new Column.Integer("identity_id") { not_null = true };
+ public Column<int> pre_key_id = new Column.Integer("pre_key_id") { not_null = true };
+ public Column<string> record_base64 = new Column.NonNullText("record_base64");
+
+ internal PreKeyTable(Database db) {
+ base(db, "pre_key");
+ init({identity_id, pre_key_id, record_base64});
+ unique({identity_id, pre_key_id});
+ index("pre_key_idx", {identity_id, pre_key_id}, true);
+ }
+ }
+
+ public class SessionTable : Table {
+ public Column<int> identity_id = new Column.Integer("identity_id") { not_null = true };
+ public Column<string> address_name = new Column.NonNullText("name");
+ public Column<int> device_id = new Column.Integer("device_id") { not_null = true };
+ public Column<string> record_base64 = new Column.NonNullText("record_base64");
+
+ internal SessionTable(Database db) {
+ base(db, "session");
+ init({identity_id, address_name, device_id, record_base64});
+ unique({identity_id, address_name, device_id});
+ index("session_idx", {identity_id, address_name, device_id}, true);
+ }
+ }
+
+ public class ContentItemMetaTable : Table {
+ public Column<int> content_item_id = new Column.Integer("message_id") { primary_key = true };
+ public Column<int> identity_id = new Column.Integer("identity_id") { not_null = true };
+ public Column<string> address_name = new Column.Text("address_name") { not_null = true };
+ public Column<int> device_id = new Column.Integer("device_id") { not_null = true };
+ public Column<bool> trusted_when_received = new Column.BoolInt("trusted_when_received") { not_null = true, default = "1" };
+
+ internal ContentItemMetaTable(Database db) {
+ base(db, "content_item_meta");
+ init({content_item_id, identity_id, address_name, device_id, trusted_when_received});
+ index("content_item_meta_device_idx", {identity_id, device_id, address_name});
+ }
+
+ public RowOption with_content_item(ContentItem item) {
+ return row_with(content_item_id, item.id);
+ }
+
+ public QueryBuilder with_device(int identity_id, string address_name, int device_id) {
+ return select()
+ .with(this.identity_id, "=", identity_id)
+ .with(this.address_name, "=", address_name)
+ .with(this.device_id, "=", device_id);
+ }
+ }
+
+ public IdentityMetaTable identity_meta { get; private set; }
+ public TrustTable trust { get; private set; }
+ public IdentityTable identity { get; private set; }
+ public SignedPreKeyTable signed_pre_key { get; private set; }
+ public PreKeyTable pre_key { get; private set; }
+ public SessionTable session { get; private set; }
+ public ContentItemMetaTable content_item_meta { get; private set; }
+
+ public Database(string fileName) {
+ base(fileName, VERSION);
+ identity_meta = new IdentityMetaTable(this);
+ trust = new TrustTable(this);
+ identity = new IdentityTable(this);
+ signed_pre_key = new SignedPreKeyTable(this);
+ pre_key = new PreKeyTable(this);
+ session = new SessionTable(this);
+ content_item_meta = new ContentItemMetaTable(this);
+ init({identity_meta, trust, identity, signed_pre_key, pre_key, session, content_item_meta});
+
+ try {
+ exec("PRAGMA journal_mode = WAL");
+ exec("PRAGMA synchronous = NORMAL");
+ exec("PRAGMA secure_delete = ON");
+ } catch (Error e) {
+ error("Failed to set OMEMO database properties: %s", e.message);
+ }
+ }
+
+ public override void migrate(long oldVersion) {
+ if(oldVersion == 1) {
+ try {
+ exec("DROP INDEX identity_meta_idx");
+ exec("DROP INDEX identity_meta_list_idx");
+ exec("CREATE UNIQUE INDEX identity_meta_idx ON identity_meta (identity_id, address_name, device_id)");
+ exec("CREATE INDEX identity_meta_list_idx ON identity_meta (identity_id, address_name)");
+ } catch (Error e) {
+ stderr.printf("Failed to migrate OMEMO database\n");
+ Process.exit(-1);
+ }
+ }
+ }
+}
+
+}
diff --git a/main/src/plugins/omemo/logic/decrypt.vala b/main/src/plugins/omemo/logic/decrypt.vala
new file mode 100644
index 00000000..135ac42c
--- /dev/null
+++ b/main/src/plugins/omemo/logic/decrypt.vala
@@ -0,0 +1,212 @@
+using Gee;
+
+using Dino.Crypto.Omemo;
+using Dino.Entities;
+using Dino.Qlite;
+using Omemo;
+using Xmpp;
+
+namespace Dino.Plugins.Omemo {
+
+ public class OmemoDecryptor : Xep.Omemo.OmemoDecryptor {
+
+ private Account account;
+ private Store store;
+ private Database db;
+ private StreamInteractor stream_interactor;
+ private TrustManager trust_manager;
+
+ public override uint32 own_device_id { get { return store.local_registration_id; }}
+
+ public OmemoDecryptor(Account account, StreamInteractor stream_interactor, TrustManager trust_manager, Database db, Store store) {
+ this.account = account;
+ this.stream_interactor = stream_interactor;
+ this.trust_manager = trust_manager;
+ this.db = db;
+ this.store = store;
+ }
+
+ public bool decrypt_message(Entities.Message message, Xmpp.MessageStanza stanza, Conversation conversation) {
+ StanzaNode? encrypted_node = stanza.stanza.get_subnode("encrypted", NS_URI);
+ if (encrypted_node == null || MessageFlag.get_flag(stanza) != null || stanza.from == null) return false;
+
+ if (!Plugin.ensure_context()) return false;
+ int identity_id = db.identity.get_id(conversation.account.id);
+
+ MessageFlag flag = new MessageFlag();
+ stanza.add_flag(flag);
+
+ Xep.Omemo.ParsedData? data = parse_node(encrypted_node);
+ if (data == null) return false;
+
+
+ foreach (Bytes encr_key in data.our_potential_encrypted_keys.keys) {
+ data.is_prekey = data.our_potential_encrypted_keys[encr_key];
+ data.encrypted_key = encr_key.get_data();
+ Gee.List<Jid> possible_jids = get_potential_message_jids(message, data, identity_id);
+ if (possible_jids.size == 0) {
+ debug("Received message from unknown entity with device id %d", data.sid);
+ }
+
+ foreach (Jid possible_jid in possible_jids) {
+ try {
+ uint8[] key = decrypt_key(data, possible_jid);
+ if (data.ciphertext != null) {
+ string cleartext = arr_to_str(aes_decrypt(Cipher.AES_GCM_NOPADDING, key, data.iv, data.ciphertext));
+ message.body = cleartext;
+ }
+
+ // If we figured out which real jid a message comes from due to decryption working, save it
+ if (conversation.type_ == Conversation.Type.GROUPCHAT && message.real_jid == null) {
+ message.real_jid = possible_jid;
+ }
+
+ message.encryption = Encryption.OMEMO;
+
+ trust_manager.message_device_id_map[message] = data.sid;
+ return true;
+ } catch (Error e) {
+ debug("Decrypting message from %s/%d failed: %s", possible_jid.to_string(), data.sid, e.message);
+ }
+ }
+ }
+
+ if (
+ data.ciphertext != null && // Ratchet forwarding doesn't contain payload and might not include us, which is ok
+ data.our_potential_encrypted_keys.size == 0 && // The message was not encrypted to us
+ stream_interactor.module_manager.get_module(message.account, StreamModule.IDENTITY).store.local_registration_id != data.sid // Message from this device. Never encrypted to itself.
+ ) {
+ db.identity_meta.update_last_message_undecryptable(identity_id, data.sid, message.time);
+ trust_manager.bad_message_state_updated(conversation.account, message.from, data.sid);
+ }
+
+ debug("Received OMEMO encryped message that could not be decrypted.");
+ return false;
+ }
+
+ public Gee.List<Jid> get_potential_message_jids(Entities.Message message, Xmpp.Xep.Omemo.ParsedData data, int identity_id) {
+ Gee.List<Jid> possible_jids = new ArrayList<Jid>();
+ if (message.type_ == Message.Type.CHAT) {
+ possible_jids.add(message.from.bare_jid);
+ } else {
+ if (message.real_jid != null) {
+ possible_jids.add(message.real_jid.bare_jid);
+ } else if (data.is_prekey) {
+ // pre key messages do store the identity key, so we can use that to find the real jid
+ PreKeyOmemoMessage msg = Plugin.get_context().deserialize_signal_pre_key_message(data.encrypted_key);
+ string identity_key = Base64.encode(msg.identity_key.serialize());
+ foreach (Row row in db.identity_meta.get_with_device_id(identity_id, data.sid).with(db.identity_meta.identity_key_public_base64, "=", identity_key)) {
+ try {
+ possible_jids.add(Jid.from_string(row[db.identity_meta.address_name]));
+ } catch (InvalidJidError e) {
+ warning("Ignoring invalid jid from database: %s", e.message);
+ }
+ }
+ } else {
+ // If we don't know the device name (MUC history w/o MAM), test decryption with all keys with fitting device id
+ foreach (Row row in db.identity_meta.get_with_device_id(identity_id, data.sid)) {
+ try {
+ possible_jids.add(Jid.from_string(row[db.identity_meta.address_name]));
+ } catch (InvalidJidError e) {
+ warning("Ignoring invalid jid from database: %s", e.message);
+ }
+ }
+ }
+ }
+ return possible_jids;
+ }
+
+ public override uint8[] decrypt_key(Xmpp.Xep.Omemo.ParsedData data, Jid from_jid) throws GLib.Error {
+ int sid = data.sid;
+ uint8[] ciphertext = data.ciphertext;
+ uint8[] encrypted_key = data.encrypted_key;
+
+ Address address = new Address(from_jid.to_string(), sid);
+ uint8[] key;
+
+ if (data.is_prekey) {
+ int identity_id = db.identity.get_id(account.id);
+ PreKeyOmemoMessage msg = Plugin.get_context().deserialize_signal_pre_key_message(encrypted_key);
+ string identity_key = Base64.encode(msg.identity_key.serialize());
+
+ bool ok = update_db_for_prekey(identity_id, identity_key, from_jid, sid);
+ if (!ok) throw new GLib.Error(-1, 0, "Failed updating db for prekey");
+
+ debug("Starting new session for decryption with device from %s/%d", from_jid.to_string(), sid);
+ SessionCipher cipher = store.create_session_cipher(address);
+ key = cipher.decrypt_pre_key_message(msg);
+ // TODO: Finish session
+ } else {
+ debug("Continuing session for decryption with device from %s/%d", from_jid.to_string(), sid);
+ OmemoMessage msg = Plugin.get_context().deserialize_signal_message(encrypted_key);
+ SessionCipher cipher = store.create_session_cipher(address);
+ key = cipher.decrypt_message(msg);
+ }
+
+ if (key.length >= 32) {
+ int authtaglength = key.length - 16;
+ uint8[] new_ciphertext = new uint8[ciphertext.length + authtaglength];
+ uint8[] new_key = new uint8[16];
+ Memory.copy(new_ciphertext, ciphertext, ciphertext.length);
+ Memory.copy((uint8*)new_ciphertext + ciphertext.length, (uint8*)key + 16, authtaglength);
+ Memory.copy(new_key, key, 16);
+ data.ciphertext = new_ciphertext;
+ key = new_key;
+ }
+
+ return key;
+ }
+
+ public override string decrypt(uint8[] ciphertext, uint8[] key, uint8[] iv) throws GLib.Error {
+ return arr_to_str(aes_decrypt(Cipher.AES_GCM_NOPADDING, key, iv, ciphertext));
+ }
+
+ private bool update_db_for_prekey(int identity_id, string identity_key, Jid from_jid, int sid) {
+ Row? device = db.identity_meta.get_device(identity_id, from_jid.to_string(), sid);
+ if (device != null && device[db.identity_meta.identity_key_public_base64] != null) {
+ if (device[db.identity_meta.identity_key_public_base64] != identity_key) {
+ critical("Tried to use a different identity key for a known device id.");
+ return false;
+ }
+ } else {
+ debug("Learn new device from incoming message from %s/%d", from_jid.to_string(), sid);
+ bool blind_trust = db.trust.get_blind_trust(identity_id, from_jid.to_string(), true);
+ if (db.identity_meta.insert_device_session(identity_id, from_jid.to_string(), sid, identity_key, blind_trust ? TrustLevel.TRUSTED : TrustLevel.UNKNOWN) < 0) {
+ critical("Failed learning a device.");
+ return false;
+ }
+
+ XmppStream? stream = stream_interactor.get_stream(account);
+ if (device == null && stream != null) {
+ stream.get_module(StreamModule.IDENTITY).request_user_devicelist.begin(stream, from_jid);
+ }
+ }
+ return true;
+ }
+
+ private string arr_to_str(uint8[] arr) {
+ // null-terminate the array
+ uint8[] rarr = new uint8[arr.length+1];
+ Memory.copy(rarr, arr, arr.length);
+ return (string)rarr;
+ }
+ }
+
+ public class DecryptMessageListener : MessageListener {
+ public string[] after_actions_const = new string[]{ };
+ public override string action_group { get { return "DECRYPT"; } }
+ public override string[] after_actions { get { return after_actions_const; } }
+
+ private HashMap<Account, OmemoDecryptor> decryptors;
+
+ public DecryptMessageListener(HashMap<Account, OmemoDecryptor> decryptors) {
+ this.decryptors = decryptors;
+ }
+
+ public override async bool run(Entities.Message message, Xmpp.MessageStanza stanza, Conversation conversation) {
+ decryptors[message.account].decrypt_message(message, stanza, conversation);
+ return false;
+ }
+ }
+}
+
diff --git a/main/src/plugins/omemo/logic/encrypt.vala b/main/src/plugins/omemo/logic/encrypt.vala
new file mode 100644
index 00000000..8994d00d
--- /dev/null
+++ b/main/src/plugins/omemo/logic/encrypt.vala
@@ -0,0 +1,132 @@
+using Gee;
+using Omemo;
+using Dino.Crypto.Omemo;
+using Dino.Entities;
+using Xmpp;
+using Xmpp.Xep.Omemo;
+
+namespace Dino.Plugins.Omemo {
+
+ public class OmemoEncryptor : Xep.Omemo.OmemoEncryptor {
+
+ private Account account;
+ private Store store;
+ private TrustManager trust_manager;
+
+ public override uint32 own_device_id { get { return store.local_registration_id; }}
+
+ public OmemoEncryptor(Account account, TrustManager trust_manager, Store store) {
+ this.account = account;
+ this.trust_manager = trust_manager;
+ this.store = store;
+ }
+
+ public override Xep.Omemo.EncryptionData encrypt_plaintext(string plaintext) throws GLib.Error {
+ const uint KEY_SIZE = 16;
+ const uint IV_SIZE = 12;
+
+ //Create a key and use it to encrypt the message
+ uint8[] key = new uint8[KEY_SIZE];
+ Crypto.randomize(key);
+ uint8[] iv = new uint8[IV_SIZE];
+ Crypto.randomize(iv);
+
+ uint8[] aes_encrypt_result = aes_encrypt(Cipher.AES_GCM_NOPADDING, key, iv, plaintext.data);
+ uint8[] ciphertext = aes_encrypt_result[0:aes_encrypt_result.length - 16];
+ uint8[] tag = aes_encrypt_result[aes_encrypt_result.length - 16:aes_encrypt_result.length];
+ uint8[] keytag = new uint8[key.length + tag.length];
+ Memory.copy(keytag, key, key.length);
+ Memory.copy((uint8*)keytag + key.length, tag, tag.length);
+
+ var ret = new Xep.Omemo.EncryptionData(own_device_id);
+ ret.ciphertext = ciphertext;
+ ret.keytag = keytag;
+ ret.iv = iv;
+ return ret;
+ }
+
+ public EncryptState encrypt(MessageStanza message, Jid self_jid, Gee.List<Jid> recipients, XmppStream stream) {
+
+ EncryptState status = new EncryptState();
+ if (!Plugin.ensure_context()) return status;
+ if (message.to == null) return status;
+
+ try {
+ EncryptionData enc_data = encrypt_plaintext(message.body);
+ status = encrypt_key_to_recipients(enc_data, self_jid, recipients, stream);
+
+ message.stanza.put_node(enc_data.get_encrypted_node());
+ Xep.ExplicitEncryption.add_encryption_tag_to_message(message, NS_URI, "OMEMO");
+ message.body = "[This message is OMEMO encrypted]";
+ status.encrypted = true;
+ } catch (Error e) {
+ warning(@"error while encrypting message: $(e.message)\n");
+ message.body = "[OMEMO encryption failed]";
+ status.encrypted = false;
+ }
+ return status;
+ }
+
+ internal EncryptState encrypt_key_to_recipients(EncryptionData enc_data, Jid self_jid, Gee.List<Jid> recipients, XmppStream stream) throws Error {
+ EncryptState status = new EncryptState();
+
+ //Check we have the bundles and device lists needed to send the message
+ if (!trust_manager.is_known_address(account, self_jid)) return status;
+ status.own_list = true;
+ status.own_devices = trust_manager.get_trusted_devices(account, self_jid).size;
+ status.other_waiting_lists = 0;
+ status.other_devices = 0;
+ foreach (Jid recipient in recipients) {
+ if (!trust_manager.is_known_address(account, recipient)) {
+ status.other_waiting_lists++;
+ }
+ if (status.other_waiting_lists > 0) return status;
+ status.other_devices += trust_manager.get_trusted_devices(account, recipient).size;
+ }
+ if (status.own_devices == 0 || status.other_devices == 0) return status;
+
+
+ //Encrypt the key for each recipient's device individually
+ foreach (Jid recipient in recipients) {
+ EncryptionResult enc_res = encrypt_key_to_recipient(stream, enc_data, recipient);
+ status.add_result(enc_res, false);
+ }
+
+ // Encrypt the key for each own device
+ EncryptionResult enc_res = encrypt_key_to_recipient(stream, enc_data, self_jid);
+ status.add_result(enc_res, true);
+
+ return status;
+ }
+
+ public override EncryptionResult encrypt_key_to_recipient(XmppStream stream, Xep.Omemo.EncryptionData enc_data, Jid recipient) throws GLib.Error {
+ var result = new EncryptionResult();
+ StreamModule module = stream.get_module(StreamModule.IDENTITY);
+
+ foreach(int32 device_id in trust_manager.get_trusted_devices(account, recipient)) {
+ if (module.is_ignored_device(recipient, device_id)) {
+ result.lost++;
+ continue;
+ }
+ try {
+ encrypt_key(enc_data, recipient, device_id);
+ result.success++;
+ } catch (Error e) {
+ if (e.code == ErrorCode.UNKNOWN) result.unknown++;
+ else result.failure++;
+ }
+ }
+ return result;
+ }
+
+ public override void encrypt_key(Xep.Omemo.EncryptionData encryption_data, Jid jid, int32 device_id) throws GLib.Error {
+ Address address = new Address(jid.to_string(), device_id);
+ SessionCipher cipher = store.create_session_cipher(address);
+ CiphertextMessage device_key = cipher.encrypt(encryption_data.keytag);
+ address.device_id = 0;
+ debug("Created encrypted key for %s/%d", jid.to_string(), device_id);
+
+ encryption_data.add_device_key(device_id, device_key.serialized, device_key.type == CiphertextType.PREKEY);
+ }
+ }
+}
diff --git a/main/src/plugins/omemo/logic/manager.vala b/main/src/plugins/omemo/logic/manager.vala
new file mode 100644
index 00000000..358db4e3
--- /dev/null
+++ b/main/src/plugins/omemo/logic/manager.vala
@@ -0,0 +1,431 @@
+using Gee;
+
+using Dino.Crypto.Omemo;
+using Dino.Entities;
+using Dino.Qlite;
+using Omemo;
+using Xmpp;
+
+namespace Dino.Plugins.Omemo {
+
+public class Manager : StreamInteractionModule, Object {
+ public static ModuleIdentity<Manager> IDENTITY = new ModuleIdentity<Manager>("omemo_manager");
+ public string id { get { return IDENTITY.id; } }
+
+ private StreamInteractor stream_interactor;
+ private Database db;
+ private TrustManager trust_manager;
+ private HashMap<Account, OmemoEncryptor> encryptors;
+ private Map<Entities.Message, MessageState> message_states = new HashMap<Entities.Message, MessageState>(Entities.Message.hash_func, Entities.Message.equals_func);
+
+ private class MessageState {
+ public Entities.Message msg { get; private set; }
+ public Xep.Omemo.EncryptState last_try { get; private set; }
+ public int waiting_other_sessions { get; set; }
+ public int waiting_own_sessions { get; set; }
+ public bool waiting_own_devicelist { get; set; }
+ public int waiting_other_devicelists { get; set; }
+ public bool force_next_attempt { get; set; }
+ public bool will_send_now { get; private set; }
+ public bool active_send_attempt { get; set; }
+
+ public MessageState(Entities.Message msg, Xep.Omemo.EncryptState last_try) {
+ update_from_encrypt_status(msg, last_try);
+ }
+
+ public void update_from_encrypt_status(Entities.Message msg, Xep.Omemo.EncryptState new_try) {
+ this.msg = msg;
+ this.last_try = new_try;
+ this.waiting_other_sessions = new_try.other_unknown;
+ this.waiting_own_sessions = new_try.own_unknown;
+ this.waiting_own_devicelist = !new_try.own_list;
+ this.waiting_other_devicelists = new_try.other_waiting_lists;
+ this.active_send_attempt = false;
+ will_send_now = false;
+ if (new_try.other_failure > 0 || (new_try.other_lost == new_try.other_devices && new_try.other_devices > 0)) {
+ msg.marked = Entities.Message.Marked.WONTSEND;
+ } else if (new_try.other_unknown > 0 || new_try.own_unknown > 0 || new_try.other_waiting_lists > 0 || !new_try.own_list || new_try.own_devices == 0) {
+ msg.marked = Entities.Message.Marked.UNSENT;
+ } else if (!new_try.encrypted) {
+ msg.marked = Entities.Message.Marked.WONTSEND;
+ } else {
+ will_send_now = true;
+ }
+ }
+
+ public bool should_retry_now() {
+ return !waiting_own_devicelist && waiting_other_devicelists <= 0 && waiting_other_sessions <= 0 && waiting_own_sessions <= 0 && !active_send_attempt;
+ }
+
+ public string to_string() {
+ return @"MessageState (msg=$(msg.stanza_id), send=$will_send_now, $last_try)";
+ }
+ }
+
+ private Manager(StreamInteractor stream_interactor, Database db, TrustManager trust_manager, HashMap<Account, OmemoEncryptor> encryptors) {
+ this.stream_interactor = stream_interactor;
+ this.db = db;
+ this.trust_manager = trust_manager;
+ this.encryptors = encryptors;
+
+ stream_interactor.account_added.connect(on_account_added);
+ stream_interactor.stream_negotiated.connect(on_stream_negotiated);
+ stream_interactor.get_module(MessageProcessor.IDENTITY).pre_message_send.connect(on_pre_message_send);
+ stream_interactor.get_module(RosterManager.IDENTITY).mutual_subscription.connect(on_mutual_subscription);
+ }
+
+ public void clear_device_list(Account account) {
+ XmppStream? stream = stream_interactor.get_stream(account);
+ if (stream == null) return;
+
+ stream.get_module(StreamModule.IDENTITY).clear_device_list(stream);
+ }
+
+ private Gee.List<Jid> get_occupants(Jid jid, Account account){
+ Gee.List<Jid> occupants = new ArrayList<Jid>(Jid.equals_bare_func);
+ if(!stream_interactor.get_module(MucManager.IDENTITY).is_groupchat(jid, account)){
+ occupants.add(jid);
+ }
+ Gee.List<Jid>? occupant_jids = stream_interactor.get_module(MucManager.IDENTITY).get_offline_members(jid, account);
+ if(occupant_jids == null) {
+ return occupants;
+ }
+ foreach (Jid occupant in occupant_jids) {
+ if(!occupant.equals(account.bare_jid)){
+ occupants.add(occupant.bare_jid);
+ }
+ }
+ return occupants;
+ }
+
+ private void on_pre_message_send(Entities.Message message, Xmpp.MessageStanza message_stanza, Conversation conversation) {
+ if (message.encryption == Encryption.OMEMO) {
+ if (message.type_ == Message.Type.GROUPCHAT_PM) {
+ message.marked = Message.Marked.WONTSEND;
+ return;
+ }
+ XmppStream? stream = stream_interactor.get_stream(conversation.account);
+ if (stream == null) {
+ message.marked = Entities.Message.Marked.UNSENT;
+ return;
+ }
+ StreamModule? module_ = ((!)stream).get_module(StreamModule.IDENTITY);
+ if (module_ == null) {
+ message.marked = Entities.Message.Marked.UNSENT;
+ return;
+ }
+ StreamModule module = (!)module_;
+
+ //Get a list of everyone for whom the message should be encrypted
+ Gee.List<Jid> recipients;
+ if (message_stanza.type_ == MessageStanza.TYPE_GROUPCHAT) {
+ recipients = get_occupants((!)message.to.bare_jid, conversation.account);
+ if (recipients.size == 0) {
+ message.marked = Entities.Message.Marked.WONTSEND;
+ return;
+ }
+ } else {
+ recipients = new ArrayList<Jid>(Jid.equals_bare_func);
+ recipients.add(message_stanza.to);
+ }
+
+ //Attempt to encrypt the message
+ Xep.Omemo.EncryptState enc_state = encryptors[conversation.account].encrypt(message_stanza, conversation.account.bare_jid, recipients, stream);
+ MessageState state;
+ lock (message_states) {
+ if (message_states.has_key(message)) {
+ state = message_states.get(message);
+ state.update_from_encrypt_status(message, enc_state);
+ if (state.will_send_now) {
+ debug("sending message delayed: %s", state.to_string());
+ }
+ } else {
+ state = new MessageState(message, enc_state);
+ message_states[message] = state;
+ }
+ if (state.will_send_now) {
+ message_states.unset(message);
+ }
+ }
+
+ //Encryption failed - need to fetch more information
+ if (!state.will_send_now) {
+ if (message.marked == Entities.Message.Marked.WONTSEND) {
+ debug("retracting message %s", state.to_string());
+ message_states.unset(message);
+ } else {
+ debug("delaying message %s", state.to_string());
+
+ if (state.waiting_own_sessions > 0) {
+ module.fetch_bundles((!)stream, conversation.account.bare_jid, trust_manager.get_trusted_devices(conversation.account, conversation.account.bare_jid));
+ }
+ if (state.waiting_other_sessions > 0 && message.counterpart != null) {
+ foreach(Jid jid in get_occupants(((!)message.counterpart).bare_jid, conversation.account)) {
+ module.fetch_bundles((!)stream, jid, trust_manager.get_trusted_devices(conversation.account, jid));
+ }
+ }
+ if (state.waiting_other_devicelists > 0 && message.counterpart != null) {
+ foreach(Jid jid in get_occupants(((!)message.counterpart).bare_jid, conversation.account)) {
+ module.request_user_devicelist.begin((!)stream, jid);
+ }
+ }
+ }
+ }
+ }
+ }
+
+ private void on_mutual_subscription(Account account, Jid jid) {
+ XmppStream? stream = stream_interactor.get_stream(account);
+ if(stream == null) return;
+
+ stream_interactor.module_manager.get_module(account, StreamModule.IDENTITY).request_user_devicelist.begin((!)stream, jid);
+ }
+
+ private void on_stream_negotiated(Account account, XmppStream stream) {
+ StreamModule module = stream_interactor.module_manager.get_module(account, StreamModule.IDENTITY);
+ if (module != null) {
+ module.request_user_devicelist.begin(stream, account.bare_jid);
+ }
+ }
+
+ private void on_account_added(Account account) {
+ StreamModule module = stream_interactor.module_manager.get_module(account, StreamModule.IDENTITY);
+ if (module != null) {
+ module.device_list_loaded.connect((jid, devices) => on_device_list_loaded(account, jid, devices));
+ module.bundle_fetched.connect((jid, device_id, bundle) => on_bundle_fetched(account, jid, device_id, bundle));
+ module.bundle_fetch_failed.connect((jid) => continue_message_sending(account, jid));
+ }
+ initialize_store.begin(account);
+ }
+
+ private void on_device_list_loaded(Account account, Jid jid, ArrayList<int32> device_list) {
+ debug("received device list for %s from %s", account.bare_jid.to_string(), jid.to_string());
+
+ XmppStream? stream = stream_interactor.get_stream(account);
+ if (stream == null) {
+ return;
+ }
+ StreamModule? module = ((!)stream).get_module(StreamModule.IDENTITY);
+ if (module == null) {
+ return;
+ }
+
+ int identity_id = db.identity.get_id(account.id);
+ if (identity_id < 0) return;
+
+ //Update meta database
+ db.identity_meta.insert_device_list(identity_id, jid.bare_jid.to_string(), device_list);
+
+ //Fetch the bundle for each new device
+ int inc = 0;
+ foreach (Row row in db.identity_meta.get_unknown_devices(identity_id, jid.bare_jid.to_string())) {
+ try {
+ module.fetch_bundle(stream, Jid.from_string(row[db.identity_meta.address_name]), row[db.identity_meta.device_id], false);
+ inc++;
+ } catch (InvalidJidError e) {
+ warning("Ignoring device with invalid Jid: %s", e.message);
+ }
+ }
+ if (inc > 0) {
+ debug("new bundles %i/%i for %s", inc, device_list.size, jid.to_string());
+ }
+
+ //Create an entry for the jid in the account table if one does not exist already
+ if (db.trust.select().with(db.trust.identity_id, "=", identity_id).with(db.trust.address_name, "=", jid.bare_jid.to_string()).count() == 0) {
+ db.trust.insert().value(db.trust.identity_id, identity_id).value(db.trust.address_name, jid.bare_jid.to_string()).value(db.trust.blind_trust, true).perform();
+ }
+
+ //Get all messages that needed the devicelist and determine if we can now send them
+ HashSet<Entities.Message> send_now = new HashSet<Entities.Message>();
+ lock (message_states) {
+ foreach (Entities.Message msg in message_states.keys) {
+ if (!msg.account.equals(account)) continue;
+ Gee.List<Jid> occupants = get_occupants(msg.counterpart.bare_jid, account);
+ MessageState state = message_states[msg];
+ if (account.bare_jid.equals(jid)) {
+ state.waiting_own_devicelist = false;
+ } else if (msg.counterpart != null && occupants.contains(jid)) {
+ state.waiting_other_devicelists--;
+ }
+ if (state.should_retry_now()) {
+ send_now.add(msg);
+ state.active_send_attempt = true;
+ }
+ }
+ }
+ foreach (Entities.Message msg in send_now) {
+ if (msg.counterpart == null) continue;
+ Entities.Conversation? conv = stream_interactor.get_module(ConversationManager.IDENTITY).get_conversation(((!)msg.counterpart), account);
+ if (conv == null) continue;
+ stream_interactor.get_module(MessageProcessor.IDENTITY).send_xmpp_message(msg, (!)conv, true);
+ }
+
+ }
+
+ private void on_bundle_fetched(Account account, Jid jid, int32 device_id, Bundle bundle) {
+ int identity_id = db.identity.get_id(account.id);
+ if (identity_id < 0) return;
+
+ bool blind_trust = db.trust.get_blind_trust(identity_id, jid.bare_jid.to_string(), true);
+
+ //If we don't blindly trust new devices and we haven't seen this key before then don't trust it
+ bool untrust = !(blind_trust || db.identity_meta.with_address(identity_id, jid.bare_jid.to_string())
+ .with(db.identity_meta.device_id, "=", device_id)
+ .with(db.identity_meta.identity_key_public_base64, "=", Base64.encode(bundle.identity_key.serialize()))
+ .single().row().is_present());
+
+ //Get trust information from the database if the device id is known
+ Row device = db.identity_meta.get_device(identity_id, jid.bare_jid.to_string(), device_id);
+ TrustLevel trusted = TrustLevel.UNKNOWN;
+ if (device != null) {
+ trusted = (TrustLevel) device[db.identity_meta.trust_level];
+ }
+
+ if(untrust) {
+ trusted = TrustLevel.UNKNOWN;
+ } else if (blind_trust && trusted == TrustLevel.UNKNOWN) {
+ trusted = TrustLevel.TRUSTED;
+ }
+
+ //Update the database with the appropriate trust information
+ db.identity_meta.insert_device_bundle(identity_id, jid.bare_jid.to_string(), device_id, bundle, trusted);
+
+ if (should_start_session(account, jid)) {
+ XmppStream? stream = stream_interactor.get_stream(account);
+ if (stream != null) {
+ StreamModule? module = ((!)stream).get_module(StreamModule.IDENTITY);
+ if (module != null) {
+ module.start_session(stream, jid, device_id, bundle);
+ }
+ }
+ }
+ continue_message_sending(account, jid);
+ }
+
+ private bool should_start_session(Account account, Jid jid) {
+ lock (message_states) {
+ foreach (Entities.Message msg in message_states.keys) {
+ if (!msg.account.equals(account)) continue;
+ Gee.List<Jid> occupants = get_occupants(msg.counterpart.bare_jid, account);
+ if (account.bare_jid.equals(jid) || (msg.counterpart != null && (msg.counterpart.equals_bare(jid) || occupants.contains(jid)))) {
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ private void continue_message_sending(Account account, Jid jid) {
+ //Get all messages waiting and determine if they can now be sent
+ HashSet<Entities.Message> send_now = new HashSet<Entities.Message>();
+ lock (message_states) {
+ foreach (Entities.Message msg in message_states.keys) {
+ if (!msg.account.equals(account)) continue;
+ Gee.List<Jid> occupants = get_occupants(msg.counterpart.bare_jid, account);
+
+ MessageState state = message_states[msg];
+
+ if (account.bare_jid.equals(jid)) {
+ state.waiting_own_sessions--;
+ } else if (msg.counterpart != null && (msg.counterpart.equals_bare(jid) || occupants.contains(jid))) {
+ state.waiting_other_sessions--;
+ }
+ if (state.should_retry_now()){
+ send_now.add(msg);
+ state.active_send_attempt = true;
+ }
+ }
+ }
+ foreach (Entities.Message msg in send_now) {
+ if (msg.counterpart == null) continue;
+ Entities.Conversation? conv = stream_interactor.get_module(ConversationManager.IDENTITY).get_conversation((!)msg.counterpart, account);
+ if (conv == null) continue;
+ stream_interactor.get_module(MessageProcessor.IDENTITY).send_xmpp_message(msg, (!)conv, true);
+ }
+ }
+
+ private async void initialize_store(Account account) {
+ // If the account is not yet persisted, wait for that and then continue - without identity.account_id the entry isn't worth much.
+ if (account.id == -1) {
+ account.notify["id"].connect(() => initialize_store.callback());
+ yield;
+ }
+ StreamModule? module = stream_interactor.module_manager.get_module(account, StreamModule.IDENTITY);
+ if (module == null) return;
+ Store store = module.store;
+ Qlite.Row? row = db.identity.row_with(db.identity.account_id, account.id).inner;
+ int identity_id = -1;
+ bool publish_identity = false;
+
+ if (row == null) {
+ // OMEMO not yet initialized, starting with empty base
+ publish_identity = true;
+ try {
+ store.identity_key_store.local_registration_id = Random.int_range(1, int32.MAX);
+
+ ECKeyPair key_pair = Plugin.get_context().generate_key_pair();
+ store.identity_key_store.identity_key_private = new Bytes(key_pair.private.serialize());
+ store.identity_key_store.identity_key_public = new Bytes(key_pair.public.serialize());
+
+ identity_id = (int) db.identity.upsert()
+ .value(db.identity.account_id, account.id, true)
+ .value(db.identity.device_id, (int) store.local_registration_id)
+ .value(db.identity.identity_key_private_base64, Base64.encode(store.identity_key_store.identity_key_private.get_data()))
+ .value(db.identity.identity_key_public_base64, Base64.encode(store.identity_key_store.identity_key_public.get_data()))
+ .perform();
+ } catch (Error e) {
+ // Ignore error
+ }
+ } else {
+ store.identity_key_store.local_registration_id = ((!)row)[db.identity.device_id];
+ store.identity_key_store.identity_key_private = new Bytes(Base64.decode(((!)row)[db.identity.identity_key_private_base64]));
+ store.identity_key_store.identity_key_public = new Bytes(Base64.decode(((!)row)[db.identity.identity_key_public_base64]));
+ identity_id = ((!)row)[db.identity.id];
+ }
+
+ if (identity_id >= 0) {
+ store.signed_pre_key_store = new BackedSignedPreKeyStore(db, identity_id);
+ store.pre_key_store = new BackedPreKeyStore(db, identity_id);
+ store.session_store = new BackedSessionStore(db, identity_id);
+ } else {
+ warning("store for %s is not persisted!", account.bare_jid.to_string());
+ }
+
+ // Generated new device ID, ensure this gets added to the devicelist
+ XmppStream? stream = stream_interactor.get_stream(account);
+ if (stream != null) {
+ module.request_user_devicelist.begin((!)stream, account.bare_jid);
+ }
+ }
+
+ public async bool ensure_get_keys_for_conversation(Conversation conversation) {
+ if (stream_interactor.get_module(MucManager.IDENTITY).is_private_room(conversation.account, conversation.counterpart)) {
+ foreach (Jid offline_member in stream_interactor.get_module(MucManager.IDENTITY).get_offline_members(conversation.counterpart, conversation.account)) {
+ bool ok = yield ensure_get_keys_for_jid(conversation.account, offline_member);
+ if (!ok) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ return yield ensure_get_keys_for_jid(conversation.account, conversation.counterpart.bare_jid);
+ }
+
+ public async bool ensure_get_keys_for_jid(Account account, Jid jid) {
+ if (trust_manager.is_known_address(account, jid)) return true;
+ XmppStream? stream = stream_interactor.get_stream(account);
+ if (stream != null) {
+ var device_list = yield stream_interactor.module_manager.get_module(account, StreamModule.IDENTITY).request_user_devicelist(stream, jid);
+ return device_list.size > 0;
+ }
+ return true; // TODO wait for stream?
+ }
+
+ public static void start(StreamInteractor stream_interactor, Database db, TrustManager trust_manager, HashMap<Account, OmemoEncryptor> encryptors) {
+ Manager m = new Manager(stream_interactor, db, trust_manager, encryptors);
+ stream_interactor.add_module(m);
+ }
+}
+
+}
diff --git a/main/src/plugins/omemo/logic/pre_key_store.vala b/main/src/plugins/omemo/logic/pre_key_store.vala
new file mode 100644
index 00000000..97e27858
--- /dev/null
+++ b/main/src/plugins/omemo/logic/pre_key_store.vala
@@ -0,0 +1,48 @@
+using Dino.Crypto.Omemo;
+using Dino.Qlite;
+using Omemo;
+
+namespace Dino.Plugins.Omemo {
+
+private class BackedPreKeyStore : PreKeyStore {
+ private Database db;
+ private int identity_id;
+
+ public BackedPreKeyStore(Database db, int identity_id) {
+ this.db = db;
+ this.identity_id = identity_id;
+ }
+
+ public override uint8[]? load_pre_key(uint32 pre_key_id) throws Crypto.Error {
+ RowOption row = db.pre_key.select({db.pre_key.record_base64})
+ .with(db.pre_key.identity_id, "=", identity_id)
+ .with(db.pre_key.pre_key_id, "=", (int) pre_key_id)
+ .single().row();
+ if (!row.is_present()) return null;
+ return Base64.decode(row[db.pre_key.record_base64]);
+ }
+
+ public override void store_pre_key(uint32 pre_key_id, uint8[] record) throws Crypto.Error {
+ db.pre_key.upsert()
+ .value(db.pre_key.identity_id, identity_id, true)
+ .value(db.pre_key.pre_key_id, (int) pre_key_id, true)
+ .value(db.pre_key.record_base64, Base64.encode(record))
+ .perform();
+ }
+
+ public override bool contains_pre_key(uint32 pre_key_id) throws Crypto.Error {
+ return db.pre_key.select({db.pre_key.pre_key_id})
+ .with(db.pre_key.identity_id, "=", identity_id)
+ .with(db.pre_key.pre_key_id, "=", (int) pre_key_id)
+ .count() > 0;
+ }
+
+ public override void delete_pre_key(uint32 pre_key_id) throws Crypto.Error {
+ db.pre_key.delete()
+ .with(db.pre_key.identity_id, "=", identity_id)
+ .with(db.pre_key.pre_key_id, "=", (int) pre_key_id)
+ .perform();
+ }
+}
+
+}
diff --git a/main/src/plugins/omemo/logic/session_store.vala b/main/src/plugins/omemo/logic/session_store.vala
new file mode 100644
index 00000000..883e1caa
--- /dev/null
+++ b/main/src/plugins/omemo/logic/session_store.vala
@@ -0,0 +1,69 @@
+using Dino.Crypto.Omemo;
+using Dino.Qlite;
+using Omemo;
+
+namespace Dino.Plugins.Omemo {
+
+private class BackedSessionStore : SessionStore {
+ private Database db;
+ private int identity_id;
+
+ public BackedSessionStore(Database db, int identity_id) {
+ this.db = db;
+ this.identity_id = identity_id;
+ }
+
+ public override uint8[]? load_session(Address address) throws Crypto.Error {
+ RowOption row = db.session.select({db.session.record_base64})
+ .with(db.session.identity_id, "=", identity_id)
+ .with(db.session.address_name, "=", address.name)
+ .with(db.session.device_id, "=", address.device_id)
+ .single().row();
+ if (!row.is_present()) return null;
+ return Base64.decode(row[db.session.record_base64]);
+ }
+
+ public override IntList get_sub_device_sessions(string name) throws Crypto.Error {
+ IntList res = new IntList();
+ foreach (Row row in db.session.select({db.session.device_id})
+ .with(db.session.identity_id, "=", identity_id)
+ .with(db.session.address_name, "=", name)) {
+ res.add(row[db.session.device_id]);
+ }
+ return res;
+ }
+
+ public override void store_session(Address address, uint8[] record) throws Crypto.Error {
+ db.session.upsert()
+ .value(db.session.identity_id, identity_id, true)
+ .value(db.session.address_name, address.name, true)
+ .value(db.session.device_id, address.device_id, true)
+ .value(db.session.record_base64, Base64.encode(record))
+ .perform();
+ }
+
+ public override bool contains_session(Address address) throws Crypto.Error {
+ return db.session.select({db.session.device_id})
+ .with(db.session.identity_id, "=", identity_id)
+ .with(db.session.address_name, "=", address.name)
+ .with(db.session.device_id, "=", address.device_id)
+ .count() > 0;
+ }
+
+ public override void delete_session(Address address) throws Crypto.Error {
+ db.session.delete()
+ .with(db.session.identity_id, "=", identity_id)
+ .with(db.session.address_name, "=", address.name)
+ .with(db.session.device_id, "=", address.device_id)
+ .perform();
+ }
+
+ public override void delete_all_sessions(string name) throws Crypto.Error {
+ db.session.delete()
+ .with(db.session.identity_id, "=", identity_id)
+ .with(db.session.address_name, "=", name)
+ .perform();
+ }
+}
+
+}
diff --git a/main/src/plugins/omemo/logic/signed_pre_key_store.vala b/main/src/plugins/omemo/logic/signed_pre_key_store.vala
new file mode 100644
index 00000000..f4d57550
--- /dev/null
+++ b/main/src/plugins/omemo/logic/signed_pre_key_store.vala
@@ -0,0 +1,48 @@
+using Dino.Crypto.Omemo;
+using Dino.Qlite;
+using Omemo;
+
+namespace Dino.Plugins.Omemo {
+
+private class BackedSignedPreKeyStore : SignedPreKeyStore {
+ private Database db;
+ private int identity_id;
+
+ public BackedSignedPreKeyStore(Database db, int identity_id) {
+ this.db = db;
+ this.identity_id = identity_id;
+ }
+
+ public override uint8[]? load_signed_pre_key(uint32 pre_key_id) throws Crypto.Error {
+ RowOption row = db.signed_pre_key.select({db.signed_pre_key.record_base64})
+ .with(db.signed_pre_key.identity_id, "=", identity_id)
+ .with(db.signed_pre_key.signed_pre_key_id, "=", (int) pre_key_id)
+ .single().row();
+ if (!row.is_present()) return null;
+ return Base64.decode(row[db.signed_pre_key.record_base64]);
+ }
+
+ public override void store_signed_pre_key(uint32 pre_key_id, uint8[] record) throws Crypto.Error {
+ db.signed_pre_key.upsert()
+ .value(db.signed_pre_key.identity_id, identity_id, true)
+ .value(db.signed_pre_key.signed_pre_key_id, (int) pre_key_id, true)
+ .value(db.signed_pre_key.record_base64, Base64.encode(record))
+ .perform();
+ }
+
+ public override bool contains_signed_pre_key(uint32 pre_key_id) throws Crypto.Error {
+ return db.signed_pre_key.select({db.signed_pre_key.signed_pre_key_id})
+ .with(db.signed_pre_key.identity_id, "=", identity_id)
+ .with(db.signed_pre_key.signed_pre_key_id, "=", (int) pre_key_id)
+ .count() > 0;
+ }
+
+ public override void delete_signed_pre_key(uint32 pre_key_id) throws Crypto.Error {
+ db.signed_pre_key.delete()
+ .with(db.signed_pre_key.identity_id, "=", identity_id)
+ .with(db.signed_pre_key.signed_pre_key_id, "=", (int) pre_key_id)
+ .perform();
+ }
+}
+
+}
diff --git a/main/src/plugins/omemo/logic/trust_manager.vala b/main/src/plugins/omemo/logic/trust_manager.vala
new file mode 100644
index 00000000..f17ade99
--- /dev/null
+++ b/main/src/plugins/omemo/logic/trust_manager.vala
@@ -0,0 +1,142 @@
+using Gee;
+
+using Dino.Entities;
+using Dino.Qlite;
+using Omemo;
+using Xmpp;
+
+namespace Dino.Plugins.Omemo {
+
+public class TrustManager {
+
+ public signal void bad_message_state_updated(Account account, Jid jid, int device_id);
+
+ private StreamInteractor stream_interactor;
+ private Database db;
+ private TagMessageListener tag_message_listener;
+
+ public HashMap<Message, int> message_device_id_map = new HashMap<Message, int>(Message.hash_func, Message.equals_func);
+
+ public TrustManager(StreamInteractor stream_interactor, Database db) {
+ this.stream_interactor = stream_interactor;
+ this.db = db;
+
+ tag_message_listener = new TagMessageListener(stream_interactor, this, db, message_device_id_map);
+ stream_interactor.get_module(MessageProcessor.IDENTITY).received_pipeline.connect(tag_message_listener);
+ }
+
+ public void set_blind_trust(Account account, Jid jid, bool blind_trust) {
+ int identity_id = db.identity.get_id(account.id);
+ if (identity_id < 0) return;
+ db.trust.update()
+ .with(db.trust.identity_id, "=", identity_id)
+ .with(db.trust.address_name, "=", jid.bare_jid.to_string())
+ .set(db.trust.blind_trust, blind_trust).perform();
+ }
+
+ public void set_device_trust(Account account, Jid jid, int device_id, TrustLevel trust_level) {
+ int identity_id = db.identity.get_id(account.id);
+ db.identity_meta.update()
+ .with(db.identity_meta.identity_id, "=", identity_id)
+ .with(db.identity_meta.address_name, "=", jid.bare_jid.to_string())
+ .with(db.identity_meta.device_id, "=", device_id)
+ .set(db.identity_meta.trust_level, trust_level).perform();
+
+ // Hide messages from untrusted or unknown devices
+ string selection = null;
+ string[] selection_args = {};
+ var app_db = Application.get_default().db;
+ foreach (Row row in db.content_item_meta.with_device(identity_id, jid.bare_jid.to_string(), device_id).with(db.content_item_meta.trusted_when_received, "=", false)) {
+ if (selection == null) {
+ selection = @"$(app_db.content_item.id) = ?";
+ } else {
+ selection += @" OR $(app_db.content_item.id) = ?";
+ }
+ selection_args += row[db.content_item_meta.content_item_id].to_string();
+ }
+ if (selection != null) {
+ app_db.content_item.update()
+ .set(app_db.content_item.hide, trust_level == TrustLevel.UNTRUSTED || trust_level == TrustLevel.UNKNOWN)
+ .where(selection, selection_args)
+ .perform();
+ }
+
+ if (trust_level == TrustLevel.TRUSTED) {
+ db.identity_meta.update_last_message_untrusted(identity_id, device_id, null);
+ bad_message_state_updated(account, jid, device_id);
+ }
+ }
+
+ public bool is_known_address(Account account, Jid jid) {
+ int identity_id = db.identity.get_id(account.id);
+ if (identity_id < 0) return false;
+ return db.identity_meta.with_address(identity_id, jid.to_string()).with(db.identity_meta.last_active, ">", 0).count() > 0;
+ }
+
+ public Gee.List<int32> get_trusted_devices(Account account, Jid jid) {
+ Gee.List<int32> devices = new ArrayList<int32>();
+ int identity_id = db.identity.get_id(account.id);
+ if (identity_id < 0) return devices;
+ foreach (Row device in db.identity_meta.get_trusted_devices(identity_id, jid.bare_jid.to_string())) {
+ if(device[db.identity_meta.trust_level] != TrustLevel.UNKNOWN || device[db.identity_meta.identity_key_public_base64] == null)
+ devices.add(device[db.identity_meta.device_id]);
+ }
+ return devices;
+ }
+
+ private class TagMessageListener : MessageListener {
+ public string[] after_actions_const = new string[]{ "STORE" };
+ public override string action_group { get { return "DECRYPT_TAG"; } }
+ public override string[] after_actions { get { return after_actions_const; } }
+
+ private StreamInteractor stream_interactor;
+ private TrustManager trust_manager;
+ private Database db;
+ private HashMap<Message, int> message_device_id_map;
+
+ public TagMessageListener(StreamInteractor stream_interactor, TrustManager trust_manager, Database db, HashMap<Message, int> message_device_id_map) {
+ this.stream_interactor = stream_interactor;
+ this.trust_manager = trust_manager;
+ this.db = db;
+ this.message_device_id_map = message_device_id_map;
+ }
+
+ public override async bool run(Entities.Message message, Xmpp.MessageStanza stanza, Conversation conversation) {
+ int device_id = 0;
+ if (message_device_id_map.has_key(message)) {
+ device_id = message_device_id_map[message];
+ message_device_id_map.unset(message);
+ }
+
+ // TODO: Handling of files
+
+ ContentItem? content_item = stream_interactor.get_module(ContentItemStore.IDENTITY).get_item_by_foreign(conversation, 1, message.id);
+
+ if (content_item != null && device_id != 0) {
+ Jid jid = content_item.jid;
+ if (conversation.type_ == Conversation.Type.GROUPCHAT) {
+ jid = message.real_jid;
+ }
+
+ int identity_id = db.identity.get_id(conversation.account.id);
+ TrustLevel trust_level = (TrustLevel) db.identity_meta.get_device(identity_id, jid.bare_jid.to_string(), device_id)[db.identity_meta.trust_level];
+ if (trust_level == TrustLevel.UNTRUSTED || trust_level == TrustLevel.UNKNOWN) {
+ stream_interactor.get_module(ContentItemStore.IDENTITY).set_item_hide(content_item, true);
+ db.identity_meta.update_last_message_untrusted(identity_id, device_id, message.time);
+ trust_manager.bad_message_state_updated(conversation.account, jid, device_id);
+ }
+
+ db.content_item_meta.insert()
+ .value(db.content_item_meta.content_item_id, content_item.id)
+ .value(db.content_item_meta.identity_id, identity_id)
+ .value(db.content_item_meta.address_name, jid.bare_jid.to_string())
+ .value(db.content_item_meta.device_id, device_id)
+ .value(db.content_item_meta.trusted_when_received, trust_level != TrustLevel.UNTRUSTED)
+ .perform();
+ }
+ return false;
+ }
+ }
+}
+
+}
diff --git a/main/src/plugins/omemo/plugin.vala b/main/src/plugins/omemo/plugin.vala
new file mode 100644
index 00000000..34528bde
--- /dev/null
+++ b/main/src/plugins/omemo/plugin.vala
@@ -0,0 +1,87 @@
+using Gee;
+using Dino.Crypto.Omemo;
+using Dino.Entities;
+using Omemo;
+
+namespace Dino.Plugins.Omemo {
+
+public class Plugin : RootInterface, Object {
+ public const bool DEBUG = false;
+ private static Context? _context;
+ public static Context get_context() {
+ assert(_context != null);
+ return (!)_context;
+ }
+ public static bool ensure_context() {
+ lock(_context) {
+ try {
+ if (_context == null) {
+ _context = new Context(DEBUG);
+ }
+ return true;
+ } catch (Error e) {
+ warning("Error initializing libomemo-c Context %s", e.message);
+ return false;
+ }
+ }
+ }
+
+ public Dino.Application app;
+ public Database db;
+ public EncryptionListEntry list_entry;
+ public ContactDetailsProvider contact_details_provider;
+ public DeviceNotificationPopulator device_notification_populator;
+ public OwnNotifications own_notifications;
+ public TrustManager trust_manager;
+ public HashMap<Account, OmemoDecryptor> decryptors = new HashMap<Account, OmemoDecryptor>(Account.hash_func, Account.equals_func);
+ public HashMap<Account, OmemoEncryptor> encryptors = new HashMap<Account, OmemoEncryptor>(Account.hash_func, Account.equals_func);
+
+ public void registered(Dino.Application app) {
+ ensure_context();
+ this.app = app;
+ this.db = new Database(Path.build_filename(Application.get_storage_dir(), "omemo.db"));
+ this.list_entry = new EncryptionListEntry(this);
+ this.contact_details_provider = new ContactDetailsProvider(this);
+ this.device_notification_populator = new DeviceNotificationPopulator(this, this.app.stream_interactor);
+ this.trust_manager = new TrustManager(this.app.stream_interactor, this.db);
+
+ this.app.plugin_registry.register_encryption_list_entry(list_entry);
+ this.app.plugin_registry.register_encryption_preferences_entry(new OmemoPreferencesEntry(this));
+ this.app.plugin_registry.register_contact_details_entry(contact_details_provider);
+ this.app.plugin_registry.register_notification_populator(device_notification_populator);
+ this.app.plugin_registry.register_conversation_addition_populator(new BadMessagesPopulator(this.app.stream_interactor, this));
+ this.app.plugin_registry.register_call_entryption_entry(DtlsSrtpVerificationDraft.NS_URI, new CallEncryptionEntry(db));
+
+ this.app.stream_interactor.module_manager.initialize_account_modules.connect((account, list) => {
+ Store store = Plugin.get_context().create_store();
+ list.add(new StreamModule(store));
+ decryptors[account] = new OmemoDecryptor(account, app.stream_interactor, trust_manager, db, store);
+ list.add(decryptors[account]);
+ encryptors[account] = new OmemoEncryptor(account, trust_manager, store);
+ list.add(encryptors[account]);
+ list.add(new JetOmemo.Module());
+ list.add(new DtlsSrtpVerificationDraft.StreamModule());
+ this.own_notifications = new OwnNotifications(this, this.app.stream_interactor, account);
+ });
+
+ app.stream_interactor.get_module(MessageProcessor.IDENTITY).received_pipeline.connect(new DecryptMessageListener(decryptors));
+ app.stream_interactor.get_module(FileManager.IDENTITY).add_file_decryptor(new OmemoFileDecryptor());
+ app.stream_interactor.get_module(FileManager.IDENTITY).add_file_encryptor(new OmemoFileEncryptor());
+ JingleFileHelperRegistry.instance.add_encryption_helper(Encryption.OMEMO, new JetOmemo.EncryptionHelper(app.stream_interactor));
+
+ Manager.start(this.app.stream_interactor, db, trust_manager, encryptors);
+ }
+
+ public void shutdown() {
+ // Nothing to do
+ }
+
+ public bool has_new_devices(Account account, Xmpp.Jid jid) {
+ int identity_id = db.identity.get_id(account.id);
+ if (identity_id < 0) return false;
+
+ return db.identity_meta.get_new_devices(identity_id, jid.bare_jid.to_string()).count() > 0;
+ }
+}
+
+}
diff --git a/main/src/plugins/omemo/protocol/bundle.vala b/main/src/plugins/omemo/protocol/bundle.vala
new file mode 100644
index 00000000..abd5269f
--- /dev/null
+++ b/main/src/plugins/omemo/protocol/bundle.vala
@@ -0,0 +1,92 @@
+using Gee;
+using Omemo;
+using Xmpp;
+
+namespace Dino.Plugins.Omemo {
+
+public class Bundle {
+ public StanzaNode? node;
+
+ public Bundle(StanzaNode? node) {
+ this.node = node;
+ assert(Plugin.ensure_context());
+ }
+
+ public int32 signed_pre_key_id { get {
+ if (node == null) return -1;
+ string? id = ((!)node).get_deep_attribute("signedPreKeyPublic", "signedPreKeyId");
+ if (id == null) return -1;
+ return int.parse((!)id);
+ }}
+
+ public ECPublicKey? signed_pre_key { owned get {
+ if (node == null) return null;
+ string? key = ((!)node).get_deep_string_content("signedPreKeyPublic");
+ if (key == null) return null;
+ try {
+ return Plugin.get_context().decode_public_key(Base64.decode((!)key));
+ } catch (Error e) {
+ return null;
+ }
+ }}
+
+ public uint8[]? signed_pre_key_signature { owned get {
+ if (node == null) return null;
+ string? sig = ((!)node).get_deep_string_content("signedPreKeySignature");
+ if (sig == null) return null;
+ return Base64.decode((!)sig);
+ }}
+
+ public ECPublicKey? identity_key { owned get {
+ if (node == null) return null;
+ string? key = ((!)node).get_deep_string_content("identityKey");
+ if (key == null) return null;
+ try {
+ return Plugin.get_context().decode_public_key(Base64.decode((!)key));
+ } catch (Error e) {
+ return null;
+ }
+ }}
+
+ public ArrayList<PreKey> pre_keys { owned get {
+ ArrayList<PreKey> list = new ArrayList<PreKey>();
+ if (node == null || ((!)node).get_subnode("prekeys") == null) return list;
+ ((!)node).get_deep_subnodes("prekeys", "preKeyPublic")
+ .filter((node) => ((!)node).get_attribute("preKeyId") != null)
+ .map<PreKey>(PreKey.create)
+ .foreach((key) => list.add(key));
+ return list;
+ }}
+
+ public bool is_valid { get {
+ return signed_pre_key_id != -1 && signed_pre_key != null && signed_pre_key_signature != null && identity_key != null;
+ }}
+
+ public class PreKey {
+ private StanzaNode node;
+
+ public static PreKey create(owned StanzaNode node) {
+ return new PreKey(node);
+ }
+
+ public PreKey(StanzaNode node) {
+ this.node = node;
+ }
+
+ public int32 key_id { get {
+ return int.parse(node.get_attribute("preKeyId") ?? "-1");
+ }}
+
+ public ECPublicKey? key { owned get {
+ string? key = node.get_string_content();
+ if (key == null) return null;
+ try {
+ return Plugin.get_context().decode_public_key(Base64.decode((!)key));
+ } catch (Error e) {
+ return null;
+ }
+ }}
+ }
+}
+
+}
diff --git a/main/src/plugins/omemo/protocol/message_flag.vala b/main/src/plugins/omemo/protocol/message_flag.vala
new file mode 100644
index 00000000..ba9ea16e
--- /dev/null
+++ b/main/src/plugins/omemo/protocol/message_flag.vala
@@ -0,0 +1,23 @@
+using Xmpp;
+
+namespace Dino.Plugins.Omemo {
+
+public class MessageFlag : Xmpp.MessageFlag {
+ public const string id = "omemo";
+
+ public bool decrypted = false;
+
+ public static MessageFlag? get_flag(MessageStanza message) {
+ return (MessageFlag) message.get_flag(NS_URI, id);
+ }
+
+ public override string get_ns() {
+ return NS_URI;
+ }
+
+ public override string get_id() {
+ return id;
+ }
+}
+
+} \ No newline at end of file
diff --git a/main/src/plugins/omemo/protocol/stream_module.vala b/main/src/plugins/omemo/protocol/stream_module.vala
new file mode 100644
index 00000000..3958bc23
--- /dev/null
+++ b/main/src/plugins/omemo/protocol/stream_module.vala
@@ -0,0 +1,337 @@
+using Gee;
+using Dino.Crypto.Omemo;
+using Xmpp;
+using Xmpp.Xep;
+using Omemo;
+
+namespace Dino.Plugins.Omemo {
+
+internal const string NS_URI = "eu.siacs.conversations.axolotl";
+private const string NODE_DEVICELIST = NS_URI + ".devicelist";
+private const string NODE_BUNDLES = NS_URI + ".bundles";
+private const string NODE_VERIFICATION = NS_URI + ".verification";
+
+private const int NUM_KEYS_TO_PUBLISH = 100;
+
+public class StreamModule : XmppStreamModule {
+ public static Xmpp.ModuleIdentity<StreamModule> IDENTITY = new Xmpp.ModuleIdentity<StreamModule>(NS_URI, "omemo_module");
+ private static TimeSpan IGNORE_TIME = TimeSpan.MINUTE;
+
+ public Store store { public get; private set; }
+ private ConcurrentSet<string> active_bundle_requests = new ConcurrentSet<string>();
+ private HashMap<Jid, Future<ArrayList<int32>>> active_devicelist_requests = new HashMap<Jid, Future<ArrayList<int32>>>(Jid.hash_func, Jid.equals_func);
+ private Map<string, DateTime> device_ignore_time = new HashMap<string, DateTime>();
+
+ public signal void device_list_loaded(Jid jid, ArrayList<int32> devices);
+ public signal void bundle_fetched(Jid jid, int device_id, Bundle bundle);
+ public signal void bundle_fetch_failed(Jid jid, int device_id);
+
+ public StreamModule(Store store) {
+ this.store = store;
+ }
+
+ public override void attach(XmppStream stream) {
+ stream.get_module(Pubsub.Module.IDENTITY).add_filtered_notification(stream, NODE_DEVICELIST,
+ (stream, jid, id, node) => parse_device_list(stream, jid, id, node), null, null);
+ }
+
+ public override void detach(XmppStream stream) {
+ stream.get_module(Pubsub.Module.IDENTITY).remove_filtered_notification(stream, NODE_DEVICELIST);
+ }
+
+ public async ArrayList<int32> request_user_devicelist(XmppStream stream, Jid jid) {
+ var future = active_devicelist_requests[jid];
+ if (future == null) {
+ var promise = new Promise<ArrayList<int32>?>();
+ future = promise.future;
+ active_devicelist_requests[jid] = future;
+
+ stream.get_module(Pubsub.Module.IDENTITY).request(stream, jid, NODE_DEVICELIST, (stream, jid, id, node) => {
+ ArrayList<int32> device_list = parse_device_list(stream, jid, id, node);
+ promise.set_value(device_list);
+ active_devicelist_requests.unset(jid);
+ });
+ }
+
+ try {
+ ArrayList<int32> device_list = yield future.wait_async();
+ return device_list;
+ } catch (FutureError error) {
+ warning("Future error when waiting for device list: %s", error.message);
+ return new ArrayList<int32>();
+ }
+ }
+
+ public ArrayList<int32> parse_device_list(XmppStream stream, Jid jid, string? id, StanzaNode? node_) {
+ ArrayList<int32> device_list = new ArrayList<int32>();
+
+ StanzaNode node = node_ ?? new StanzaNode.build("list", NS_URI).add_self_xmlns();
+ Jid? my_jid = stream.get_flag(Bind.Flag.IDENTITY).my_jid;
+ if (my_jid == null) return device_list;
+ if (jid.equals_bare(my_jid) && store.local_registration_id != 0) {
+ bool am_on_devicelist = false;
+ foreach (StanzaNode device_node in node.get_subnodes("device")) {
+ int device_id = device_node.get_attribute_int("id");
+ if (store.local_registration_id == device_id) {
+ am_on_devicelist = true;
+ }
+ }
+ if (!am_on_devicelist) {
+ debug("Not on device list, adding id");
+ node.put_node(new StanzaNode.build("device", NS_URI).put_attribute("id", store.local_registration_id.to_string()));
+ stream.get_module(Pubsub.Module.IDENTITY).publish.begin(stream, jid, NODE_DEVICELIST, id, node, null, true, () => {
+ try_make_node_public.begin(stream, NODE_DEVICELIST);
+ });
+ }
+ publish_bundles_if_needed(stream, jid);
+ }
+
+ foreach (StanzaNode device_node in node.get_subnodes("device")) {
+ device_list.add(device_node.get_attribute_int("id"));
+ }
+ device_list_loaded(jid, device_list);
+
+ return device_list;
+ }
+
+ public void fetch_bundles(XmppStream stream, Jid jid, Gee.List<int32> devices) {
+ Address address = new Address(jid.bare_jid.to_string(), 0);
+ foreach(int32 device_id in devices) {
+ if (!is_ignored_device(jid, device_id)) {
+ address.device_id = device_id;
+ try {
+ if (!store.contains_session(address)) {
+ fetch_bundle(stream, jid, device_id);
+ }
+ } catch (Error e) {
+ // Ignore
+ }
+ }
+ }
+ address.device_id = 0; // TODO: Hack to have address obj live longer
+ }
+
+ public void fetch_bundle(XmppStream stream, Jid jid, int device_id, bool ignore_if_non_present = true) {
+ if (active_bundle_requests.add(jid.bare_jid.to_string() + @":$device_id")) {
+ debug("Asking for bundle for %s/%d", jid.bare_jid.to_string(), device_id);
+ stream.get_module(Pubsub.Module.IDENTITY).request(stream, jid.bare_jid, @"$NODE_BUNDLES:$device_id", (stream, jid, id, node) => {
+ on_other_bundle_result(stream, jid, device_id, id, node, ignore_if_non_present);
+ });
+ }
+ }
+
+ public void ignore_device(Jid jid, int32 device_id) {
+ if (device_id <= 0) return;
+ lock (device_ignore_time) {
+ device_ignore_time[jid.bare_jid.to_string() + @":$device_id"] = new DateTime.now_utc();
+ }
+ }
+
+ public void unignore_device(Jid jid, int32 device_id) {
+ if (device_id <= 0) return;
+ lock (device_ignore_time) {
+ device_ignore_time.unset(jid.bare_jid.to_string() + @":$device_id");
+ }
+ }
+
+ public bool is_ignored_device(Jid jid, int32 device_id) {
+ if (device_id <= 0) return true;
+ lock (device_ignore_time) {
+ string id = jid.bare_jid.to_string() + @":$device_id";
+ if (device_ignore_time.has_key(id)) {
+ return new DateTime.now_utc().difference(device_ignore_time[id]) < IGNORE_TIME;
+ }
+ }
+ return false;
+ }
+
+ public void clear_device_list(XmppStream stream) {
+ stream.get_module(Pubsub.Module.IDENTITY).delete_node(stream, null, NODE_DEVICELIST);
+ }
+
+ private void on_other_bundle_result(XmppStream stream, Jid jid, int device_id, string? id, StanzaNode? node, bool ignore_if_non_present) {
+ if (node == null) {
+ // Device not registered, shouldn't exist
+ if (ignore_if_non_present) {
+ warning("Ignoring device %s/%d: No bundle", jid.bare_jid.to_string(), device_id);
+ stream.get_module(IDENTITY).ignore_device(jid, device_id);
+ }
+ bundle_fetch_failed(jid, device_id);
+ } else {
+ Bundle bundle = new Bundle(node);
+ if (bundle.is_valid) {
+ stream.get_module(IDENTITY).unignore_device(jid, device_id);
+ debug("Received bundle for %s/%d: %s", jid.bare_jid.to_string(), device_id, Base64.encode(bundle.identity_key.serialize()));
+ bundle_fetched(jid, device_id, bundle);
+ } else {
+ warning("Ignoring device %s/%d: Invalid bundle", jid.bare_jid.to_string(), device_id);
+ bundle_fetch_failed(jid, device_id);
+ }
+ }
+ stream.get_module(IDENTITY).active_bundle_requests.remove(jid.bare_jid.to_string() + @":$device_id");
+ }
+
+ public bool start_session(XmppStream stream, Jid jid, int32 device_id, Bundle bundle) {
+ bool fail = false;
+ int32 signed_pre_key_id = bundle.signed_pre_key_id;
+ ECPublicKey? signed_pre_key = bundle.signed_pre_key;
+ uint8[] signed_pre_key_signature = bundle.signed_pre_key_signature;
+ ECPublicKey? identity_key = bundle.identity_key;
+
+ ArrayList<Bundle.PreKey> pre_keys = bundle.pre_keys;
+ if (signed_pre_key_id < 0 || signed_pre_key == null || identity_key == null || pre_keys.size == 0) {
+ fail = true;
+ } else {
+ int pre_key_idx = Random.int_range(0, pre_keys.size);
+ int32 pre_key_id = pre_keys[pre_key_idx].key_id;
+ ECPublicKey? pre_key = pre_keys[pre_key_idx].key;
+ if (pre_key_id < 0 || pre_key == null) {
+ fail = true;
+ } else {
+ Address address = new Address(jid.bare_jid.to_string(), device_id);
+ try {
+ if (store.contains_session(address)) {
+ return false;
+ }
+ debug("Starting new session for encryption with %s/%d", jid.bare_jid.to_string(), device_id);
+ SessionBuilder builder = store.create_session_builder(address);
+ builder.process_pre_key_bundle(create_pre_key_bundle(device_id, device_id, pre_key_id, pre_key, signed_pre_key_id, signed_pre_key, signed_pre_key_signature, identity_key));
+ } catch (Error e) {
+ debug("Can't create session with %s/%d: %s", jid.bare_jid.to_string(), device_id, e.message);
+ fail = true;
+ }
+ address.device_id = 0; // TODO: Hack to have address obj live longer
+ }
+ }
+ if (fail) {
+ debug("Ignoring device %s/%d: Bad bundle: %s", jid.bare_jid.to_string(), device_id, bundle.node.to_string());
+ stream.get_module(IDENTITY).ignore_device(jid, device_id);
+ }
+ return true;
+ }
+
+ public void publish_bundles_if_needed(XmppStream stream, Jid jid) {
+ if (active_bundle_requests.add(jid.bare_jid.to_string() + @":$(store.local_registration_id)")) {
+ stream.get_module(Pubsub.Module.IDENTITY).request(stream, jid, @"$NODE_BUNDLES:$(store.local_registration_id)", on_self_bundle_result);
+ }
+ }
+
+ private void on_self_bundle_result(XmppStream stream, Jid jid, string? id, StanzaNode? node) {
+ if (!Plugin.ensure_context()) return;
+ Map<int, ECPublicKey> keys = new HashMap<int, ECPublicKey>();
+ ECPublicKey? identity_key = null;
+ int32 signed_pre_key_id = -1;
+ ECPublicKey? signed_pre_key = null;
+ SignedPreKeyRecord? signed_pre_key_record = null;
+ bool changed = false;
+ if (node == null) {
+ identity_key = store.identity_key_pair.public;
+ changed = true;
+ } else {
+ Bundle bundle = new Bundle(node);
+ foreach (Bundle.PreKey prekey in bundle.pre_keys) {
+ ECPublicKey? key = prekey.key;
+ if (key != null) {
+ keys[prekey.key_id] = (!)key;
+ }
+ }
+ identity_key = bundle.identity_key;
+ signed_pre_key_id = bundle.signed_pre_key_id;
+ signed_pre_key = bundle.signed_pre_key;
+ }
+
+ try {
+ // Validate IdentityKey
+ if (identity_key == null || store.identity_key_pair.public.compare((!)identity_key) != 0) {
+ changed = true;
+ }
+ IdentityKeyPair identity_key_pair = store.identity_key_pair;
+
+ // Validate signedPreKeyRecord + ID
+ if (signed_pre_key == null || signed_pre_key_id == -1 || !store.contains_signed_pre_key(signed_pre_key_id) || store.load_signed_pre_key(signed_pre_key_id).key_pair.public.compare((!)signed_pre_key) != 0) {
+ signed_pre_key_id = Random.int_range(1, int32.MAX); // TODO: No random, use ordered number
+ signed_pre_key_record = Plugin.get_context().generate_signed_pre_key(identity_key_pair, signed_pre_key_id);
+ store.store_signed_pre_key((!)signed_pre_key_record);
+ changed = true;
+ } else {
+ signed_pre_key_record = store.load_signed_pre_key(signed_pre_key_id);
+ }
+
+ // Validate PreKeys
+ Set<PreKeyRecord> pre_key_records = new HashSet<PreKeyRecord>();
+ foreach (var entry in keys.entries) {
+ if (store.contains_pre_key(entry.key)) {
+ PreKeyRecord record = store.load_pre_key(entry.key);
+ if (record.key_pair.public.compare(entry.value) == 0) {
+ pre_key_records.add(record);
+ }
+ }
+ }
+ int new_keys = NUM_KEYS_TO_PUBLISH - pre_key_records.size;
+ if (new_keys > 0) {
+ int32 next_id = Random.int_range(1, int32.MAX); // TODO: No random, use ordered number
+ Set<PreKeyRecord> new_records = Plugin.get_context().generate_pre_keys((uint)next_id, (uint)new_keys);
+ pre_key_records.add_all(new_records);
+ foreach (PreKeyRecord record in new_records) {
+ store.store_pre_key(record);
+ }
+ changed = true;
+ }
+
+ if (changed) {
+ publish_bundles.begin(stream, (!)signed_pre_key_record, identity_key_pair, pre_key_records, (int32) store.local_registration_id);
+ }
+ } catch (Error e) {
+ warning(@"Unexpected error while publishing bundle: $(e.message)\n");
+ }
+ stream.get_module(IDENTITY).active_bundle_requests.remove(jid.bare_jid.to_string() + @":$(store.local_registration_id)");
+ }
+
+ public async void publish_bundles(XmppStream stream, SignedPreKeyRecord signed_pre_key_record, IdentityKeyPair identity_key_pair, Set<PreKeyRecord> pre_key_records, int32 device_id) throws Error {
+ ECKeyPair tmp;
+ StanzaNode bundle = new StanzaNode.build("bundle", NS_URI)
+ .add_self_xmlns()
+ .put_node(new StanzaNode.build("signedPreKeyPublic", NS_URI)
+ .put_attribute("signedPreKeyId", signed_pre_key_record.id.to_string())
+ .put_node(new StanzaNode.text(Base64.encode((tmp = signed_pre_key_record.key_pair).public.serialize()))))
+ .put_node(new StanzaNode.build("signedPreKeySignature", NS_URI)
+ .put_node(new StanzaNode.text(Base64.encode(signed_pre_key_record.signature))))
+ .put_node(new StanzaNode.build("identityKey", NS_URI)
+ .put_node(new StanzaNode.text(Base64.encode(identity_key_pair.public.serialize()))));
+ StanzaNode prekeys = new StanzaNode.build("prekeys", NS_URI);
+ foreach (PreKeyRecord pre_key_record in pre_key_records) {
+ prekeys.put_node(new StanzaNode.build("preKeyPublic", NS_URI)
+ .put_attribute("preKeyId", pre_key_record.id.to_string())
+ .put_node(new StanzaNode.text(Base64.encode(pre_key_record.key_pair.public.serialize()))));
+ }
+ bundle.put_node(prekeys);
+
+ string node_id = @"$NODE_BUNDLES:$device_id";
+ yield stream.get_module(Pubsub.Module.IDENTITY).publish(stream, null, node_id, "1", bundle);
+ yield try_make_node_public(stream, node_id);
+
+ }
+
+ private async void try_make_node_public(XmppStream stream, string node_id) {
+ DataForms.DataForm? data_form = yield stream.get_module(Pubsub.Module.IDENTITY).request_node_config(stream, null, node_id);
+ if (data_form == null) return;
+
+ foreach (DataForms.DataForm.Field field in data_form.fields) {
+ if (field.var == "pubsub#access_model" && field.get_value_string() != Pubsub.ACCESS_MODEL_OPEN) {
+ field.set_value_string(Pubsub.ACCESS_MODEL_OPEN);
+ yield stream.get_module(Pubsub.Module.IDENTITY).submit_node_config(stream, data_form, node_id);
+ break;
+ }
+ }
+ }
+
+ public override string get_ns() {
+ return NS_URI;
+ }
+
+ public override string get_id() {
+ return IDENTITY.id;
+ }
+}
+
+}
diff --git a/main/src/plugins/omemo/trust_level.vala b/main/src/plugins/omemo/trust_level.vala
new file mode 100644
index 00000000..afcfb0fb
--- /dev/null
+++ b/main/src/plugins/omemo/trust_level.vala
@@ -0,0 +1,15 @@
+namespace Dino.Plugins.Omemo {
+
+public enum TrustLevel {
+ VERIFIED,
+ TRUSTED,
+ UNTRUSTED,
+ UNKNOWN;
+
+ public string to_string() {
+ int val = this;
+ return val.to_string();
+ }
+}
+
+}
diff --git a/main/src/plugins/omemo/ui/bad_messages_populator.vala b/main/src/plugins/omemo/ui/bad_messages_populator.vala
new file mode 100644
index 00000000..c291a422
--- /dev/null
+++ b/main/src/plugins/omemo/ui/bad_messages_populator.vala
@@ -0,0 +1,198 @@
+using Gee;
+using Gtk;
+
+using Dino.Entities;
+using Dino.Qlite;
+using Xmpp;
+
+namespace Dino.Plugins.Omemo {
+
+public enum BadnessType {
+ UNTRUSTED,
+ UNDECRYPTABLE
+}
+
+public class BadMessagesPopulator : Plugins.ConversationItemPopulator, Plugins.ConversationAdditionPopulator, Object {
+
+ public string id { get { return "bad_omemo_messages"; } }
+
+ private StreamInteractor stream_interactor;
+ private Plugin plugin;
+ private Database db;
+
+ private Conversation? current_conversation;
+ private Plugins.ConversationItemCollection? item_collection;
+
+ private Gee.List<BadMessageItem> bad_items = new ArrayList<BadMessageItem>();
+
+ public BadMessagesPopulator(StreamInteractor stream_interactor, Plugin plugin) {
+ this.stream_interactor = stream_interactor;
+ this.plugin = plugin;
+ this.db = plugin.db;
+
+ plugin.trust_manager.bad_message_state_updated.connect((account, jid, device_id) => {
+ clear_state();
+ init_state();
+ });
+ }
+
+ private void init_state() {
+ if (current_conversation == null) return;
+ if (current_conversation.type_ == Conversation.Type.GROUPCHAT_PM) return;
+
+ var qry = db.identity_meta.select()
+ .join_with(db.identity, db.identity.id, db.identity_meta.identity_id)
+ .with(db.identity.account_id, "=", current_conversation.account.id)
+ .where("last_message_untrusted is not NULL OR last_message_undecryptable is not NULL");
+
+ switch (current_conversation.type_) {
+ case Conversation.Type.CHAT:
+ qry.with(db.identity_meta.address_name, "=", current_conversation.counterpart.to_string());
+ break;
+ case Conversation.Type.GROUPCHAT:
+ bool is_private = stream_interactor.get_module(MucManager.IDENTITY).is_private_room(current_conversation.account, current_conversation.counterpart);
+ if (!is_private) return;
+
+ var list = stream_interactor.get_module(MucManager.IDENTITY).get_offline_members(current_conversation.counterpart, current_conversation.account);
+ if (list == null || list.is_empty) return;
+
+ var selection = new StringBuilder();
+ string[] selection_args = {};
+ foreach (Jid jid in list) {
+ if (selection.len == 0) {
+ selection.append(@" ($(db.identity_meta.address_name) = ?");
+ } else {
+ selection.append(@" OR $(db.identity_meta.address_name) = ?");
+ }
+ selection_args += jid.to_string();
+ }
+ selection.append(")");
+ qry.where(selection.str, selection_args);
+ break;
+ case Conversation.Type.GROUPCHAT_PM:
+ break;
+ }
+
+ foreach (Row row in qry) {
+ Jid jid = Jid.from_string(row[db.identity_meta.address_name]);
+ if (!db.identity_meta.last_message_untrusted.is_null(row)) {
+ DateTime time = new DateTime.from_unix_utc(row[db.identity_meta.last_message_untrusted]);
+ var item = new BadMessageItem(plugin, current_conversation, jid, time, BadnessType.UNTRUSTED);
+ bad_items.add(item);
+ item_collection.insert_item(item);
+ }
+ if (!db.identity_meta.last_message_undecryptable.is_null(row)) {
+ DateTime time = new DateTime.from_unix_utc(row[db.identity_meta.last_message_undecryptable]);
+ var item = new BadMessageItem(plugin, current_conversation, jid, time, BadnessType.UNDECRYPTABLE);
+ bad_items.add(item);
+ item_collection.insert_item(item);
+ }
+ }
+ }
+
+ private void clear_state() {
+ foreach (BadMessageItem bad_item in bad_items) {
+ item_collection.remove_item(bad_item);
+ }
+ bad_items.clear();
+ }
+
+ public void init(Conversation conversation, Plugins.ConversationItemCollection item_collection, Plugins.WidgetType type) {
+ current_conversation = conversation;
+ this.item_collection = item_collection;
+
+ init_state();
+ }
+
+ public void close(Conversation conversation) {
+ clear_state();
+ }
+
+ public void populate_timespan(Conversation conversation, DateTime after, DateTime before) { }
+}
+
+public class BadMessageItem : Plugins.MetaConversationItem {
+
+ private Plugin plugin;
+ private Conversation conversation;
+ private Jid problem_jid;
+ private BadnessType badness_type;
+
+ public BadMessageItem(Plugin plugin, Conversation conversation, Jid jid, DateTime date, BadnessType badness_type) {
+ this.plugin = plugin;
+ this.conversation = conversation;
+ this.problem_jid = jid;
+ this.time = date;
+ this.badness_type = badness_type;
+ }
+
+ public override Object? get_widget(Plugins.ConversationItemWidgetInterface outer, Plugins.WidgetType widget_type) {
+ return new BadMessagesWidget(plugin, conversation, problem_jid, badness_type);
+ }
+
+ public override Gee.List<Plugins.MessageAction>? get_item_actions(Plugins.WidgetType type) { return null; }
+}
+
+public class BadMessagesWidget : Box {
+ private Plugin plugin;
+ private Conversation conversation;
+ private Jid jid;
+ private Label label;
+
+ public BadMessagesWidget(Plugin plugin, Conversation conversation, Jid jid, BadnessType badness_type) {
+ Object(orientation:Orientation.HORIZONTAL, spacing:5);
+
+ this.plugin = plugin;
+ this.conversation = conversation;
+ this.jid = jid;
+ this.halign = Align.CENTER;
+ this.visible = true;
+
+ string who = "";
+ if (conversation.type_ == Conversation.Type.CHAT) {
+ who = Dino.get_participant_display_name(plugin.app.stream_interactor, conversation, jid);
+ } else if (conversation.type_ == Conversation.Type.GROUPCHAT) {
+ who = jid.to_string();
+ // `jid` is a real JID. In MUCs, try to show nicks instead (given that the JID is currently online)
+ var occupants = plugin.app.stream_interactor.get_module(MucManager.IDENTITY).get_occupants(conversation.counterpart, conversation.account);
+ if (occupants == null) return;
+ foreach (Jid occupant in occupants) {
+ if (jid.equals_bare(plugin.app.stream_interactor.get_module(MucManager.IDENTITY).get_real_jid(occupant, conversation.account))) {
+ who = occupant.resourcepart;
+ }
+ }
+ }
+
+ string warning_text = "";
+ if (badness_type == BadnessType.UNTRUSTED) {
+ warning_text = _("%s has been using an untrusted device. You won't see messages from devices that you do not trust.").printf(who) +
+ " <a href=\"\">%s</a>".printf(_("Manage devices"));
+ } else {
+ warning_text += _("%s does not trust this device. That means, you might be missing messages.").printf(who);
+ }
+ label = new Label(warning_text) { margin_start=70, margin_end=70, justify=Justification.CENTER, use_markup=true, selectable=true, wrap=true, wrap_mode=Pango.WrapMode.WORD_CHAR, hexpand=true };
+ label.add_css_class("dim-label");
+ this.append(label);
+
+ if (badness_type == BadnessType.UNTRUSTED) {
+ label.activate_link.connect(on_label_activate_link);
+ }
+ }
+
+ private bool on_label_activate_link() {
+ var variant = new Variant.tuple(new Variant[] {new Variant.int32(conversation.id), new Variant.string("encryption")});
+ GLib.Application.get_default().activate_action("open-conversation-details", variant);
+ return false;
+ }
+
+ public override void dispose() {
+ if (label != null) {
+ label.unparent();
+ label.dispose();
+ label = null;
+ }
+ base.dispose();
+ }
+}
+
+}
diff --git a/main/src/plugins/omemo/ui/call_encryption_entry.vala b/main/src/plugins/omemo/ui/call_encryption_entry.vala
new file mode 100644
index 00000000..04f0443c
--- /dev/null
+++ b/main/src/plugins/omemo/ui/call_encryption_entry.vala
@@ -0,0 +1,58 @@
+using Gtk;
+
+using Dino.Entities;
+using Dino.Qlite;
+using Xmpp;
+
+namespace Dino.Plugins.Omemo {
+
+ public class CallEncryptionEntry : Plugins.CallEncryptionEntry, Object {
+ private Database db;
+
+ public CallEncryptionEntry(Database db) {
+ this.db = db;
+ }
+
+ public Plugins.CallEncryptionWidget? get_widget(Account account, Xmpp.Xep.Jingle.ContentEncryption encryption) {
+ DtlsSrtpVerificationDraft.OmemoContentEncryption? omemo_encryption = encryption as DtlsSrtpVerificationDraft.OmemoContentEncryption;
+ if (omemo_encryption == null) return null;
+
+ int identity_id = db.identity.get_id(account.id);
+ Row? device = db.identity_meta.get_device(identity_id, omemo_encryption.jid.to_string(), omemo_encryption.sid);
+ if (device == null) return null;
+ TrustLevel trust = (TrustLevel) device[db.identity_meta.trust_level];
+
+ return new CallEncryptionWidget(trust);
+ }
+ }
+
+ public class CallEncryptionWidget : Plugins.CallEncryptionWidget, Object {
+
+ string? title = null;
+ string? icon = null;
+ bool should_show_keys = false;
+
+ public CallEncryptionWidget(TrustLevel trust) {
+ if (trust == TrustLevel.VERIFIED) {
+ title = "This call is <b>encrypted and verified</b> with OMEMO.";
+ icon = "dino-security-high-symbolic";
+ should_show_keys = false;
+ } else {
+ title = "This call is encrypted with OMEMO.";
+ should_show_keys = true;
+ }
+ }
+
+ public string? get_title() {
+ return title;
+ }
+
+ public string? get_icon_name() {
+ return icon;
+ }
+
+ public bool show_keys() {
+ return should_show_keys;
+ }
+ }
+}
diff --git a/main/src/plugins/omemo/ui/contact_details_provider.vala b/main/src/plugins/omemo/ui/contact_details_provider.vala
new file mode 100644
index 00000000..1b61f31d
--- /dev/null
+++ b/main/src/plugins/omemo/ui/contact_details_provider.vala
@@ -0,0 +1,28 @@
+using Gtk;
+using Gee;
+using Dino.Entities;
+
+namespace Dino.Plugins.Omemo {
+
+public class ContactDetailsProvider : Plugins.ContactDetailsProvider, Object {
+ public string id { get { return "omemo_info"; } }
+ public string tab { get { return "encryption"; } }
+
+ private Plugin plugin;
+
+ public ContactDetailsProvider(Plugin plugin) {
+ this.plugin = plugin;
+ }
+
+ public void populate(Conversation conversation, Plugins.ContactDetails contact_details, WidgetType type) { }
+
+ public Object? get_widget(Conversation conversation) {
+ if (conversation.type_ != Conversation.Type.CHAT) return null;
+
+ var widget = new OmemoPreferencesWidget(plugin);
+ widget.set_jid(conversation.account, conversation.counterpart);
+ return widget;
+ }
+}
+
+}
diff --git a/main/src/plugins/omemo/ui/device_notification_populator.vala b/main/src/plugins/omemo/ui/device_notification_populator.vala
new file mode 100644
index 00000000..7829d89c
--- /dev/null
+++ b/main/src/plugins/omemo/ui/device_notification_populator.vala
@@ -0,0 +1,90 @@
+using Dino.Entities;
+using Xmpp;
+using Gtk;
+
+namespace Dino.Plugins.Omemo {
+
+public class DeviceNotificationPopulator : NotificationPopulator, Object {
+
+ public string id { get { return "device_notification"; } }
+
+ private StreamInteractor? stream_interactor;
+ private Plugin plugin;
+ private Conversation? current_conversation;
+ private NotificationCollection? notification_collection;
+ private ConversationNotification notification;
+
+ public DeviceNotificationPopulator(Plugin plugin, StreamInteractor stream_interactor) {
+ this.stream_interactor = stream_interactor;
+ this.plugin = plugin;
+
+ stream_interactor.account_added.connect(on_account_added);
+ }
+
+ public void init(Conversation conversation, NotificationCollection notification_collection, Plugins.WidgetType type) {
+ current_conversation = conversation;
+ this.notification_collection = notification_collection;
+ if (plugin.has_new_devices(conversation.account, conversation.counterpart) && conversation.type_ == Conversation.Type.CHAT) {
+ display_notification();
+ }
+ }
+
+ public void close(Conversation conversation) {
+ notification = null;
+ }
+
+ private void display_notification() {
+ if (notification == null) {
+ notification = new ConversationNotification(plugin, current_conversation);
+ notification.should_hide.connect(should_hide);
+ notification_collection.add_meta_notification(notification);
+ }
+ }
+
+ public void should_hide() {
+ if (!plugin.has_new_devices(current_conversation.account, current_conversation.counterpart) && notification != null){
+ notification_collection.remove_meta_notification(notification);
+ notification = null;
+ }
+ }
+
+ private void on_account_added(Account account) {
+ stream_interactor.module_manager.get_module(account, StreamModule.IDENTITY).bundle_fetched.connect_after((jid, device_id, bundle) => {
+ if (current_conversation != null && jid.equals(current_conversation.counterpart) && plugin.has_new_devices(current_conversation.account, current_conversation.counterpart)) {
+ display_notification();
+ }
+ });
+ }
+}
+
+private class ConversationNotification : MetaConversationNotification {
+ private Widget widget;
+ private Plugin plugin;
+ private Jid jid;
+ private Account account;
+ public signal void should_hide();
+
+ public ConversationNotification(Plugin plugin, Conversation conversation) {
+ this.plugin = plugin;
+ this.jid = jid;
+ this.account = account;
+
+ Box box = new Box(Orientation.HORIZONTAL, 5);
+ Button manage_button = new Button.with_label(_("Manage"));
+ manage_button.clicked.connect(() => {
+ manage_button.activate();
+
+ var variant = new Variant.tuple(new Variant[] {new Variant.int32(conversation.id), new Variant.string("encryption")});
+ GLib.Application.get_default().activate_action("open-conversation-details", variant);
+ });
+ box.append(new Label(_("This contact has new devices")) { margin_end=10 });
+ box.append(manage_button);
+ widget = box;
+ }
+
+ public override Object? get_widget(WidgetType type) {
+ return widget;
+ }
+}
+
+}
diff --git a/main/src/plugins/omemo/ui/encryption_list_entry.vala b/main/src/plugins/omemo/ui/encryption_list_entry.vala
new file mode 100644
index 00000000..dfec813a
--- /dev/null
+++ b/main/src/plugins/omemo/ui/encryption_list_entry.vala
@@ -0,0 +1,78 @@
+using Gtk;
+
+using Dino.Entities;
+using Dino.Qlite;
+using Xmpp;
+
+namespace Dino.Plugins.Omemo {
+
+public class EncryptionListEntry : Plugins.EncryptionListEntry, Object {
+ private Plugin plugin;
+ private Database db;
+
+ public EncryptionListEntry(Plugin plugin) {
+ this.plugin = plugin;
+ this.db = plugin.db;
+ }
+
+ public Entities.Encryption encryption { get {
+ return Entities.Encryption.OMEMO;
+ }}
+
+ public string name { get {
+ return "OMEMO";
+ }}
+
+ public Object? get_encryption_icon(Entities.Conversation conversation, ContentItem content_item) {
+ return null;
+ }
+
+ public string? get_encryption_icon_name(Entities.Conversation conversation, ContentItem content_item) {
+ if (content_item.encryption != encryption) return null;
+
+ RowOption row = db.content_item_meta.select( { db.identity_meta.trust_level } ).with(db.content_item_meta.content_item_id, "=", content_item.id)
+ .join_on(db.identity_meta, @"$(db.identity_meta.address_name)=$(db.content_item_meta.address_name) AND $(db.identity_meta.device_id)=$(db.content_item_meta.device_id)")
+ .single().row();
+
+
+ if (row.is_present() && (TrustLevel) row[db.identity_meta.trust_level] == TrustLevel.VERIFIED) {
+ return "dino-security-high-symbolic";
+ }
+ return null;
+ }
+
+ public void encryption_activated(Entities.Conversation conversation, Plugins.SetInputFieldStatus input_status_callback) {
+ encryption_activated_async.begin(conversation, input_status_callback);
+ }
+
+ public async void encryption_activated_async(Entities.Conversation conversation, Plugins.SetInputFieldStatus input_status_callback) {
+ if (conversation.type_ == Conversation.Type.GROUPCHAT_PM) {
+ input_status_callback(new Plugins.InputFieldStatus("Can't use encryption in a groupchat private message.", Plugins.InputFieldStatus.MessageType.ERROR, Plugins.InputFieldStatus.InputState.NO_SEND));
+ return;
+ }
+ MucManager muc_manager = plugin.app.stream_interactor.get_module(MucManager.IDENTITY);
+ Manager omemo_manager = plugin.app.stream_interactor.get_module(Manager.IDENTITY);
+
+ if (muc_manager.is_private_room(conversation.account, conversation.counterpart)) {
+ var offline_members = muc_manager.get_offline_members(conversation.counterpart, conversation.account);
+ if (offline_members == null) {
+ // We don't store offline members yet, and it'll be null if we're offline
+ return;
+ }
+ foreach (Jid offline_member in offline_members) {
+ bool ok = yield omemo_manager.ensure_get_keys_for_jid(conversation.account, offline_member);
+ if (!ok) {
+ input_status_callback(new Plugins.InputFieldStatus("A member does not support OMEMO: %s".printf(offline_member.to_string()), Plugins.InputFieldStatus.MessageType.ERROR, Plugins.InputFieldStatus.InputState.NO_SEND));
+ return;
+ }
+ }
+ return;
+ }
+
+ if (!(yield omemo_manager.ensure_get_keys_for_jid(conversation.account, conversation.counterpart.bare_jid))) {
+ input_status_callback(new Plugins.InputFieldStatus("This contact does not support %s encryption".printf("OMEMO"), Plugins.InputFieldStatus.MessageType.ERROR, Plugins.InputFieldStatus.InputState.NO_SEND));
+ }
+ }
+
+}
+}
diff --git a/main/src/plugins/omemo/ui/encryption_preferences_entry.vala b/main/src/plugins/omemo/ui/encryption_preferences_entry.vala
new file mode 100644
index 00000000..7f53a1b2
--- /dev/null
+++ b/main/src/plugins/omemo/ui/encryption_preferences_entry.vala
@@ -0,0 +1,324 @@
+using Gee;
+using Gtk;
+using Qrencode;
+
+using Dino.Crypto.Omemo;
+using Dino.Entities;
+using Dino.Qlite;
+using Omemo;
+using Xmpp;
+
+namespace Dino.Plugins.Omemo {
+
+public class OmemoPreferencesEntry : Plugins.EncryptionPreferencesEntry {
+
+ OmemoPreferencesWidget widget;
+ Plugin plugin;
+
+ public OmemoPreferencesEntry(Plugin plugin) {
+ this.plugin = plugin;
+ }
+
+ public override Object? get_widget(Account account, WidgetType type) {
+ if (type != WidgetType.GTK4) return null;
+ var widget = new OmemoPreferencesWidget(plugin);
+ widget.set_jid(account, account.bare_jid);
+ return widget;
+ }
+
+ public override string id { get { return "omemo_preferences_entryption"; }}
+}
+
+[GtkTemplate (ui = "/im/dino/Dino/encryption_preferences_entry.ui")]
+public class OmemoPreferencesWidget : Adw.PreferencesGroup {
+ private Plugin plugin;
+ private Account account;
+ private Jid jid;
+ private int identity_id = 0;
+ private Store store;
+ private Set<uint32> displayed_ids = new HashSet<uint32>();
+
+ [GtkChild] private unowned Adw.SwitchRow automatically_accept_new_row;
+ [GtkChild] private unowned Adw.SwitchRow encrypt_by_default_row;
+ [GtkChild] private unowned Label new_keys_label;
+
+ [GtkChild] private unowned Adw.PreferencesGroup keys_preferences_group;
+ [GtkChild] private unowned ListBox new_keys_listbox;
+ [GtkChild] private unowned Picture qrcode_picture;
+ [GtkChild] private unowned Popover qrcode_popover;
+
+ private ArrayList<Widget> keys_preferences_group_children = new ArrayList<Widget>();
+
+ construct {
+ // If we set the strings in the .ui file, they don't get translated
+ encrypt_by_default_row.title = _("OMEMO by default");
+ encrypt_by_default_row.subtitle = _("Enable OMEMO encryption for new conversations");
+ automatically_accept_new_row.title = _("Encrypt to new devices");
+ automatically_accept_new_row.subtitle = _("Automatically encrypt to new devices from this contact.");
+ new_keys_label.label = _("New keys");
+ }
+
+ public OmemoPreferencesWidget(Plugin plugin) {
+ this.plugin = plugin;
+ }
+
+ public void set_jid(Account account, Jid jid) {
+ this.account = account;
+ this.jid = jid;
+ this.identity_id = plugin.db.identity.get_id(account.id);
+ if (identity_id <= 0) {
+ warning("OmemoPreferencesWidget missing identity_id");
+ return;
+ }
+
+ automatically_accept_new_row.active = plugin.db.trust.get_blind_trust(identity_id, jid.bare_jid.to_string(), true);
+ automatically_accept_new_row.notify["active"].connect((obj, _) => { on_auto_accept_toggled(((Adw.SwitchRow) obj).active); });
+
+ encrypt_by_default_row.visible = account.bare_jid.equals_bare(jid);
+ encrypt_by_default_row.active = plugin.app.settings.get_default_encryption(account) != Encryption.NONE;
+ encrypt_by_default_row.notify["active"].connect((obj, _) => { on_omemo_by_default_toggled(((Adw.SwitchRow) obj).active); });
+
+ Dino.Application? app = Application.get_default() as Dino.Application;
+ if (app != null) {
+ store = app.stream_interactor.module_manager.get_module(account, StreamModule.IDENTITY).store;
+ }
+
+ redraw_key_list();
+
+ // Check for unknown devices
+ fetch_unknown_bundles();
+ }
+
+ private void redraw_key_list() {
+ // Remove current widgets
+ foreach (var widget in keys_preferences_group_children) {
+ keys_preferences_group.remove(widget);
+ }
+ keys_preferences_group_children.clear();
+
+ // Dialog opened from the account settings menu
+ // Show the fingerprint for this device separately with buttons for a qrcode and to copy
+ if(jid.equals(account.bare_jid)) {
+ automatically_accept_new_row.subtitle = _("New encryption keys from your other devices will be accepted automatically.");
+ add_own_fingerprint();
+ }
+
+ //Show the normal devicelist
+ var own_id = plugin.db.identity.row_with(plugin.db.identity.account_id, account.id)[plugin.db.identity.device_id];
+ foreach (Row device in plugin.db.identity_meta.get_known_devices(identity_id, jid.to_string())) {
+ if(jid.equals(account.bare_jid) && device[plugin.db.identity_meta.device_id] == own_id) {
+ // If this is our own account, don't show this device twice (did it separately already)
+ continue;
+ }
+ add_fingerprint(device, (TrustLevel) device[plugin.db.identity_meta.trust_level]);
+ }
+
+ //Show any new devices for which the user must decide whether to accept or reject
+ foreach (Row device in plugin.db.identity_meta.get_new_devices(identity_id, jid.to_string())) {
+ add_new_fingerprint(device);
+ }
+ }
+
+ private static string escape_for_iri_path_segment(string s) {
+ // from RFC 3986, 2.2. Reserved Characters:
+ string SUB_DELIMS = "!$&'()*+,;=";
+ // from RFC 3986, 3.3. Path (pchar without unreserved and pct-encoded):
+ string ALLOWED_RESERVED_CHARS = SUB_DELIMS + ":@";
+ return GLib.Uri.escape_string(s, ALLOWED_RESERVED_CHARS, true);
+ }
+
+ private void fetch_unknown_bundles() {
+ Dino.Application app = Application.get_default() as Dino.Application;
+ XmppStream? stream = app.stream_interactor.get_stream(account);
+ if (stream == null) return;
+ StreamModule? module = stream.get_module(StreamModule.IDENTITY);
+ if (module == null) return;
+ module.bundle_fetched.connect_after((bundle_jid, device_id, bundle) => {
+ if (bundle_jid.equals(jid) && !displayed_ids.contains(device_id)) {
+ redraw_key_list();
+ }
+ });
+ foreach (Row device in plugin.db.identity_meta.get_unknown_devices(identity_id, jid.to_string())) {
+ try {
+ module.fetch_bundle(stream, Jid.from_string(device[plugin.db.identity_meta.address_name]), device[plugin.db.identity_meta.device_id], false);
+ } catch (InvalidJidError e) {
+ warning("Ignoring device with invalid Jid: %s", e.message);
+ }
+ }
+ }
+
+ private void add_own_fingerprint() {
+ string own_b64 = plugin.db.identity.row_with(plugin.db.identity.account_id, account.id)[plugin.db.identity.identity_key_public_base64];
+ string fingerprint = fingerprint_from_base64(own_b64);
+
+ var own_action_box = new Box(Orientation.HORIZONTAL, 6);
+ var show_qrcode_button = new MenuButton() { icon_name="dino-qr-code-symbolic", valign=Align.CENTER };
+ own_action_box.append(show_qrcode_button);
+ var copy_button = new Button() { icon_name="dino-edit-copy-symbolic", valign=Align.CENTER };
+ copy_button.clicked.connect(() => { copy_button.get_clipboard().set_text(fingerprint); });
+ own_action_box.append(copy_button);
+
+ Adw.ActionRow action_row = new Adw.ActionRow() { use_markup = true };
+ action_row.title = _("This device");
+ action_row.subtitle = fingerprint_markup(fingerprint_from_base64(own_b64));
+ action_row.add_suffix(own_action_box);
+ add_key_row(action_row);
+
+ // Create and set QR code popover
+ int sid = plugin.db.identity.row_with(plugin.db.identity.account_id, account.id)[plugin.db.identity.device_id];
+ var iri_query = @"omemo-sid-$(sid)=$(fingerprint)";
+ string iri = GLib.Uri.join(UriFlags.NONE, "xmpp", null, null, 0, jid.to_string(), iri_query, null);
+
+ const int QUIET_ZONE_MODULES = 4; // MUST be at least 4
+ const int MODULE_SIZE_PX = 4; // arbitrary
+ var qr_paintable = new QRcode(iri, 2)
+ .to_paintable(MODULE_SIZE_PX * qrcode_picture.scale_factor);
+ qrcode_picture.paintable = qr_paintable;
+ qrcode_picture.margin_top = qrcode_picture.margin_end =
+ qrcode_picture.margin_bottom = qrcode_picture.margin_start = QUIET_ZONE_MODULES * MODULE_SIZE_PX;
+ qrcode_popover.add_css_class("qrcode-container");
+
+ show_qrcode_button.popover = qrcode_popover;
+ }
+
+ private void add_fingerprint(Row device, TrustLevel trust) {
+ string key_base64 = device[plugin.db.identity_meta.identity_key_public_base64];
+ bool key_active = device[plugin.db.identity_meta.now_active];
+ if (store != null) {
+ try {
+ Address address = new Address(jid.to_string(), device[plugin.db.identity_meta.device_id]);
+ SessionRecord? session = null;
+ if (store.contains_session(address)) {
+ session = store.load_session(address);
+ string session_key_base64 = Base64.encode(session.state.remote_identity_key.serialize());
+ if (key_base64 != session_key_base64) {
+ critical("Session and database identity key mismatch!");
+ key_base64 = session_key_base64;
+ }
+ }
+ } catch (Error e) {
+ print("Error while reading session store: %s", e.message);
+ }
+ }
+
+ if (device[plugin.db.identity_meta.now_active]) {
+ Adw.ActionRow action_row = new Adw.ActionRow() { use_markup = true };
+ action_row.activated.connect(() => {
+ Row updated_device = plugin.db.identity_meta.get_device(device[plugin.db.identity_meta.identity_id], device[plugin.db.identity_meta.address_name], device[plugin.db.identity_meta.device_id]);
+ ManageKeyDialog manage_dialog = new ManageKeyDialog(updated_device, plugin.db);
+ manage_dialog.set_transient_for((Gtk.Window) get_root());
+ manage_dialog.present();
+ manage_dialog.response.connect((response) => {
+ update_stored_trust(response, updated_device);
+ redraw_key_list();
+ });
+ });
+ action_row.activatable = true;
+ action_row.title = account.bare_jid.equals_bare(jid) ? _("Other device") : _("Device");
+ action_row.subtitle = fingerprint_markup(fingerprint_from_base64(key_base64));
+ string trust_str = _("Accepted");
+ switch(trust) {
+ case TrustLevel.UNTRUSTED:
+ trust_str = _("Rejected");
+ break;
+ case TrustLevel.VERIFIED:
+ trust_str = _("Verified");
+ break;
+ case TrustLevel.TRUSTED:
+ case TrustLevel.UNKNOWN:
+ default:
+ break;
+ }
+
+ action_row.add_suffix(new Label(trust_str));
+ add_key_row(action_row);
+ }
+ displayed_ids.add(device[plugin.db.identity_meta.device_id]);
+ }
+
+ private bool on_auto_accept_toggled(bool active) {
+ plugin.trust_manager.set_blind_trust(account, jid, active);
+
+ if (active) {
+ int identity_id = plugin.db.identity.get_id(account.id);
+ if (identity_id < 0) return false;
+
+ foreach (Row device in plugin.db.identity_meta.get_new_devices(identity_id, jid.to_string())) {
+ plugin.trust_manager.set_device_trust(account, jid, device[plugin.db.identity_meta.device_id], TrustLevel.TRUSTED);
+ add_fingerprint(device, TrustLevel.TRUSTED);
+ }
+ }
+ return false;
+ }
+
+ private bool on_omemo_by_default_toggled(bool active) {
+ var encryption_value = active ? Encryption.OMEMO : Encryption.NONE;
+ plugin.app.settings.set_default_encryption(account, encryption_value);
+ return false;
+ }
+
+ private void update_stored_trust(int response, Row device) {
+ switch (response) {
+ case TrustLevel.TRUSTED:
+ plugin.trust_manager.set_device_trust(account, jid, device[plugin.db.identity_meta.device_id], TrustLevel.TRUSTED);
+ break;
+ case TrustLevel.UNTRUSTED:
+ plugin.trust_manager.set_device_trust(account, jid, device[plugin.db.identity_meta.device_id], TrustLevel.UNTRUSTED);
+ break;
+ case TrustLevel.VERIFIED:
+ plugin.trust_manager.set_device_trust(account, jid, device[plugin.db.identity_meta.device_id], TrustLevel.VERIFIED);
+ plugin.trust_manager.set_blind_trust(account, jid, false);
+ automatically_accept_new_row.active = false;
+ break;
+ }
+ }
+
+ private void add_new_fingerprint(Row device) {
+ Adw.ActionRow action_row = new Adw.ActionRow() { use_markup = true };
+ action_row.title = _("New device");
+ action_row.subtitle = fingerprint_markup(fingerprint_from_base64(device[plugin.db.identity_meta.identity_key_public_base64]));
+
+ Button accept_button = new Button() { visible = true, valign = Align.CENTER, hexpand = true };
+ accept_button.set_icon_name("dino-check-plain-symbolic"); // using .image = sets .image-button. Together with .suggested/destructive action that breaks the button Adwaita
+ accept_button.add_css_class("suggested-action");
+ accept_button.tooltip_text = _("Accept key");
+
+ Button reject_button = new Button() { visible = true, valign = Align.CENTER, hexpand = true };
+ reject_button.set_icon_name("action-unavailable-symbolic");
+ reject_button.add_css_class("destructive-action");
+ reject_button.tooltip_text = _("Reject key");
+
+ accept_button.clicked.connect(() => {
+ plugin.trust_manager.set_device_trust(account, jid, device[plugin.db.identity_meta.device_id], TrustLevel.TRUSTED);
+ add_fingerprint(device, TrustLevel.TRUSTED);
+ remove_key_row(action_row);
+ });
+
+ reject_button.clicked.connect(() => {
+ plugin.trust_manager.set_device_trust(account, jid, device[plugin.db.identity_meta.device_id], TrustLevel.UNTRUSTED);
+ add_fingerprint(device, TrustLevel.UNTRUSTED);
+ remove_key_row(action_row);
+ });
+
+ Box control_box = new Box(Gtk.Orientation.HORIZONTAL, 0) { visible = true, hexpand = true };
+ control_box.append(accept_button);
+ control_box.append(reject_button);
+ control_box.add_css_class("linked"); // .linked: Visually link the accept / reject buttons
+
+ action_row.add_suffix(control_box);
+
+ add_key_row(action_row);
+ displayed_ids.add(device[plugin.db.identity_meta.device_id]);
+ }
+
+ private void add_key_row(Adw.PreferencesRow widget) {
+ keys_preferences_group.add(widget);
+ keys_preferences_group_children.add(widget);
+ }
+
+ private void remove_key_row(Adw.PreferencesRow widget) {
+ keys_preferences_group.remove(widget);
+ keys_preferences_group_children.remove(widget);
+ }
+}
+} \ No newline at end of file
diff --git a/main/src/plugins/omemo/ui/manage_key_dialog.vala b/main/src/plugins/omemo/ui/manage_key_dialog.vala
new file mode 100644
index 00000000..59e6db24
--- /dev/null
+++ b/main/src/plugins/omemo/ui/manage_key_dialog.vala
@@ -0,0 +1,181 @@
+using Gtk;
+
+using Dino.Qlite;
+
+namespace Dino.Plugins.Omemo {
+
+[GtkTemplate (ui = "/im/dino/Dino/manage_key_dialog.ui")]
+public class ManageKeyDialog : Gtk.Dialog {
+
+ [GtkChild] private unowned Stack manage_stack;
+
+ [GtkChild] private unowned Button cancel_button;
+ [GtkChild] private unowned Button ok_button;
+
+ [GtkChild] private unowned Label main_desc_label;
+ [GtkChild] private unowned ListBox main_action_list;
+
+ [GtkChild] private unowned Image confirm_image;
+ [GtkChild] private unowned Label confirm_title_label;
+ [GtkChild] private unowned Label confirm_desc_label;
+
+ [GtkChild] private unowned Label verify_label;
+ [GtkChild] private unowned Label compare_fingerprint_label;
+ [GtkChild] private unowned Button verify_yes_button;
+ [GtkChild] private unowned Button verify_no_button;
+
+ private Row device;
+ private Database db;
+
+ private bool return_to_main;
+ private int current_response;
+
+ construct {
+ // If we set the strings in the .ui file, they don't get translated
+ this.title = _("Manage Key");
+ compare_fingerprint_label.label = _("Compare the fingerprint, character by character, with the one shown on your contact's device.");
+ verify_no_button.label = _("Fingerprints differ");
+ verify_yes_button.label = _("Fingerprints match");
+ cancel_button.label = _("Cancel");
+ ok_button.label = _("Confirm");
+ }
+
+ public ManageKeyDialog(Row device, Database db) {
+ Object(use_header_bar : 1);
+
+ this.device = device;
+ this.db = db;
+
+ setup_main_screen();
+ setup_verify_screen();
+
+ cancel_button.clicked.connect(handle_cancel);
+ ok_button.clicked.connect(() => {
+ response(current_response);
+ close();
+ });
+
+ verify_yes_button.clicked.connect(() => {
+ confirm_image.set_from_icon_name("security-high-symbolic");
+ confirm_title_label.label = _("Verify key");
+ confirm_desc_label.set_markup(_("Future messages sent by %s from the device that uses this key will be highlighted accordingly in the chat window.").printf(@"<b>$(device[db.identity_meta.address_name])</b>"));
+ manage_stack.set_visible_child_name("confirm");
+ ok_button.sensitive = true;
+ return_to_main = false;
+ current_response = TrustLevel.VERIFIED;
+ });
+
+ verify_no_button.clicked.connect(() => {
+ return_to_main = false;
+ confirm_image.set_from_icon_name("dino-dialog-warning-symbolic");
+ confirm_title_label.label = _("Fingerprints do not match");
+ confirm_desc_label.set_markup(_("Please verify that you are comparing the correct fingerprint. If fingerprints do not match, %s's account may be compromised and you should consider rejecting this key.").printf(@"<b>$(device[db.identity_meta.address_name])</b>"));
+ manage_stack.set_visible_child_name("confirm");
+ });
+ }
+
+ private void handle_cancel() {
+ if (manage_stack.get_visible_child_name() == "main") close();
+
+ if (manage_stack.get_visible_child_name() == "verify") {
+ manage_stack.set_visible_child_name("main");
+ cancel_button.label = _("Cancel");
+ }
+
+ if (manage_stack.get_visible_child_name() == "confirm") {
+ if (return_to_main) {
+ manage_stack.set_visible_child_name("main");
+ cancel_button.label = _("Cancel");
+ } else {
+ manage_stack.set_visible_child_name("verify");
+ }
+ }
+
+ ok_button.sensitive = false;
+ }
+
+ private Box make_action_box(string title, string desc){
+ Box box = new Box(Orientation.VERTICAL, 0) { visible = true, margin_start = 20, margin_end = 20, margin_top = 14, margin_bottom = 14 };
+ Label lbl_title = new Label(title) { visible = true, halign = Align.START };
+ Label lbl_desc = new Label(desc) { visible = true, xalign = 0, wrap = true, max_width_chars = 40 };
+
+ Pango.AttrList title_attrs = new Pango.AttrList();
+ title_attrs.insert(Pango.attr_scale_new(1.1));
+ lbl_title.attributes = title_attrs;
+ Pango.AttrList desc_attrs = new Pango.AttrList();
+ desc_attrs.insert(Pango.attr_scale_new(0.8));
+ lbl_desc.attributes = desc_attrs;
+ lbl_desc.add_css_class("dim-label");
+
+ box.append(lbl_title);
+ box.append(lbl_desc);
+
+ return box;
+ }
+
+ private void setup_main_screen() {
+ main_action_list.set_header_func((row, before_row) => {
+ if (row.get_header() == null && before_row != null) {
+ row.set_header(new Separator(Orientation.HORIZONTAL));
+ }
+ });
+
+ ListBoxRow verify_row = new ListBoxRow() { visible = true };
+ verify_row.set_child(make_action_box(_("Verify key fingerprint"), _("Compare this key's fingerprint with the fingerprint displayed on the contact's device.")));
+ ListBoxRow reject_row = new ListBoxRow() { visible = true };
+ reject_row.set_child(make_action_box(_("Reject key"), _("Block encrypted communication with the contact's device that uses this key.")));
+ ListBoxRow accept_row = new ListBoxRow() {visible = true };
+ accept_row.set_child(make_action_box(_("Accept key"), _("Allow encrypted communication with the contact's device that uses this key.")));
+
+ switch((TrustLevel) device[db.identity_meta.trust_level]) {
+ case TrustLevel.TRUSTED:
+ main_desc_label.set_markup(_("This key is currently %s.").printf("<span color='#1A63D9'>"+_("accepted")+"</span>")+" "+_("This means it can be used by %s to receive and send encrypted messages.").printf(@"<b>$(device[db.identity_meta.address_name])</b>"));
+ main_action_list.append(verify_row);
+ main_action_list.append(reject_row);
+ break;
+ case TrustLevel.VERIFIED:
+ main_desc_label.set_markup(_("This key is currently %s.").printf("<span color='#1A63D9'>"+_("verified")+"</span>")+" "+_("This means it can be used by %s to receive and send encrypted messages.").printf(@"<b>$(device[db.identity_meta.address_name])</b>") + " " + _("Additionally it has been verified to match the key on the contact's device."));
+ main_action_list.append(reject_row);
+ break;
+ case TrustLevel.UNTRUSTED:
+ main_desc_label.set_markup(_("This key is currently %s.").printf("<span color='#D91900'>"+_("rejected")+"</span>")+" "+_("This means it cannot be used by %s to decipher your messages, and you won't see messages encrypted with it.").printf(@"<b>$(device[db.identity_meta.address_name])</b>"));
+ main_action_list.append(accept_row);
+ break;
+ case TrustLevel.UNKNOWN:
+ default:
+ break;
+ }
+
+ //Row clicked - go to appropriate screen
+ main_action_list.row_activated.connect((row) => {
+ if(row == verify_row) {
+ manage_stack.set_visible_child_name("verify");
+ } else if (row == reject_row) {
+ confirm_image.set_from_icon_name("action-unavailable-symbolic");
+ confirm_title_label.label = _("Reject key");
+ confirm_desc_label.set_markup(_("You won't see encrypted messages from the device of %s that uses this key. Conversely, that device won't be able to decipher your messages anymore.").printf(@"<b>$(device[db.identity_meta.address_name])</b>"));
+ manage_stack.set_visible_child_name("confirm");
+ ok_button.sensitive = true;
+ return_to_main = true;
+ current_response = TrustLevel.UNTRUSTED;
+ } else if (row == accept_row) {
+ confirm_image.set_from_icon_name("dino-check-plain-symbolic");
+ confirm_title_label.label = _("Accept key");
+ confirm_desc_label.set_markup(_("You will be able to exchange encrypted messages with the device of %s that uses this key.").printf(@"<b>$(device[db.identity_meta.address_name])</b>"));
+ manage_stack.set_visible_child_name("confirm");
+ ok_button.sensitive = true;
+ return_to_main = true;
+ current_response = TrustLevel.TRUSTED;
+ }
+ cancel_button.label = _("Back");
+ });
+
+ manage_stack.set_visible_child_name("main");
+ }
+
+ private void setup_verify_screen() {
+ verify_label.set_markup(fingerprint_markup(fingerprint_from_base64(device[db.identity_meta.identity_key_public_base64])));
+ }
+}
+
+}
diff --git a/main/src/plugins/omemo/ui/own_notifications.vala b/main/src/plugins/omemo/ui/own_notifications.vala
new file mode 100644
index 00000000..7ff10e30
--- /dev/null
+++ b/main/src/plugins/omemo/ui/own_notifications.vala
@@ -0,0 +1,35 @@
+using Dino.Entities;
+using Xmpp;
+using Gtk;
+
+namespace Dino.Plugins.Omemo {
+
+public class OwnNotifications {
+
+ private StreamInteractor stream_interactor;
+ private Plugin plugin;
+ private Account account;
+
+ public OwnNotifications (Plugin plugin, StreamInteractor stream_interactor, Account account) {
+ this.stream_interactor = (!)stream_interactor;
+ this.plugin = plugin;
+ this.account = account;
+ stream_interactor.module_manager.get_module(account, StreamModule.IDENTITY).bundle_fetched.connect_after((jid, device_id, bundle) => {
+ if (jid.equals(account.bare_jid) && plugin.has_new_devices(account, account.bare_jid)) {
+ display_notification();
+ }
+ });
+
+ if (plugin.has_new_devices(account, account.bare_jid)) {
+ display_notification();
+ }
+ }
+
+ private void display_notification() {
+ Notification notification = new Notification(_("OMEMO trust decision required"));
+ notification.set_default_action_and_target_value("app.own-keys", new Variant.int32(account.id));
+ notification.set_body(_("Did you add a new device for account %s?").printf(@"$(account.bare_jid.to_string())"));
+ plugin.app.send_notification(account.id.to_string()+"-new-device", notification);
+ }
+}
+}
diff --git a/main/src/plugins/omemo/ui/util.vala b/main/src/plugins/omemo/ui/util.vala
new file mode 100644
index 00000000..e250ff4d
--- /dev/null
+++ b/main/src/plugins/omemo/ui/util.vala
@@ -0,0 +1,40 @@
+using Xmpp.Util;
+
+namespace Dino.Plugins.Omemo {
+
+public static string fingerprint_from_base64(string b64) {
+ uint8[] arr = Base64.decode(b64);
+
+ arr = arr[1:arr.length];
+ string s = "";
+ foreach (uint8 i in arr) {
+ string tmp = i.to_string("%x");
+ if (tmp.length == 1) tmp = "0" + tmp;
+ s = s + tmp;
+ }
+
+ return s;
+}
+
+public static string fingerprint_markup(string s) {
+ return "<span font_family='monospace' font='9'>" + format_fingerprint(s) + "</span>";
+}
+
+public static string format_fingerprint(string s) {
+ string markup = "";
+ for (int i = 0; i < s.length; i += 4) {
+ string four_chars = s.substring(i, 4).down();
+
+ if (i % 32 == 0 && i != 0) markup += "\n";
+ markup += four_chars;
+ if (i % 16 == 12 && i % 32 != 28) {
+ markup += " ";
+ }
+ if (i % 8 == 4 && i % 16 != 12) {
+ markup += "\u00a0"; // Non-breaking space
+ }
+ }
+ return markup;
+}
+
+}
diff --git a/main/src/plugins/openpgp/contact_details_provider.vala b/main/src/plugins/openpgp/contact_details_provider.vala
new file mode 100644
index 00000000..353c0b85
--- /dev/null
+++ b/main/src/plugins/openpgp/contact_details_provider.vala
@@ -0,0 +1,51 @@
+using Gtk;
+
+using Dino.Entities;
+
+namespace Dino.Plugins.OpenPgp {
+
+public class ContactDetailsProvider : Plugins.ContactDetailsProvider, Object {
+ public string id { get { return "pgp_info"; } }
+ public string tab { get { return "encryption"; } }
+
+ private StreamInteractor stream_interactor;
+
+ public ContactDetailsProvider(StreamInteractor stream_interactor) {
+ this.stream_interactor = stream_interactor;
+ }
+
+ public void populate(Conversation conversation, Plugins.ContactDetails contact_details, WidgetType type) { }
+
+ public Object? get_widget(Conversation conversation) {
+ var preferences_group = new Adw.PreferencesGroup() { title="OpenPGP" };
+
+ if (conversation.type_ != Conversation.Type.CHAT) return null;
+
+ string? key_id = stream_interactor.get_module(Manager.IDENTITY).get_key_id(conversation.account, conversation.counterpart);
+ if (key_id == null) return null;
+
+ Gee.List<GPG.Key>? keys = null;
+ try {
+ keys = GPGHelper.get_keylist(key_id);
+ } catch (Error e) { }
+
+ var str = "";
+ if (keys != null && keys.size > 0) {
+ str = markup_id(keys[0].fpr, true);
+ } else {
+ str = _("Key not in keychain") + "\n" + markup_id(key_id, false);
+ }
+
+ var view = new Adw.ActionRow() {
+ title = _("Fingerprint"),
+ subtitle = str,
+ subtitle_selectable = true
+ };
+
+ preferences_group.add(view);
+
+ return preferences_group;
+ }
+}
+
+}
diff --git a/main/src/plugins/openpgp/database.vala b/main/src/plugins/openpgp/database.vala
new file mode 100644
index 00000000..4c05571e
--- /dev/null
+++ b/main/src/plugins/openpgp/database.vala
@@ -0,0 +1,137 @@
+using Dino.Entities;
+using Dino.Qlite;
+using Xmpp;
+
+namespace Dino.Plugins.OpenPgp {
+
+public class Database : Qlite.Database {
+ private const int VERSION = 1;
+
+ public class AccountSetting : Table {
+ public Column<int> account_id = new Column.Integer("account_id") { primary_key = true };
+ public Column<string> key = new Column.Text("key") { not_null = true };
+ public Column<string> signed_data = new Column.Text("signed_data") { min_version = 1 };
+ public Column<string> sig = new Column.Text("sig") { min_version = 1 };
+
+ internal AccountSetting(Database db) {
+ base(db, "account_setting");
+ init({account_id, key, signed_data, sig});
+ }
+ }
+
+ public class ContactKey : Table {
+ public Column<string> jid = new Column.Text("jid") { primary_key = true };
+ public Column<string> key = new Column.Text("key");
+ public Column<string> sig = new Column.Text("sig") { min_version = 1 };
+ public Column<string> signed_data = new Column.Text("signed_data") { min_version = 1 };
+
+ internal ContactKey(Database db) {
+ base(db, "contact_key");
+ init({jid, key, sig, signed_data});
+ }
+
+ internal void migrate_from_v0(Database db) {
+ string column_list = "";
+ foreach (Column c in columns) {
+ if (c.min_version <= VERSION && c.max_version >= VERSION) {
+ if (column_list == "") {
+ column_list = c.name;
+ } else {
+ column_list += ", " + c.name;
+ }
+ }
+ }
+ db.exec(@"ALTER TABLE $name RENAME TO _$(name)_1");
+ create_table_at_version(VERSION);
+ db.exec(@"INSERT INTO $name ($column_list) SELECT $column_list FROM _$(name)_1");
+ db.exec(@"DROP TABLE _$(name)_1");
+ }
+ }
+
+ public AccountSetting account_setting_table { get; private set; }
+ public ContactKey contact_key_table { get; private set; }
+
+ public Database(string filename) {
+ base(filename, VERSION);
+ this.account_setting_table = new AccountSetting(this);
+ this.contact_key_table = new ContactKey(this);
+ init({account_setting_table, contact_key_table});
+
+ try {
+ exec("PRAGMA journal_mode = WAL");
+ exec("PRAGMA synchronous = NORMAL");
+ exec("PRAGMA secure_delete = ON");
+ } catch (Error e) {
+ error("Failed to set OpenPGP database properties: %s", e.message);
+ }
+ }
+
+ public void set_contact_signature(Jid jid, string sig, string signed_data) {
+ contact_key_table.upsert()
+ .value(contact_key_table.jid, jid.to_string(), true)
+ .value(contact_key_table.sig, sig)
+ .value(contact_key_table.signed_data, signed_data)
+ .value_null(contact_key_table.key)
+ .perform();
+ }
+
+ public void clear_contact_signature(Jid jid) {
+ contact_key_table.upsert()
+ .value(contact_key_table.jid, jid.to_string(), true)
+ .value_null(contact_key_table.sig)
+ .value_null(contact_key_table.signed_data)
+ .perform();
+ }
+
+ public void set_contact_key(Jid jid, string key) {
+ contact_key_table.upsert()
+ .value(contact_key_table.jid, jid.to_string(), true)
+ .value(contact_key_table.key, key)
+ .perform();
+ }
+
+ public string? get_contact_key(Jid jid) {
+ return get_contact_key_row(jid)[contact_key_table.key];
+ }
+
+ public RowOption get_contact_key_row(Jid jid) {
+ return contact_key_table.select({contact_key_table.key})
+ .with(contact_key_table.jid, "=", jid.to_string()).row();
+ }
+
+ public void set_account_key(Account account, string key) {
+ account_setting_table.upsert()
+ .value(account_setting_table.account_id, account.id, true)
+ .value(account_setting_table.key, key)
+ .value_null(account_setting_table.signed_data)
+ .value_null(account_setting_table.sig)
+ .perform();
+ }
+
+ public void set_account_signature(Account account, string signed_data, string sig) {
+ account_setting_table.update()
+ .with(account_setting_table.account_id, "=", account.id)
+ .set(account_setting_table.signed_data, signed_data)
+ .set(account_setting_table.sig, sig)
+ .perform();
+ }
+
+ public string? get_account_signature(Account account, string signed_data) {
+ return account_setting_table.select({account_setting_table.sig})
+ .with(account_setting_table.account_id, "=", account.id)
+ .with(account_setting_table.signed_data, "=", signed_data)[account_setting_table.sig];
+ }
+
+ public string? get_account_key(Account account) {
+ return account_setting_table.select({account_setting_table.key})
+ .with(account_setting_table.account_id, "=", account.id)[account_setting_table.key];
+ }
+
+ public override void migrate(long oldVersion) {
+ if (oldVersion < 1) {
+ contact_key_table.migrate_from_v0(this);
+ }
+ }
+}
+
+}
diff --git a/main/src/plugins/openpgp/encryption_list_entry.vala b/main/src/plugins/openpgp/encryption_list_entry.vala
new file mode 100644
index 00000000..cf5da8c4
--- /dev/null
+++ b/main/src/plugins/openpgp/encryption_list_entry.vala
@@ -0,0 +1,72 @@
+using Gee;
+using Gtk;
+
+using Dino.Entities;
+using Xmpp;
+
+namespace Dino.Plugins.OpenPgp {
+
+private class EncryptionListEntry : Plugins.EncryptionListEntry, Object {
+
+ private StreamInteractor stream_interactor;
+ private Database db;
+
+ public EncryptionListEntry(StreamInteractor stream_interactor, Database db) {
+ this.stream_interactor = stream_interactor;
+ this.db = db;
+ }
+
+ public Entities.Encryption encryption { get {
+ return Encryption.PGP;
+ }}
+
+ public string name { get {
+ return "OpenPGP";
+ }}
+
+ public Object? get_encryption_icon(Entities.Conversation conversation, ContentItem content_item) {
+ return null;
+ }
+
+ public string? get_encryption_icon_name(Entities.Conversation conversation, ContentItem content_item) {
+ return null;
+ }
+
+ public void encryption_activated(Entities.Conversation conversation, Plugins.SetInputFieldStatus input_status_callback) {
+ try {
+ GPGHelper.get_public_key(db.get_account_key(conversation.account) ?? "");
+ } catch (Error e) {
+ input_status_callback(new Plugins.InputFieldStatus("You didn't configure OpenPGP for this account. You can do that in the Accounts Dialog.", Plugins.InputFieldStatus.MessageType.ERROR, Plugins.InputFieldStatus.InputState.NO_SEND));
+ return;
+ }
+
+ if (conversation.type_ == Conversation.Type.CHAT) {
+ string? key_id = stream_interactor.get_module(Manager.IDENTITY).get_key_id(conversation.account, conversation.counterpart);
+ if (key_id == null) {
+ input_status_callback(new Plugins.InputFieldStatus("This contact does not support %s encryption.".printf("OpenPGP"), Plugins.InputFieldStatus.MessageType.ERROR, Plugins.InputFieldStatus.InputState.NO_SEND));
+ return;
+ }
+ try {
+ GPGHelper.get_keylist(key_id);
+ } catch (Error e) {
+ input_status_callback(new Plugins.InputFieldStatus("This contact's OpenPGP key is not in your keyring.", Plugins.InputFieldStatus.MessageType.ERROR, Plugins.InputFieldStatus.InputState.NO_SEND));
+ }
+ } else if (conversation.type_ == Conversation.Type.GROUPCHAT) {
+ Gee.List<Jid> muc_jids = new Gee.ArrayList<Jid>();
+ Gee.List<Jid>? occupants = stream_interactor.get_module(MucManager.IDENTITY).get_occupants(conversation.counterpart, conversation.account);
+ if (occupants != null) muc_jids.add_all(occupants);
+ Gee.List<Jid>? offline_members = stream_interactor.get_module(MucManager.IDENTITY).get_offline_members(conversation.counterpart, conversation.account);
+ if (offline_members != null) muc_jids.add_all(offline_members);
+
+ foreach (Jid jid in muc_jids) {
+ string? key_id = stream_interactor.get_module(Manager.IDENTITY).get_key_id(conversation.account, jid);
+ if (key_id == null) {
+ input_status_callback(new Plugins.InputFieldStatus("A member's OpenPGP key is not in your keyring: %s / %s.".printf(jid.to_string(), key_id), Plugins.InputFieldStatus.MessageType.ERROR, Plugins.InputFieldStatus.InputState.NO_SEND));
+ return;
+ }
+ }
+ }
+ }
+}
+
+}
diff --git a/main/src/plugins/openpgp/encryption_preferences_entry.vala b/main/src/plugins/openpgp/encryption_preferences_entry.vala
new file mode 100644
index 00000000..b03f6acd
--- /dev/null
+++ b/main/src/plugins/openpgp/encryption_preferences_entry.vala
@@ -0,0 +1,82 @@
+using Adw;
+using Dino.Entities;
+using Gtk;
+
+namespace Dino.Plugins.OpenPgp {
+
+ public class PgpPreferencesEntry : Plugins.EncryptionPreferencesEntry {
+
+ private Plugin plugin;
+
+ public PgpPreferencesEntry(Plugin plugin) {
+ this.plugin = plugin;
+ }
+
+ public override Object? get_widget(Account account, WidgetType type) {
+ if (type != WidgetType.GTK4) return null;
+ StringList string_list = new StringList(null);
+ string_list.append(_("Querying GnuPG"));
+
+ Adw.PreferencesGroup preferences_group = new Adw.PreferencesGroup() { title="OpenPGP" };
+ populate_string_list.begin(account, preferences_group);
+
+ return preferences_group;
+ }
+
+ public override string id { get { return "pgp_preferences_encryption"; }}
+
+ private async void populate_string_list(Account account, Adw.PreferencesGroup preferences_group) {
+ var keys = yield get_pgp_keys();
+
+ if (keys == null) {
+ preferences_group.add(new Adw.ActionRow() { title=_("Announce key"), subtitle=_("Error in GnuPG") });
+ return;
+ }
+ if (keys.size == 0) {
+ preferences_group.add(new Adw.ActionRow() { title=_("Announce key"), subtitle= _("No keys available. Generate one!") });
+ return;
+ }
+
+ StringList string_list = new StringList(null);
+ var drop_down = new Adw.ComboRow() { title = _("Announce key") };
+ drop_down.model = string_list;
+ preferences_group.add(drop_down);
+
+ string_list.append(_("Disabled"));
+ for (int i = 0; i < keys.size; i++) {
+ string_list.append(@"$(keys[i].uids[0].uid)\n$(keys[i].fpr.substring(24, 16))");
+ if (keys[i].fpr == plugin.db.get_account_key(account)) {
+ drop_down.selected = i + 1;
+ }
+ }
+
+ drop_down.notify["selected"].connect(() => {
+ var key_id = drop_down.selected == 0 ? "" : keys[(int)drop_down.selected - 1].fpr;
+ string? signed_data = null, sig = null;
+ if (plugin.modules.has_key(account)) {
+ plugin.modules[account].set_private_key_id(key_id, ref signed_data, ref sig);
+ }
+ plugin.db.set_account_key(account, key_id);
+ if (signed_data != null && sig != null) {
+ plugin.db.set_account_signature(account, signed_data, sig);
+ }
+ });
+ }
+
+ private static async Gee.List<GPG.Key> get_pgp_keys() {
+ Gee.List<GPG.Key> keys = null;
+ SourceFunc callback = get_pgp_keys.callback;
+ new Thread<void*> (null, () => { // Querying GnuPG might take some time
+ try {
+ keys = GPGHelper.get_keylist(null, true);
+ } catch (Error e) {
+ warning(e.message);
+ }
+ Idle.add((owned)callback);
+ return null;
+ });
+ yield;
+ return keys;
+ }
+ }
+} \ No newline at end of file
diff --git a/main/src/plugins/openpgp/file_transfer/file_decryptor.vala b/main/src/plugins/openpgp/file_transfer/file_decryptor.vala
new file mode 100644
index 00000000..2deb5823
--- /dev/null
+++ b/main/src/plugins/openpgp/file_transfer/file_decryptor.vala
@@ -0,0 +1,50 @@
+using Dino.Entities;
+
+namespace Dino.Plugins.OpenPgp {
+
+public class PgpFileDecryptor : FileDecryptor, Object {
+
+ public Encryption get_encryption() {
+ return Encryption.PGP;
+ }
+
+ public FileReceiveData prepare_get_meta_info(Conversation conversation, FileTransfer file_transfer, FileReceiveData receive_data) {
+ return receive_data;
+ }
+
+ public FileMeta prepare_download_file(Conversation conversation, FileTransfer file_transfer, FileReceiveData receive_data, FileMeta file_meta) {
+ return file_meta;
+ }
+
+ public bool can_decrypt_file(Conversation conversation, FileTransfer file_transfer, FileReceiveData receive_data) {
+ return file_transfer.file_name.has_suffix("pgp") ||
+ (file_transfer.content_type != null && file_transfer.content_type.get_mime_type() == "application/pgp-encrypted");
+ }
+
+ public async InputStream decrypt_file(InputStream encrypted_stream, Conversation conversation, FileTransfer file_transfer, FileReceiveData receive_data) throws FileReceiveError {
+ try {
+ uint8[] buf = new uint8[256];
+ ByteArray data = new ByteArray();
+ size_t len = -1;
+ do {
+ len = yield encrypted_stream.read_async(buf);
+ data.append(buf[0:len]);
+ } while(len > 0);
+
+ GPGHelper.DecryptedData clear_data = GPGHelper.decrypt_data(data.data);
+ file_transfer.encryption = Encryption.PGP;
+ if (clear_data.filename != null && clear_data.filename != "") {
+ debug("Decrypting file %s from %s", clear_data.filename, file_transfer.file_name);
+ file_transfer.file_name = clear_data.filename;
+ } else if (file_transfer.file_name.has_suffix(".pgp")) {
+ debug("Decrypting file %s from %s", file_transfer.file_name.substring(0, file_transfer.file_name.length - 4), file_transfer.file_name);
+ file_transfer.file_name = file_transfer.file_name.substring(0, file_transfer.file_name.length - 4);
+ }
+ return new MemoryInputStream.from_data(clear_data.data, GLib.free);
+ } catch (Error e) {
+ throw new FileReceiveError.DECRYPTION_FAILED("PGP file decryption error: %s".printf(e.message));
+ }
+ }
+}
+
+}
diff --git a/main/src/plugins/openpgp/file_transfer/file_encryptor.vala b/main/src/plugins/openpgp/file_transfer/file_encryptor.vala
new file mode 100644
index 00000000..66e93bd9
--- /dev/null
+++ b/main/src/plugins/openpgp/file_transfer/file_encryptor.vala
@@ -0,0 +1,45 @@
+using Dino.Entities;
+
+namespace Dino.Plugins.OpenPgp {
+
+public class PgpFileEncryptor : Dino.FileEncryptor, Object {
+
+ StreamInteractor stream_interactor;
+
+ public PgpFileEncryptor(StreamInteractor stream_interactor) {
+ this.stream_interactor = stream_interactor;
+ }
+
+ public bool can_encrypt_file(Conversation conversation, FileTransfer file_transfer) {
+ return conversation.encryption == Encryption.PGP;
+ }
+
+ public FileMeta encrypt_file(Conversation conversation, FileTransfer file_transfer) throws FileSendError {
+ FileMeta file_meta = new FileMeta();
+
+ try {
+ GPG.Key[] keys = stream_interactor.get_module(Manager.IDENTITY).get_key_fprs(conversation);
+ uint8[] enc_content = GPGHelper.encrypt_file(file_transfer.get_file().get_path(), keys, GPG.EncryptFlags.ALWAYS_TRUST, file_transfer.file_name);
+ file_transfer.input_stream = new MemoryInputStream.from_data(enc_content, GLib.free);
+ file_transfer.encryption = Encryption.PGP;
+ file_transfer.server_file_name = Xmpp.random_uuid() + ".pgp";
+ file_meta.size = enc_content.length;
+ } catch (Error e) {
+ throw new FileSendError.ENCRYPTION_FAILED("PGP file encryption error: %s".printf(e.message));
+ }
+ debug("Encrypting file %s as %s", file_transfer.file_name, file_transfer.server_file_name);
+
+ return file_meta;
+ }
+
+ public FileSendData? preprocess_send_file(Conversation conversation, FileTransfer file_transfer, FileSendData file_send_data, FileMeta file_meta) {
+ HttpFileSendData? send_data = file_send_data as HttpFileSendData;
+ if (send_data == null) return null;
+
+ send_data.encrypt_message = false;
+
+ return file_send_data;
+ }
+}
+
+}
diff --git a/main/src/plugins/openpgp/gpgme_fix.c b/main/src/plugins/openpgp/gpgme_fix.c
new file mode 100644
index 00000000..a351bcbc
--- /dev/null
+++ b/main/src/plugins/openpgp/gpgme_fix.c
@@ -0,0 +1,12 @@
+#include <src/plugins/openpgp/gpgme_fix.h>
+
+GRecMutex gpgme_global_mutex = {0};
+
+gpgme_key_t gpgme_key_ref_vapi (gpgme_key_t key) {
+ gpgme_key_ref(key);
+ return key;
+}
+gpgme_key_t gpgme_key_unref_vapi (gpgme_key_t key) {
+ gpgme_key_unref(key);
+ return key;
+}
diff --git a/main/src/plugins/openpgp/gpgme_fix.h b/main/src/plugins/openpgp/gpgme_fix.h
new file mode 100644
index 00000000..714614fc
--- /dev/null
+++ b/main/src/plugins/openpgp/gpgme_fix.h
@@ -0,0 +1,12 @@
+#ifndef GPGME_FIX
+#define GPGME_FIX 1
+
+#include <glib.h>
+#include <gpgme.h>
+
+extern GRecMutex gpgme_global_mutex;
+
+gpgme_key_t gpgme_key_ref_vapi (gpgme_key_t key);
+gpgme_key_t gpgme_key_unref_vapi (gpgme_key_t key);
+
+#endif
diff --git a/main/src/plugins/openpgp/gpgme_helper.vala b/main/src/plugins/openpgp/gpgme_helper.vala
new file mode 100644
index 00000000..18d07c06
--- /dev/null
+++ b/main/src/plugins/openpgp/gpgme_helper.vala
@@ -0,0 +1,185 @@
+using Gee;
+using GPG;
+
+namespace GPGHelper {
+
+private static bool initialized = false;
+
+public static string encrypt_armor(string plain, Key[] keys, EncryptFlags flags) throws GLib.Error {
+ global_mutex.lock();
+ try {
+ initialize();
+ Data plain_data = Data.create_from_memory(plain.data, false);
+ Context context = Context.create();
+ context.set_armor(true);
+ Data enc_data = context.op_encrypt(keys, flags, plain_data);
+ return get_string_from_data(enc_data);
+ } finally {
+ global_mutex.unlock();
+ }
+}
+
+public static uint8[] encrypt_file(string uri, Key[] keys, EncryptFlags flags, string file_name) throws GLib.Error {
+ global_mutex.lock();
+ try {
+ initialize();
+ Data plain_data = Data.create_from_file(uri);
+ plain_data.set_file_name(file_name);
+ Context context = Context.create();
+ context.set_armor(true);
+ Data enc_data = context.op_encrypt(keys, flags, plain_data);
+ return get_uint8_from_data(enc_data);
+ } finally {
+ global_mutex.unlock();
+ }
+}
+
+public static string decrypt(string encr) throws GLib.Error {
+ global_mutex.lock();
+ try {
+ initialize();
+ Data enc_data = Data.create_from_memory(encr.data, false);
+ Context context = Context.create();
+ Data dec_data = context.op_decrypt(enc_data);
+ return get_string_from_data(dec_data);
+ } finally {
+ global_mutex.unlock();
+ }
+}
+
+public class DecryptedData {
+ public uint8[] data { get; set; }
+ public string filename { get; set; }
+}
+
+public static DecryptedData decrypt_data(uint8[] data) throws GLib.Error {
+ global_mutex.lock();
+ try {
+ initialize();
+ Data enc_data = Data.create_from_memory(data, false);
+ Context context = Context.create();
+ Data dec_data = context.op_decrypt(enc_data);
+ DecryptResult* dec_res = context.op_decrypt_result();
+ return new DecryptedData() { data=get_uint8_from_data(dec_data), filename=dec_res->file_name};
+ } finally {
+ global_mutex.unlock();
+ }
+}
+
+public static string sign(string plain, SigMode mode, Key? key = null) throws GLib.Error {
+ global_mutex.lock();
+ try {
+ initialize();
+ Data plain_data = Data.create_from_memory(plain.data, false);
+ Context context = Context.create();
+ if (key != null) context.signers_add(key);
+ Data signed_data = context.op_sign(plain_data, mode);
+ return get_string_from_data(signed_data);
+ } finally {
+ global_mutex.unlock();
+ }
+}
+
+public static string? get_sign_key(string signature, string? text) throws GLib.Error {
+ global_mutex.lock();
+ try {
+ initialize();
+ Data sig_data = Data.create_from_memory(signature.data, false);
+ Data text_data;
+ if (text != null) {
+ text_data = Data.create_from_memory(text.data, false);
+ } else {
+ text_data = Data.create();
+ }
+ Context context = Context.create();
+ context.op_verify(sig_data, text_data);
+ VerifyResult* verify_res = context.op_verify_result();
+ if (verify_res == null || verify_res.signatures == null) return null;
+ return verify_res.signatures.fpr;
+ } finally {
+ global_mutex.unlock();
+ }
+}
+
+public static Gee.List<Key> get_keylist(string? pattern = null, bool secret_only = false) throws GLib.Error {
+ global_mutex.lock();
+ try {
+ initialize();
+
+ Gee.List<Key> keys = new ArrayList<Key>();
+ Context context = Context.create();
+ context.op_keylist_start(pattern, secret_only ? 1 : 0);
+ try {
+ while (true) {
+ Key key = context.op_keylist_next();
+ keys.add(key);
+ }
+ } catch (Error e) {
+ if (e.code != GPGError.ErrorCode.EOF) throw e;
+ }
+ context.op_keylist_end();
+ return keys;
+ } finally {
+ global_mutex.unlock();
+ }
+}
+
+public static Key? get_public_key(string sig) throws GLib.Error {
+ return get_key(sig, false);
+}
+
+public static Key? get_private_key(string sig) throws GLib.Error {
+ return get_key(sig, true);
+}
+
+private static Key? get_key(string sig, bool priv) throws GLib.Error {
+ global_mutex.lock();
+ try {
+ initialize();
+ Context context = Context.create();
+ Key key = context.get_key(sig, priv);
+ return key;
+ } finally {
+ global_mutex.unlock();
+ }
+}
+
+private static string get_string_from_data(Data data) {
+ const size_t BUF_SIZE = 256;
+ data.seek(0);
+ uint8[] buf = new uint8[BUF_SIZE + 1];
+ ssize_t len = 0;
+ string res = "";
+ do {
+ len = data.read(buf, BUF_SIZE);
+ if (len > 0) {
+ buf[len] = 0;
+ res += (string) buf;
+ }
+ } while (len > 0);
+ return res;
+}
+
+private static uint8[] get_uint8_from_data(Data data) {
+ const size_t BUF_SIZE = 256;
+ data.seek(0);
+ uint8[] buf = new uint8[BUF_SIZE + 1];
+ ssize_t len = 0;
+ ByteArray res = new ByteArray();
+ do {
+ len = data.read(buf, BUF_SIZE);
+ if (len > 0) {
+ res.append(buf[0:len]);
+ }
+ } while (len > 0);
+ return res.data;
+}
+
+private static void initialize() {
+ if (!initialized) {
+ check_version();
+ initialized = true;
+ }
+}
+
+}
diff --git a/main/src/plugins/openpgp/manager.vala b/main/src/plugins/openpgp/manager.vala
new file mode 100644
index 00000000..23cc93c2
--- /dev/null
+++ b/main/src/plugins/openpgp/manager.vala
@@ -0,0 +1,123 @@
+using Gee;
+using Xmpp;
+
+using Xmpp;
+using Dino.Entities;
+
+namespace Dino.Plugins.OpenPgp {
+
+public class Manager : StreamInteractionModule, Object {
+ public static ModuleIdentity<Manager> IDENTITY = new ModuleIdentity<Manager>("pgp_manager");
+ public string id { get { return IDENTITY.id; } }
+
+ public const string MESSAGE_ENCRYPTED = "pgp";
+
+ private StreamInteractor stream_interactor;
+ private Database db;
+ private ReceivedMessageListener received_message_listener = new ReceivedMessageListener();
+
+ public static void start(StreamInteractor stream_interactor, Database db) {
+ Manager m = new Manager(stream_interactor, db);
+ stream_interactor.add_module(m);
+ }
+
+ private Manager(StreamInteractor stream_interactor, Database db) {
+ this.stream_interactor = stream_interactor;
+ this.db = db;
+
+ stream_interactor.account_added.connect(on_account_added);
+ stream_interactor.get_module(MessageProcessor.IDENTITY).received_pipeline.connect(received_message_listener);
+ stream_interactor.get_module(MessageProcessor.IDENTITY).pre_message_send.connect(check_encypt);
+ }
+
+ public GPG.Key[] get_key_fprs(Conversation conversation) throws Error {
+ Gee.List<string> keys = new Gee.ArrayList<string>();
+ keys.add(db.get_account_key(conversation.account));
+ if (conversation.type_ == Conversation.Type.GROUPCHAT) {
+ Gee.List<Jid> muc_jids = new Gee.ArrayList<Jid>();
+ Gee.List<Jid>? occupants = stream_interactor.get_module(MucManager.IDENTITY).get_occupants(conversation.counterpart, conversation.account);
+ if (occupants != null) muc_jids.add_all(occupants);
+ Gee.List<Jid>? offline_members = stream_interactor.get_module(MucManager.IDENTITY).get_offline_members(conversation.counterpart, conversation.account);
+ if (occupants != null) muc_jids.add_all(offline_members);
+
+ foreach (Jid jid in muc_jids) {
+ string? key_id = stream_interactor.get_module(Manager.IDENTITY).get_key_id(conversation.account, jid);
+ if (key_id != null && GPGHelper.get_keylist(key_id).size > 0 && !keys.contains(key_id)) {
+ keys.add(key_id);
+ }
+ }
+ } else {
+ string? key_id = get_key_id(conversation.account, conversation.counterpart);
+ if (key_id != null) {
+ keys.add(key_id);
+ }
+ }
+ GPG.Key[] gpgkeys = new GPG.Key[keys.size];
+ for (int i = 0; i < keys.size; i++) {
+ try {
+ GPG.Key key = GPGHelper.get_public_key(keys[i]);
+ if (key != null) gpgkeys[i] = key;
+ } catch (Error e) {}
+ }
+
+ return gpgkeys;
+ }
+
+ private void check_encypt(Entities.Message message, Xmpp.MessageStanza message_stanza, Conversation conversation) {
+ try {
+ if (message.encryption == Encryption.PGP) {
+ GPG.Key[] keys = get_key_fprs(conversation);
+ XmppStream? stream = stream_interactor.get_stream(conversation.account);
+ if (stream != null) {
+ bool encrypted = stream.get_module(Module.IDENTITY).encrypt(message_stanza, keys);
+ if (!encrypted) message.marked = Entities.Message.Marked.WONTSEND;
+ }
+ }
+ } catch (Error e) {
+ message.marked = Entities.Message.Marked.WONTSEND;
+ }
+ }
+
+ public string? get_key_id(Account account, Jid jid) {
+ Jid search_jid = stream_interactor.get_module(MucManager.IDENTITY).is_groupchat_occupant(jid, account) ? jid : jid.bare_jid;
+ Qlite.RowOption key_row = db.get_contact_key_row(search_jid);
+ if (!key_row.is_present()) return null;
+ string? key_id = key_row.get(db.contact_key_table.key);
+ if (key_id != null) return key_id;
+ string? sig = key_row.get(db.contact_key_table.sig);
+ string? signed_data = key_row.get(db.contact_key_table.signed_data);
+ if (sig == null || signed_data == null) return null;
+ key_id = get_sign_key(sig, signed_data);
+ if (key_id != null) {
+ db.set_contact_key(search_jid, key_id);
+ }
+ return key_id;
+ }
+
+ private void on_account_added(Account account) {
+ stream_interactor.module_manager.get_module(account, Module.IDENTITY).received_jid_presence_signature.connect((stream, jid, sig, signed_data) => {
+ on_jid_signature_received(account, jid, sig, signed_data);
+ });
+ }
+
+ private void on_jid_signature_received(Account account, Jid jid, string sig, string signed_data) {
+ Jid set_jid = stream_interactor.get_module(MucManager.IDENTITY).is_groupchat_occupant(jid, account) ? jid : jid.bare_jid;
+ db.set_contact_signature(set_jid, sig, signed_data);
+ }
+
+ private class ReceivedMessageListener : MessageListener {
+
+ public string[] after_actions_const = new string[]{ };
+ public override string action_group { get { return "DECRYPT"; } }
+ public override string[] after_actions { get { return after_actions_const; } }
+
+ public override async bool run(Entities.Message message, Xmpp.MessageStanza stanza, Conversation conversation) {
+ if (MessageFlag.get_flag(stanza) != null && MessageFlag.get_flag(stanza).decrypted) {
+ message.encryption = Encryption.PGP;
+ }
+ return false;
+ }
+ }
+}
+
+}
diff --git a/main/src/plugins/openpgp/plugin.vala b/main/src/plugins/openpgp/plugin.vala
new file mode 100644
index 00000000..67b94455
--- /dev/null
+++ b/main/src/plugins/openpgp/plugin.vala
@@ -0,0 +1,47 @@
+using Gee;
+
+using Dino.Entities;
+
+namespace Dino.Plugins.OpenPgp {
+
+public class Plugin : Plugins.RootInterface, Object {
+ public Dino.Application app;
+ public Database db;
+ public HashMap<Account, Module> modules = new HashMap<Account, Module>(Account.hash_func, Account.equals_func);
+
+ private EncryptionListEntry list_entry;
+ private ContactDetailsProvider contact_details_provider;
+
+ public void registered(Dino.Application app) {
+ this.app = app;
+ this.db = new Database(Path.build_filename(Application.get_storage_dir(), "pgp.db"));
+ this.list_entry = new EncryptionListEntry(app.stream_interactor, db);
+ this.contact_details_provider = new ContactDetailsProvider(app.stream_interactor);
+
+ app.plugin_registry.register_encryption_list_entry(list_entry);
+ app.plugin_registry.register_encryption_preferences_entry(new PgpPreferencesEntry(this));
+ app.plugin_registry.register_contact_details_entry(contact_details_provider);
+ app.stream_interactor.module_manager.initialize_account_modules.connect(on_initialize_account_modules);
+
+ Manager.start(app.stream_interactor, db);
+ app.stream_interactor.get_module(FileManager.IDENTITY).add_file_encryptor(new PgpFileEncryptor(app.stream_interactor));
+ app.stream_interactor.get_module(FileManager.IDENTITY).add_file_decryptor(new PgpFileDecryptor());
+ JingleFileHelperRegistry.instance.add_encryption_helper(Encryption.PGP, new JingleFileEncryptionHelperTransferOnly());
+ }
+
+ public void shutdown() { }
+
+ private void on_initialize_account_modules(Account account, ArrayList<Xmpp.XmppStreamModule> modules) {
+ string signed_data = "";
+ string? sig = db.get_account_signature(account, signed_data);
+ bool sig_was_unknown = sig == null;
+ Module module = new Module(db.get_account_key(account), ref signed_data, ref sig);
+ if (sig_was_unknown && sig != null) {
+ db.set_account_signature(account, signed_data, sig);
+ }
+ this.modules[account] = module;
+ modules.add(module);
+ }
+}
+
+}
diff --git a/main/src/plugins/openpgp/stream_module.vala b/main/src/plugins/openpgp/stream_module.vala
new file mode 100644
index 00000000..9985df26
--- /dev/null
+++ b/main/src/plugins/openpgp/stream_module.vala
@@ -0,0 +1,159 @@
+using GPG;
+
+using Xmpp;
+
+namespace Dino.Plugins.OpenPgp {
+ private const string NS_URI = "jabber:x";
+ private const string NS_URI_ENCRYPTED = NS_URI + ":encrypted";
+ private const string NS_URI_SIGNED = NS_URI + ":signed";
+
+ public class Module : XmppStreamModule {
+ public static Xmpp.ModuleIdentity<Module> IDENTITY = new Xmpp.ModuleIdentity<Module>(NS_URI, "0027_current_pgp_usage");
+
+ public signal void received_jid_presence_signature(XmppStream stream, Jid jid, string sig, string signed_data);
+
+ private string? signed_status = null;
+ private Key? own_key = null;
+ private ReceivedPipelineDecryptListener received_pipeline_decrypt_listener = new ReceivedPipelineDecryptListener();
+
+ public Module(string? own_key_id = null, ref string? signed_data, ref string? sig) {
+ set_private_key_id(own_key_id, ref signed_data, ref sig);
+ }
+
+ public void set_private_key_id(string? own_key_id, ref string? signed_data, ref string? sig) {
+ if (own_key_id != null && sig == null) {
+ try {
+ own_key = GPGHelper.get_private_key(own_key_id);
+ if (own_key == null) warning("Can't get PGP private key");
+ } catch (Error e) { }
+ if (own_key != null) {
+ if (signed_data == null) signed_data = "";
+ sig = gpg_sign(signed_data, own_key);
+ }
+ }
+ signed_status = own_key_id != null ? sig : null;
+ }
+
+ public bool encrypt(MessageStanza message, GPG.Key[] keys) {
+ string? enc_body = gpg_encrypt(message.body, keys);
+ if (enc_body != null) {
+ message.stanza.put_node(new StanzaNode.build("x", NS_URI_ENCRYPTED).add_self_xmlns().put_node(new StanzaNode.text(enc_body)));
+ message.body = "[This message is OpenPGP encrypted (see XEP-0027)]";
+ Xep.ExplicitEncryption.add_encryption_tag_to_message(message, NS_URI_ENCRYPTED);
+ return true;
+ }
+ return false;
+ }
+
+ public override void attach(XmppStream stream) {
+ stream.get_module(Presence.Module.IDENTITY).received_presence.connect(on_received_presence);
+ stream.get_module(Presence.Module.IDENTITY).pre_send_presence_stanza.connect(on_pre_send_presence_stanza);
+ stream.get_module(MessageModule.IDENTITY).received_pipeline.connect(received_pipeline_decrypt_listener);
+ }
+
+ public override void detach(XmppStream stream) {
+ stream.get_module(Presence.Module.IDENTITY).received_presence.disconnect(on_received_presence);
+ stream.get_module(Presence.Module.IDENTITY).pre_send_presence_stanza.disconnect(on_pre_send_presence_stanza);
+ stream.get_module(MessageModule.IDENTITY).received_pipeline.disconnect(received_pipeline_decrypt_listener);
+ }
+
+ public override string get_ns() { return NS_URI; }
+ public override string get_id() { return IDENTITY.id; }
+
+ private void on_received_presence(XmppStream stream, Presence.Stanza presence) {
+ StanzaNode x_node = presence.stanza.get_subnode("x", NS_URI_SIGNED);
+ if (x_node == null) return;
+ string? sig = x_node.get_string_content();
+ if (sig == null) return;
+ string signed_data = presence.status == null ? "" : presence.status;
+ received_jid_presence_signature(stream, presence.from, sig, signed_data);
+ }
+
+ private void on_pre_send_presence_stanza(XmppStream stream, Presence.Stanza presence) {
+ if (presence.type_ == Presence.Stanza.TYPE_AVAILABLE && signed_status != null) {
+ presence.stanza.put_node(new StanzaNode.build("x", NS_URI_SIGNED).add_self_xmlns().put_node(new StanzaNode.text(signed_status)));
+ }
+ }
+
+ private static string? gpg_encrypt(string plain, GPG.Key[] keys) {
+ string encr;
+ try {
+ encr = GPGHelper.encrypt_armor(plain, keys, GPG.EncryptFlags.ALWAYS_TRUST);
+ } catch (Error e) {
+ return null;
+ }
+ int encryption_start = encr.index_of("\n\n") + 2;
+ return encr.substring(encryption_start, encr.length - "\n-----END PGP MESSAGE-----".length - encryption_start);
+ }
+
+ private static string? gpg_sign(string str, Key key) {
+ string signed;
+ try {
+ signed = GPGHelper.sign(str, GPG.SigMode.CLEAR, key);
+ } catch (Error e) {
+ return null;
+ }
+ int signature_start = signed.index_of("-----BEGIN PGP SIGNATURE-----");
+ signature_start = signed.index_of("\n\n", signature_start) + 2;
+ return signed.substring(signature_start, signed.length - "\n-----END PGP SIGNATURE-----".length - signature_start);
+ }
+ }
+
+ public class MessageFlag : Xmpp.MessageFlag {
+ public const string id = "pgp";
+
+ public bool decrypted = false;
+
+ public static MessageFlag? get_flag(MessageStanza message) {
+ return (MessageFlag) message.get_flag(NS_URI, id);
+ }
+
+ public override string get_ns() { return NS_URI; }
+ public override string get_id() { return id; }
+ }
+
+public class ReceivedPipelineDecryptListener : StanzaListener<MessageStanza> {
+
+ private string[] after_actions_const = {"MODIFY_BODY"};
+
+ public override string action_group { get { return "ENCRYPT_BODY"; } }
+ public override string[] after_actions { get { return after_actions_const; } }
+
+ public override async bool run(XmppStream stream, MessageStanza message) {
+ string? encrypted = get_cyphertext(message);
+ if (encrypted != null) {
+ MessageFlag flag = new MessageFlag();
+ message.add_flag(flag);
+ string? decrypted = yield gpg_decrypt(encrypted);
+ if (decrypted != null) {
+ flag.decrypted = true;
+ message.body = decrypted;
+ }
+ }
+ return false;
+ }
+
+ private static async string? gpg_decrypt(string enc) {
+ SourceFunc callback = gpg_decrypt.callback;
+ string? res = null;
+ new Thread<void*> (null, () => {
+ string armor = "-----BEGIN PGP MESSAGE-----\n\n" + enc + "\n-----END PGP MESSAGE-----";
+ try {
+ res = GPGHelper.decrypt(armor);
+ } catch (Error e) {
+ res = null;
+ }
+ Idle.add((owned) callback);
+ return null;
+ });
+ yield;
+ return res;
+ }
+
+ private string? get_cyphertext(MessageStanza message) {
+ StanzaNode? x_node = message.stanza.get_subnode("x", NS_URI_ENCRYPTED);
+ return x_node == null ? null : x_node.get_string_content();
+ }
+}
+
+}
diff --git a/main/src/plugins/openpgp/util.vala b/main/src/plugins/openpgp/util.vala
new file mode 100644
index 00000000..3c7a7594
--- /dev/null
+++ b/main/src/plugins/openpgp/util.vala
@@ -0,0 +1,29 @@
+using Gtk;
+
+using Dino.Entities;
+using Xmpp.Util;
+
+namespace Dino.Plugins.OpenPgp {
+
+public static string markup_id(string s, bool is_fingerprint) {
+ string markup = is_fingerprint ? "" : "0x";
+ for (int i = 0; i < s.length; i += 4) {
+ string four_chars = s.substring(i, 4).down();
+
+ if (i == 4 * 5) markup += "\n";
+ markup += four_chars;
+ if (is_fingerprint) markup += " ";
+ }
+ return "<span font_family='monospace' font='9'>" + markup + "</span>";
+}
+
+private static string? get_sign_key(string sig, string signed_text) {
+ string armor = "-----BEGIN PGP MESSAGE-----\n\n" + sig + "\n-----END PGP MESSAGE-----";
+ string? sign_key = null;
+ try {
+ sign_key = GPGHelper.get_sign_key(armor, signed_text);
+ } catch (Error e) { }
+ return sign_key;
+}
+
+}
diff --git a/main/src/plugins/rtp/codec_util.vala b/main/src/plugins/rtp/codec_util.vala
new file mode 100644
index 00000000..9f21f5a6
--- /dev/null
+++ b/main/src/plugins/rtp/codec_util.vala
@@ -0,0 +1,418 @@
+using Gee;
+using Xmpp;
+using Xmpp.Xep;
+
+public class Dino.Plugins.Rtp.CodecUtil {
+ private Set<string> supported_elements = new HashSet<string>();
+ private Set<string> unsupported_elements = new HashSet<string>();
+
+ public static Gst.Caps get_caps(string media, JingleRtp.PayloadType payload_type, bool incoming) {
+ Gst.Caps caps = new Gst.Caps.simple("application/x-rtp",
+ "media", typeof(string), media,
+ "payload", typeof(int), payload_type.id);
+ //"channels", typeof(int), payloadType.channels,
+ //"max-ptime", typeof(int), payloadType.maxptime);
+ unowned Gst.Structure s = caps.get_structure(0);
+ if (payload_type.clockrate != 0) {
+ s.set("clock-rate", typeof(int), payload_type.clockrate);
+ }
+ if (payload_type.name != null) {
+ s.set("encoding-name", typeof(string), payload_type.name.up());
+ }
+ if (incoming) {
+ foreach (JingleRtp.RtcpFeedback rtcp_fb in payload_type.rtcp_fbs) {
+ if (rtcp_fb.subtype == null) {
+ s.set(@"rtcp-fb-$(rtcp_fb.type_)", typeof(bool), true);
+ } else {
+ s.set(@"rtcp-fb-$(rtcp_fb.type_)-$(rtcp_fb.subtype)", typeof(bool), true);
+ }
+ }
+ }
+ return caps;
+ }
+
+ public static string? get_codec_from_payload(string media, JingleRtp.PayloadType payload_type) {
+ if (payload_type.name != null) return payload_type.name.down();
+ if (media == "audio") {
+ switch (payload_type.id) {
+ case 0:
+ return "pcmu";
+ case 8:
+ return "pcma";
+ }
+ }
+ return null;
+ }
+
+ public static string? get_media_type_from_payload(string media, JingleRtp.PayloadType payload_type) {
+ return get_media_type(media, get_codec_from_payload(media, payload_type));
+ }
+
+ public static string? get_media_type(string media, string? codec) {
+ if (codec == null) return null;
+ if (media == "audio") {
+ switch (codec) {
+ case "pcma":
+ return "audio/x-alaw";
+ case "pcmu":
+ return "audio/x-mulaw";
+ }
+ }
+ return @"$media/x-$codec";
+ }
+
+ public static string? get_rtp_pay_element_name_from_payload(string media, JingleRtp.PayloadType payload_type) {
+ return get_pay_candidate(media, get_codec_from_payload(media, payload_type));
+ }
+
+ public static string? get_pay_candidate(string media, string? codec) {
+ if (codec == null) return null;
+ return @"rtp$(codec)pay";
+ }
+
+ public static string? get_rtp_depay_element_name_from_payload(string media, JingleRtp.PayloadType payload_type) {
+ return get_depay_candidate(media, get_codec_from_payload(media, payload_type));
+ }
+
+ public static string? get_depay_candidate(string media, string? codec) {
+ if (codec == null) return null;
+ return @"rtp$(codec)depay";
+ }
+
+ public static string[] get_encode_candidates(string media, string? codec) {
+ if (codec == null) return new string[0];
+ if (media == "audio") {
+ switch (codec) {
+ case "opus":
+ return new string[] {"opusenc"};
+ case "speex":
+ return new string[] {"speexenc"};
+ case "pcma":
+ return new string[] {"alawenc"};
+ case "pcmu":
+ return new string[] {"mulawenc"};
+ case "g722":
+ return new string[] {"avenc_g722"};
+ }
+ } else if (media == "video") {
+ switch (codec) {
+ case "h264":
+ return new string[] {
+#if ENABLE_MSDK
+ "msdkh264enc",
+#endif
+#if ENABLE_VAAPI
+ "vaapih264enc",
+#endif
+ "x264enc"
+ };
+ case "vp9":
+ return new string[] {
+#if ENABLE_MSDK
+ "msdkvp9enc",
+#endif
+#if ENABLE_VAAPI
+ "vaapivp9enc",
+#endif
+ "vp9enc"
+ };
+ case "vp8":
+ return new string[] {
+#if ENABLE_MSDK
+ "msdkvp8enc",
+#endif
+#if ENABLE_VAAPI
+ "vaapivp8enc",
+#endif
+ "vp8enc"
+ };
+ }
+ }
+ return new string[0];
+ }
+
+ public static string[] get_decode_candidates(string media, string? codec) {
+ if (codec == null) return new string[0];
+ if (media == "audio") {
+ switch (codec) {
+ case "opus":
+ return new string[] {"opusdec"};
+ case "speex":
+ return new string[] {"speexdec"};
+ case "pcma":
+ return new string[] {"alawdec"};
+ case "pcmu":
+ return new string[] {"mulawdec"};
+ case "g722":
+ return new string[] {"avdec_g722"};
+ }
+ } else if (media == "video") {
+ switch (codec) {
+ case "h264":
+ return new string[] {
+#if ENABLE_MSDK
+ "msdkh264dec",
+#endif
+#if ENABLE_VAAPI
+ "vaapih264dec",
+#endif
+ null
+ };
+ case "vp9":
+ return new string[] {
+#if ENABLE_MSDK
+ "msdkvp9dec",
+#endif
+#if ENABLE_VAAPI
+ "vaapivp9dec",
+#endif
+ "vp9dec"
+ };
+ case "vp8":
+ return new string[] {
+#if ENABLE_MSDK
+ "msdkvp8dec",
+#endif
+#if ENABLE_VAAPI
+ "vaapivp8dec",
+#endif
+ "vp8dec"
+ };
+ }
+ }
+ return new string[0];
+ }
+
+ public static string? get_encode_prefix(string media, string codec, string encode, JingleRtp.PayloadType? payload_type) {
+ if (encode == "msdkh264enc") return "capsfilter caps=video/x-raw,format=NV12 ! ";
+ if (encode == "vaapih264enc") return "capsfilter caps=video/x-raw,format=NV12 ! ";
+ return null;
+ }
+
+ public static string? get_encode_args(string media, string codec, string encode, JingleRtp.PayloadType? payload_type) {
+ // H264
+ if (encode == "msdkh264enc") return @" rate-control=vbr";
+ if (encode == "vaapih264enc") return @" rate-control=vbr";
+ if (encode == "x264enc") return @" byte-stream=1 speed-preset=ultrafast tune=zerolatency bframes=0 cabac=false dct8x8=false";
+
+ // VP8
+ if (encode == "vaapivp8enc" || encode == "msdkvp8enc") return " rate-control=vbr target-percentage=90";
+ if (encode == "vp8enc") return " deadline=1 error-resilient=3 lag-in-frames=0 resize-allowed=true threads=8 dropframe-threshold=30 end-usage=vbr cpu-used=4";
+
+ // VP9
+ if (encode == "msdkvp9enc" || encode == "vaapivp9enc") return " rate-control=vbr target-percentage=90";
+ if (encode == "vp9enc") return " deadline=1 error-resilient=3 lag-in-frames=0 resize-allowed=true threads=8 dropframe-threshold=30 end-usage=vbr cpu-used=4";
+
+ // OPUS
+ if (encode == "opusenc") {
+ if (payload_type != null && payload_type.parameters.has("useinbandfec", "1")) return " audio-type=voice inband-fec=true";
+ return " audio-type=voice";
+ }
+
+ return null;
+ }
+
+ public static string? get_encode_suffix(string media, string codec, string encode, JingleRtp.PayloadType? payload_type) {
+ // H264
+ if (media == "video" && codec == "h264") return " ! capsfilter caps=video/x-h264,profile=constrained-baseline ! h264parse";
+ if (media == "video" && codec == "vp8" && encode == "vp8enc") return " ! capsfilter caps=video/x-vp8,profile=(string)1";
+ return null;
+ }
+
+ public uint update_bitrate(string media, JingleRtp.PayloadType payload_type, Gst.Element encode_element, uint bitrate) {
+ Gst.Bin? encode_bin = encode_element as Gst.Bin;
+ if (encode_bin == null) return 0;
+ string? codec = get_codec_from_payload(media, payload_type);
+ string? encode_name = get_encode_element_name(media, codec);
+ if (encode_name == null) return 0;
+ Gst.Element encode = encode_bin.get_by_name(@"$(encode_bin.name)_encode");
+
+ switch (encode_name) {
+ case "msdkh264enc":
+ case "vaapih264enc":
+ case "x264enc":
+ case "msdkvp9enc":
+ case "vaapivp9enc":
+ case "msdkvp8enc":
+ case "vaapivp8enc":
+ bitrate = uint.min(2048000, bitrate);
+ encode.set("bitrate", bitrate);
+ return bitrate;
+ case "vp9enc":
+ case "vp8enc":
+ bitrate = uint.min(2147483, bitrate);
+ encode.set("target-bitrate", bitrate * 1024);
+ return bitrate;
+ }
+
+ return 0;
+ }
+
+ public void update_rescale_caps(Gst.Element encode_element, Gst.Caps caps) {
+ Gst.Bin? encode_bin = encode_element as Gst.Bin;
+ if (encode_bin == null) return;
+ Gst.Element rescale_caps = encode_bin.get_by_name(@"$(encode_bin.name)_rescale_caps");
+ rescale_caps.set("caps", caps);
+ }
+
+ public Gst.Caps? get_rescale_caps(Gst.Element encode_element) {
+ Gst.Bin? encode_bin = encode_element as Gst.Bin;
+ if (encode_bin == null) return null;
+ Gst.Element rescale_caps = encode_bin.get_by_name(@"$(encode_bin.name)_rescale_caps");
+ Gst.Caps caps;
+ rescale_caps.get("caps", out caps);
+ return caps;
+ }
+
+ public static string? get_decode_prefix(string media, string codec, string decode, JingleRtp.PayloadType? payload_type) {
+ return null;
+ }
+
+ public static string? get_decode_args(string media, string codec, string decode, JingleRtp.PayloadType? payload_type) {
+ if (decode == "opusdec" && payload_type != null && payload_type.parameters.has("useinbandfec", "1")) return " use-inband-fec=true";
+ if (decode == "vaapivp9dec" || decode == "vaapivp8dec" || decode == "vaapih264dec") return " max-errors=100";
+ if (decode == "vp8dec" || decode == "vp9dec") return " threads=8";
+ return null;
+ }
+
+ public static string? get_decode_suffix(string media, string codec, string encode, JingleRtp.PayloadType? payload_type) {
+ return null;
+ }
+
+ public static string? get_depay_args(string media, string codec, string encode, JingleRtp.PayloadType? payload_type) {
+ if (codec == "vp8") return " wait-for-keyframe=true";
+ return null;
+ }
+
+ public bool is_element_supported(string? element_name) {
+ if (element_name == null) return false;
+ if (unsupported_elements.contains(element_name)) return false;
+ if (supported_elements.contains(element_name)) return true;
+ var test_element = Gst.ElementFactory.make(element_name, @"test-$element_name");
+ if (test_element != null) {
+ supported_elements.add(element_name);
+ return true;
+ } else {
+ warning("%s is not installed or supported on this system", element_name);
+ unsupported_elements.add(element_name);
+ return false;
+ }
+ }
+
+ public string? get_encode_element_name(string media, string? codec) {
+ if (get_pay_element_name(media, codec) == null) return null;
+ foreach (string candidate in get_encode_candidates(media, codec)) {
+ if (is_element_supported(candidate)) return candidate;
+ }
+ return null;
+ }
+
+ public string? get_pay_element_name(string media, string? codec) {
+ string? candidate = get_pay_candidate(media, codec);
+ if (candidate != null && is_element_supported(candidate)) return candidate;
+ return null;
+ }
+
+ public string? get_decode_element_name(string media, string? codec) {
+ if (get_depay_element_name(media, codec) == null) return null;
+ foreach (string candidate in get_decode_candidates(media, codec)) {
+ if (is_element_supported(candidate)) return candidate;
+ }
+ return null;
+ }
+
+ public string? get_depay_element_name(string media, string? codec) {
+ string? candidate = get_depay_candidate(media, codec);
+ if (candidate != null && is_element_supported(candidate)) return candidate;
+ return null;
+ }
+
+ public void mark_element_unsupported(string element_name) {
+ unsupported_elements.add(element_name);
+ }
+
+ public string? get_decode_bin_description(string media, string? codec, JingleRtp.PayloadType? payload_type, string? element_name = null, string? name = null) {
+ if (codec == null) return null;
+ string base_name = name ?? @"encode-$codec-$(Random.next_int())";
+ string? depay = get_depay_element_name(media, codec);
+ string? decode = element_name ?? get_decode_element_name(media, codec);
+ if (depay == null || decode == null) return null;
+ string decode_prefix = get_decode_prefix(media, codec, decode, payload_type) ?? "";
+ string decode_args = get_decode_args(media, codec, decode, payload_type) ?? "";
+ string decode_suffix = get_decode_suffix(media, codec, decode, payload_type) ?? "";
+ string depay_args = get_depay_args(media, codec, decode, payload_type) ?? "";
+ string resample = media == "audio" ? @" ! audioresample name=$(base_name)_resample" : "";
+ return @"queue ! $depay$depay_args name=$(base_name)_rtp_depay ! $decode_prefix$decode$decode_args name=$(base_name)_$(codec)_decode$decode_suffix ! $(media)convert name=$(base_name)_convert$resample";
+ }
+
+ public Gst.Element? get_decode_bin(string media, JingleRtp.PayloadType payload_type, string? name = null) {
+ string? codec = get_codec_from_payload(media, payload_type);
+ string base_name = name ?? @"decode_$(codec)_$(Random.next_int())";
+ string? desc = get_decode_bin_description(media, codec, payload_type, null, base_name);
+ if (desc == null) return null;
+ debug("Pipeline to decode %s %s: %s", media, codec, desc);
+ Gst.Element bin = Gst.parse_bin_from_description(desc, true);
+ bin.name = name;
+ return bin;
+ }
+
+ public string? get_encode_bin_description(string media, string? codec, JingleRtp.PayloadType? payload_type, string? element_name = null, string? name = null) {
+ string? desc1 = get_encode_bin_without_payloader_description(media, codec, payload_type, element_name, name);
+ string? desc2 = get_payloader_bin_description(media, codec, payload_type, name);
+ return @"$desc1 ! $desc2";
+ }
+
+ public string? get_payloader_bin_description(string media, string? codec, JingleRtp.PayloadType? payload_type, string? name = null) {
+ if (codec == null) return null;
+ string base_name = name ?? @"encode_$(codec)_$(Random.next_int())";
+ string? pay = get_pay_element_name(media, codec);
+ if (pay == null) return null;
+ return @"$pay pt=$(payload_type != null ? payload_type.id : 96) name=$(base_name)_rtp_pay";
+ }
+
+ public string? get_encode_bin_without_payloader_description(string media, string? codec, JingleRtp.PayloadType? payload_type, string? element_name = null, string? name = null) {
+ if (codec == null) return null;
+ string base_name = name ?? @"encode_$(codec)_$(Random.next_int())";
+ string? encode = element_name ?? get_encode_element_name(media, codec);
+ if (encode == null) return null;
+ string encode_prefix = get_encode_prefix(media, codec, encode, payload_type) ?? "";
+ string encode_args = get_encode_args(media, codec, encode, payload_type) ?? "";
+ string encode_suffix = get_encode_suffix(media, codec, encode, payload_type) ?? "";
+ string rescale = media == "audio" ? @" ! audioresample name=$(base_name)_resample" : @" ! videoscale name=$(base_name)_rescale ! capsfilter name=$(base_name)_rescale_caps";
+ return @"$(media)convert name=$(base_name)_convert$rescale ! queue ! $encode_prefix$encode$encode_args name=$(base_name)_encode$encode_suffix";
+ }
+
+ public Gst.Element? get_encode_bin(string media, JingleRtp.PayloadType payload_type, string? name = null) {
+ string? codec = get_codec_from_payload(media, payload_type);
+ string base_name = name ?? @"encode_$(codec)_$(Random.next_int())";
+ string? desc = get_encode_bin_description(media, codec, payload_type, null, base_name);
+ if (desc == null) return null;
+ debug("Pipeline to encode %s %s: %s", media, codec, desc);
+ Gst.Element bin = Gst.parse_bin_from_description(desc, true);
+ bin.name = name;
+ return bin;
+ }
+
+ public Gst.Element? get_encode_bin_without_payloader(string media, JingleRtp.PayloadType payload_type, string? name = null) {
+ string? codec = get_codec_from_payload(media, payload_type);
+ string base_name = name ?? @"encode_$(codec)_$(Random.next_int())";
+ string? desc = get_encode_bin_without_payloader_description(media, codec, payload_type, null, base_name);
+ if (desc == null) return null;
+ debug("Pipeline to encode %s %s without payloader: %s", media, codec, desc);
+ Gst.Element bin = Gst.parse_bin_from_description(desc, true);
+ bin.name = name;
+ return bin;
+ }
+
+ public Gst.Element? get_payloader_bin(string media, JingleRtp.PayloadType payload_type, string? name = null) {
+ string? codec = get_codec_from_payload(media, payload_type);
+ string base_name = name ?? @"encode_$(codec)_$(Random.next_int())";
+ string? desc = get_payloader_bin_description(media, codec, payload_type, base_name);
+ if (desc == null) return null;
+ debug("Pipeline to payload %s %s: %s", media, codec, desc);
+ Gst.Element bin = Gst.parse_bin_from_description(desc, true);
+ bin.name = name;
+ return bin;
+ }
+
+}
diff --git a/main/src/plugins/rtp/device.vala b/main/src/plugins/rtp/device.vala
new file mode 100644
index 00000000..bdb597b6
--- /dev/null
+++ b/main/src/plugins/rtp/device.vala
@@ -0,0 +1,592 @@
+using Xmpp.Xep.JingleRtp;
+using Gee;
+
+public enum Dino.Plugins.Rtp.DeviceProtocol {
+ OTHER,
+ PIPEWIRE,
+ V4L2,
+ PULSEAUDIO,
+ ALSA
+}
+
+public class Dino.Plugins.Rtp.Device : MediaDevice, Object {
+ private const int[] common_widths = {320, 352, 416, 480, 640, 960, 1280, 1920, 2560, 3840};
+
+ public Plugin plugin { get; private set; }
+ public CodecUtil codec_util { get { return plugin.codec_util; } }
+ public Gst.Device device { get; private set; }
+
+ public string id { owned get { return device_name; }}
+ public string display_name { owned get { return device_display_name; }}
+ public string? detail_name { owned get {
+ if (device.properties == null) return null;
+ if (device.properties.has_field("alsa.card_name")) return device.properties.get_string("alsa.card_name");
+ if (device.properties.has_field("alsa.name")) return device.properties.get_string("alsa.name");
+ if (device.properties.has_field("alsa.id")) return device.properties.get_string("alsa.id");
+ if (device.properties.has_field("api.v4l2.cap.card")) return device.properties.get_string("api.v4l2.cap.card");
+ return null;
+ }}
+ public string? media { owned get {
+ if (device.has_classes("Audio")) {
+ return "audio";
+ } else if (device.has_classes("Video")) {
+ return "video";
+ } else {
+ return null;
+ }
+ }}
+ public bool incoming { get { return is_sink; } }
+
+ public Gst.Pipeline pipe { get { return plugin.pipe; }}
+ public bool is_source { get { return device.has_classes("Source"); }}
+ public bool is_sink { get { return device.has_classes("Sink"); }}
+ public bool is_monitor { get { return (device.properties != null && device.properties.get_string("device.class") == "monitor") || (protocol == DeviceProtocol.PIPEWIRE && device.has_classes("Stream")); } }
+ public bool is_default { get {
+ if (device.properties == null) return false;
+ bool ret;
+ device.properties.get_boolean("is-default", out ret);
+ return ret;
+ }}
+ public DeviceProtocol protocol { get {
+ if (device.properties == null) return DeviceProtocol.OTHER;
+ if (device.properties.has_name("pulse-proplist")) return DeviceProtocol.PULSEAUDIO;
+ if (device.properties.has_name("pipewire-proplist")) return DeviceProtocol.PIPEWIRE;
+ if (device.properties.has_name("v4l2deviceprovider")) return DeviceProtocol.V4L2;
+ return DeviceProtocol.OTHER;
+ }}
+
+ private string device_name;
+ private string device_display_name;
+
+ private Gst.Caps device_caps;
+ private Gst.Element element;
+ private Gst.Element tee;
+ private Gst.Element dsp;
+ private Gst.Base.Aggregator mixer;
+ private Gst.Element filter;
+ private int links;
+
+ // Codecs
+ private Gee.Map<PayloadType, Gst.Element> codecs = new HashMap<PayloadType, Gst.Element>(PayloadType.hash_func, PayloadType.equals_func);
+ private Gee.Map<PayloadType, Gst.Element> codec_tees = new HashMap<PayloadType, Gst.Element>(PayloadType.hash_func, PayloadType.equals_func);
+
+ // Payloaders
+ private Gee.Map<PayloadType, Gee.Map<uint, Gst.Element>> payloaders = new HashMap<PayloadType, Gee.Map<uint, Gst.Element>>(PayloadType.hash_func, PayloadType.equals_func);
+ private Gee.Map<PayloadType, Gee.Map<uint, Gst.Element>> payloader_tees = new HashMap<PayloadType, Gee.Map<uint, Gst.Element>>(PayloadType.hash_func, PayloadType.equals_func);
+ private Gee.Map<PayloadType, Gee.Map<uint, uint>> payloader_links = new HashMap<PayloadType, Gee.Map<uint, uint>>(PayloadType.hash_func, PayloadType.equals_func);
+
+ // Bitrate
+ private Gee.Map<PayloadType, Gee.List<CodecBitrate>> codec_bitrates = new HashMap<PayloadType, Gee.List<CodecBitrate>>(PayloadType.hash_func, PayloadType.equals_func);
+
+ private class CodecBitrate {
+ public uint bitrate;
+ public int64 timestamp;
+
+ public CodecBitrate(uint bitrate) {
+ this.bitrate = bitrate;
+ this.timestamp = get_monotonic_time();
+ }
+ }
+
+ public Device(Plugin plugin, Gst.Device device) {
+ this.plugin = plugin;
+ update(device);
+ }
+
+ public bool matches(Gst.Device device) {
+ if (this.device.name == device.name) return true;
+ return false;
+ }
+
+ public void update(Gst.Device device) {
+ this.device = device;
+ this.device_name = device.name;
+ this.device_display_name = device.display_name;
+ }
+
+ public Gst.Element? link_sink() {
+ if (!is_sink) return null;
+ if (element == null) create();
+ links++;
+ if (mixer != null) {
+ Gst.Element rate = Gst.ElementFactory.make("audiorate", @"$(id)_rate_$(Random.next_int())");
+ pipe.add(rate);
+ rate.link(mixer);
+ return rate;
+ }
+ if (media == "audio") return filter;
+ return element;
+ }
+
+ public Gst.Element? link_source(PayloadType? payload_type = null, uint ssrc = 0, int seqnum_offset = -1, uint32 timestamp_offset = 0) {
+ if (!is_source) return null;
+ if (element == null) create();
+ links++;
+ if (payload_type != null && ssrc != 0 && tee != null) {
+ bool new_codec = false;
+ string? codec = CodecUtil.get_codec_from_payload(media, payload_type);
+ if (!codecs.has_key(payload_type)) {
+ codecs[payload_type] = codec_util.get_encode_bin_without_payloader(media, payload_type, @"$(id)_$(codec)_encoder");
+ pipe.add(codecs[payload_type]);
+ new_codec = true;
+ }
+ if (!codec_tees.has_key(payload_type)) {
+ codec_tees[payload_type] = Gst.ElementFactory.make("tee", @"$(id)_$(codec)_tee");
+ codec_tees[payload_type].@set("allow-not-linked", true);
+ pipe.add(codec_tees[payload_type]);
+ codecs[payload_type].link(codec_tees[payload_type]);
+ }
+ if (!payloaders.has_key(payload_type)) {
+ payloaders[payload_type] = new HashMap<uint, Gst.Element>();
+ }
+ if (!payloaders[payload_type].has_key(ssrc)) {
+ payloaders[payload_type][ssrc] = codec_util.get_payloader_bin(media, payload_type, @"$(id)_$(codec)_$(ssrc)");
+ var payload = (Gst.RTP.BasePayload) ((Gst.Bin) payloaders[payload_type][ssrc]).get_by_name(@"$(id)_$(codec)_$(ssrc)_rtp_pay");
+ payload.ssrc = ssrc;
+ payload.seqnum_offset = seqnum_offset;
+ if (timestamp_offset != 0) {
+ payload.timestamp_offset = timestamp_offset;
+ }
+ pipe.add(payloaders[payload_type][ssrc]);
+ codec_tees[payload_type].link(payloaders[payload_type][ssrc]);
+ debug("Payload for %s with %s using ssrc %u, seqnum_offset %u, timestamp_offset %u", media, codec, ssrc, seqnum_offset, timestamp_offset);
+ }
+ if (!payloader_tees.has_key(payload_type)) {
+ payloader_tees[payload_type] = new HashMap<uint, Gst.Element>();
+ }
+ if (!payloader_tees[payload_type].has_key(ssrc)) {
+ payloader_tees[payload_type][ssrc] = Gst.ElementFactory.make("tee", @"$(id)_$(codec)_$(ssrc)_tee");
+ payloader_tees[payload_type][ssrc].@set("allow-not-linked", true);
+ pipe.add(payloader_tees[payload_type][ssrc]);
+ payloaders[payload_type][ssrc].link(payloader_tees[payload_type][ssrc]);
+ }
+ if (!payloader_links.has_key(payload_type)) {
+ payloader_links[payload_type] = new HashMap<uint, uint>();
+ }
+ if (!payloader_links[payload_type].has_key(ssrc)) {
+ payloader_links[payload_type][ssrc] = 1;
+ } else {
+ payloader_links[payload_type][ssrc] = payloader_links[payload_type][ssrc] + 1;
+ }
+ if (new_codec) {
+ tee.link(codecs[payload_type]);
+ }
+ return payloader_tees[payload_type][ssrc];
+ }
+ if (tee != null) return tee;
+ return element;
+ }
+
+ private static double get_target_bitrate(Gst.Caps caps) {
+ if (caps == null || caps.get_size() == 0) return uint.MAX;
+ unowned Gst.Structure? that = caps.get_structure(0);
+ int num = 0, den = 0, width = 0, height = 0;
+ if (!that.has_field("width") || !that.get_int("width", out width)) return uint.MAX;
+ if (!that.has_field("height") || !that.get_int("height", out height)) return uint.MAX;
+ if (!that.has_field("framerate")) return uint.MAX;
+ Value framerate = that.get_value("framerate");
+ if (framerate.type() != typeof(Gst.Fraction)) return uint.MAX;
+ num = Gst.Value.get_fraction_numerator(framerate);
+ den = Gst.Value.get_fraction_denominator(framerate);
+ double pxs = ((double)num/(double)den) * (double)width * (double)height;
+ double br = Math.sqrt(Math.sqrt(pxs)) * 100.0 - 3700.0;
+ if (br < 128.0) return 128.0;
+ return br;
+ }
+
+ private Gst.Caps get_active_caps(PayloadType payload_type) {
+ return codec_util.get_rescale_caps(codecs[payload_type]) ?? device_caps;
+ }
+
+ private void apply_caps(PayloadType payload_type, Gst.Caps caps) {
+ plugin.pause();
+ debug("Set scaled caps to %s", caps.to_string());
+ codec_util.update_rescale_caps(codecs[payload_type], caps);
+ plugin.unpause();
+ }
+
+ private void apply_width(PayloadType payload_type, int new_width, uint bitrate) {
+ int device_caps_width, device_caps_height, active_caps_width, device_caps_framerate_num, device_caps_framerate_den;
+ device_caps.get_structure(0).get_int("width", out device_caps_width);
+ device_caps.get_structure(0).get_int("height", out device_caps_height);
+ device_caps.get_structure(0).get_fraction("framerate", out device_caps_framerate_num, out device_caps_framerate_den);
+ Gst.Caps active_caps = get_active_caps(payload_type);
+ if (active_caps != null && active_caps.get_size() > 0) {
+ active_caps.get_structure(0).get_int("width", out active_caps_width);
+ } else {
+ active_caps_width = device_caps_width;
+ }
+ if (new_width == active_caps_width) return;
+ int new_height = device_caps_height * new_width / device_caps_width;
+ if ((new_height % 2) != 0) {
+ new_height += 1;
+ }
+ Gst.Caps new_caps;
+ if (device_caps_framerate_den != 0) {
+ new_caps = new Gst.Caps.simple("video/x-raw", "width", typeof(int), new_width, "height", typeof(int), new_height, "framerate", typeof(Gst.Fraction), device_caps_framerate_num, device_caps_framerate_den, null);
+ } else {
+ new_caps = new Gst.Caps.simple("video/x-raw", "width", typeof(int), new_width, "height", typeof(int), new_height, null);
+ }
+ double required_bitrate = get_target_bitrate(new_caps);
+ debug("Changing resolution width from %d to %d (requires bitrate %f, current target is %u)", active_caps_width, new_width, required_bitrate, bitrate);
+ if (bitrate < required_bitrate && new_width > active_caps_width) return;
+ apply_caps(payload_type, new_caps);
+ }
+
+ public void update_bitrate(PayloadType payload_type, uint bitrate) {
+ if (codecs.has_key(payload_type)) {
+ lock(codec_bitrates);
+ if (!codec_bitrates.has_key(payload_type)) {
+ codec_bitrates[payload_type] = new ArrayList<CodecBitrate>();
+ }
+ codec_bitrates[payload_type].add(new CodecBitrate(bitrate));
+ var remove = new ArrayList<CodecBitrate>();
+ foreach (CodecBitrate rate in codec_bitrates[payload_type]) {
+ if (rate.timestamp < get_monotonic_time() - 5000000L) {
+ remove.add(rate);
+ continue;
+ }
+ if (rate.bitrate < bitrate) {
+ bitrate = rate.bitrate;
+ }
+ }
+ codec_bitrates[payload_type].remove_all(remove);
+ if (media == "video") {
+ if (bitrate < 128) bitrate = 128;
+ Gst.Caps active_caps = get_active_caps(payload_type);
+ double max_bitrate = get_target_bitrate(device_caps) * 2;
+ double current_target_bitrate = get_target_bitrate(active_caps);
+ int device_caps_width, active_caps_width;
+ device_caps.get_structure(0).get_int("width", out device_caps_width);
+ if (active_caps != null && active_caps.get_size() > 0) {
+ active_caps.get_structure(0).get_int("width", out active_caps_width);
+ } else {
+ active_caps_width = device_caps_width;
+ }
+ if (bitrate < 0.75 * current_target_bitrate && active_caps_width > common_widths[0]) {
+ // Lower video resolution
+ int i = 1;
+ for(; i < common_widths.length && common_widths[i] < active_caps_width; i++);if (common_widths[i] != active_caps_width) {
+ debug("Decrease resolution to ensure target bitrate (%u) is in reach (current resolution target bitrate is %f)", bitrate, current_target_bitrate);
+ }
+ apply_width(payload_type, common_widths[i-1], bitrate);
+ } else if (bitrate > 2 * current_target_bitrate && active_caps_width < device_caps_width) {
+ // Higher video resolution
+ int i = 0;
+ for(; i < common_widths.length && common_widths[i] <= active_caps_width; i++);
+ if (common_widths[i] != active_caps_width) {
+ debug("Increase resolution to make use of available bandwidth of target bitrate (%u) (current resolution target bitrate is %f)", bitrate, current_target_bitrate);
+ }
+ if (common_widths[i] > device_caps_width) {
+ // We never scale up, so just stick with what the device gives
+ apply_width(payload_type, device_caps_width, bitrate);
+ } else if (common_widths[i] != active_caps_width) {
+ apply_width(payload_type, common_widths[i], bitrate);
+ }
+ }
+ if (bitrate > max_bitrate) bitrate = (uint) max_bitrate;
+ }
+ codec_util.update_bitrate(media, payload_type, codecs[payload_type], bitrate);
+ unlock(codec_bitrates);
+ }
+ }
+
+ public void unlink(Gst.Element? link = null) {
+ if (links <= 0) {
+ critical("Link count below zero.");
+ return;
+ }
+ if (link != null && is_source && tee != null) {
+ PayloadType payload_type = payloader_tees.first_match((entry) => entry.value.any_match((entry) => entry.value == link)).key;
+ uint ssrc = payloader_tees[payload_type].first_match((entry) => entry.value == link).key;
+ payloader_links[payload_type][ssrc] = payloader_links[payload_type][ssrc] - 1;
+ if (payloader_links[payload_type][ssrc] == 0) {
+ plugin.pause();
+
+ codec_tees[payload_type].unlink(payloaders[payload_type][ssrc]);
+ payloaders[payload_type][ssrc].set_locked_state(true);
+ payloaders[payload_type][ssrc].set_state(Gst.State.NULL);
+ payloaders[payload_type][ssrc].unlink(payloader_tees[payload_type][ssrc]);
+ pipe.remove(payloaders[payload_type][ssrc]);
+ payloaders[payload_type].unset(ssrc);
+ payloader_tees[payload_type][ssrc].set_locked_state(true);
+ payloader_tees[payload_type][ssrc].set_state(Gst.State.NULL);
+ pipe.remove(payloader_tees[payload_type][ssrc]);
+ payloader_tees[payload_type].unset(ssrc);
+
+ payloader_links[payload_type].unset(ssrc);
+ plugin.unpause();
+ }
+ if (payloader_links[payload_type].size == 0) {
+ plugin.pause();
+
+ tee.unlink(codecs[payload_type]);
+ codecs[payload_type].set_locked_state(true);
+ codecs[payload_type].set_state(Gst.State.NULL);
+ codecs[payload_type].unlink(codec_tees[payload_type]);
+ pipe.remove(codecs[payload_type]);
+ codecs.unset(payload_type);
+ codec_tees[payload_type].set_locked_state(true);
+ codec_tees[payload_type].set_state(Gst.State.NULL);
+ pipe.remove(codec_tees[payload_type]);
+ codec_tees.unset(payload_type);
+
+ payloaders.unset(payload_type);
+ payloader_tees.unset(payload_type);
+ payloader_links.unset(payload_type);
+ plugin.unpause();
+ }
+ }
+ if (link != null && is_sink && mixer != null) {
+ plugin.pause();
+ link.set_locked_state(true);
+ Gst.Base.AggregatorPad mixer_sink_pad = (Gst.Base.AggregatorPad) link.get_static_pad("src").get_peer();
+ link.get_static_pad("src").unlink(mixer_sink_pad);
+ mixer_sink_pad.set_active(false);
+ link.set_state(Gst.State.NULL);
+ pipe.remove(link);
+ mixer.release_request_pad(mixer_sink_pad);
+ plugin.unpause();
+ }
+ links--;
+ if (links == 0) {
+ destroy();
+ }
+ }
+
+ private Gst.Caps get_best_caps() {
+ if (media == "audio") {
+ return Gst.Caps.from_string("audio/x-raw,rate=48000,channels=1");
+ } else if (media == "video" && device.caps.get_size() > 0) {
+ int best_index = -1;
+ Value? best_fraction = null;
+ int best_fps = 0;
+ int best_width = 0;
+ int best_height = 0;
+ for (int i = 0; i < device.caps.get_size(); i++) {
+ unowned Gst.Structure? that = device.caps.get_structure(i);
+ unowned Gst.CapsFeatures? features = device.caps.get_features(i);
+ Value? best_fraction_now = null;
+ if (!that.has_name("video/x-raw") || !features.contains("memory:SystemMemory")) continue;
+ int num = 0, den = 0, width = 0, height = 0;
+ if (!that.has_field("framerate")) continue;
+ Value framerate = that.get_value("framerate");
+ if (framerate.type() == typeof(Gst.Fraction)) {
+ num = Gst.Value.get_fraction_numerator(framerate);
+ den = Gst.Value.get_fraction_denominator(framerate);
+ } else if (framerate.type() == typeof(Gst.ValueList)) {
+ for(uint j = 0; j < Gst.ValueList.get_size(framerate); j++) {
+ Value fraction = Gst.ValueList.get_value(framerate, j);
+ int in_num = Gst.Value.get_fraction_numerator(fraction);
+ int in_den = Gst.Value.get_fraction_denominator(fraction);
+ int fps = den > 0 ? (num/den) : 0;
+ int in_fps = in_den > 0 ? (in_num/in_den) : 0;
+ if (in_fps > fps) {
+ best_fraction_now = fraction;
+ num = in_num;
+ den = in_den;
+ }
+ }
+ } else {
+ debug("Unknown type for framerate: %s", framerate.type_name());
+ }
+ if (den == 0) continue;
+ if (!that.has_field("width") || !that.get_int("width", out width)) continue;
+ if (!that.has_field("height") || !that.get_int("height", out height)) continue;
+ int fps = num/den;
+ if (best_fps < fps || best_fps == fps && best_width < width || best_fps == fps && best_width == width && best_height < height) {
+ best_fps = fps;
+ best_width = width;
+ best_height = height;
+ best_index = i;
+ best_fraction = best_fraction_now;
+ }
+ }
+ if (best_index == -1) {
+ // No caps in first round, try without framerate
+ int target_pixel_count = 1280 * 720;
+ double target_pixel_ratio = 16.0 / 9.0;
+ double best_diversion_factor = 0.0;
+
+ for (int i = 0; i < device.caps.get_size(); i++) {
+ unowned Gst.Structure? that = device.caps.get_structure(i);
+ unowned Gst.CapsFeatures? features = device.caps.get_features(i);
+ if (!that.has_name("video/x-raw") || !features.contains("memory:SystemMemory")) continue;
+ int width = 0, height = 0;
+ if (!that.has_field("width") || !that.get_int("width", out width) || width == 0) continue;
+ if (!that.has_field("height") || !that.get_int("height", out height) || height == 0) continue;
+
+ int pixel_count = width * height;
+ double pixel_count_diversion_factor;
+ if (pixel_count > target_pixel_count)
+ pixel_count_diversion_factor = (double)pixel_count / target_pixel_count;
+ else
+ pixel_count_diversion_factor = (double)target_pixel_count / pixel_count;
+
+ double pixel_ratio;
+ if (width > height)
+ pixel_ratio = (double)width / height;
+ else
+ pixel_ratio = (double)height / width;
+
+ double ratio_diversion_factor;
+ if (pixel_ratio > target_pixel_ratio)
+ ratio_diversion_factor = pixel_ratio / target_pixel_ratio;
+ else
+ ratio_diversion_factor = target_pixel_ratio / pixel_ratio;
+
+ // 1.0 is the best possible value. Any diversion from
+ // target_pixel_count or target_pixel_ratio increases it.
+ double diversion_factor = pixel_count_diversion_factor * ratio_diversion_factor;
+
+ if (best_index == -1 || diversion_factor < best_diversion_factor) {
+ best_index = i;
+ best_width = width;
+ best_height = height;
+ best_diversion_factor = diversion_factor;
+ }
+ }
+ }
+ Gst.Caps res = caps_copy_nth(device.caps, best_index);
+ unowned Gst.Structure? that = res.get_structure(0);
+ Value? framerate = that.get_value("framerate");
+ if (framerate != null && framerate.type() == typeof(Gst.ValueList) && best_fraction != null) {
+ that.set_value("framerate", best_fraction);
+ } else if (framerate == null) {
+ // The source does not support framerate negotiation. Just set a
+ // reasonable value. The source might be able to honor it and
+ // should ignore it otherwise.
+ that.@set("framerate", typeof(Gst.Fraction), 30, 1, null);
+ }
+ debug("Selected caps %s", res.to_string());
+ return res;
+ } else if (device.caps.get_size() > 0) {
+ return caps_copy_nth(device.caps, 0);
+ } else {
+ return new Gst.Caps.any();
+ }
+ }
+
+ // Backport from gst_caps_copy_nth added in GStreamer 1.16
+ private static Gst.Caps caps_copy_nth(Gst.Caps source, uint index) {
+ Gst.Caps target = new Gst.Caps.empty();
+ target.flags = source.flags;
+ target.append_structure_full(source.get_structure(index).copy(), source.get_features(index).copy());
+ return target;
+ }
+
+ private void create() {
+ debug("Creating device %s", id);
+ plugin.pause();
+ element = device.create_element(id);
+ if (is_sink) {
+ element.@set("async", false);
+ element.@set("sync", false);
+ }
+ pipe.add(element);
+ device_caps = get_best_caps();
+ if (is_source) {
+ element.@set("do-timestamp", true);
+ filter = Gst.ElementFactory.make("capsfilter", @"caps_filter_$id");
+ filter.@set("caps", device_caps);
+ pipe.add(filter);
+ element.link(filter);
+#if WITH_VOICE_PROCESSOR
+ if (media == "audio" && plugin.echoprobe != null) {
+ dsp = new VoiceProcessor(plugin.echoprobe as EchoProbe, element as Gst.Audio.StreamVolume);
+ dsp.name = @"dsp_$id";
+ pipe.add(dsp);
+ filter.link(dsp);
+ }
+#endif
+ tee = Gst.ElementFactory.make("tee", @"tee_$id");
+ tee.@set("allow-not-linked", true);
+ pipe.add(tee);
+ (dsp ?? filter).link(tee);
+ }
+ if (is_sink && media == "audio") {
+ mixer = (Gst.Base.Aggregator) Gst.ElementFactory.make("audiomixer", @"mixer_$id");
+ pipe.add(mixer);
+ if (plugin.echoprobe != null && !plugin.echoprobe.get_static_pad("src").is_linked()) {
+ mixer.link(plugin.echoprobe);
+ plugin.echoprobe.link(element);
+ } else {
+ filter = Gst.ElementFactory.make("capsfilter", @"caps_filter_$id");
+ filter.@set("caps", device_caps);
+ pipe.add(filter);
+ mixer.link(filter);
+ filter.link(element);
+ }
+ }
+ plugin.unpause();
+ }
+
+ private void destroy() {
+ if (is_sink) {
+ if (mixer != null) {
+ int linked_sink_pads = 0;
+ mixer.foreach_sink_pad((_, pad) => {
+ if (pad.is_linked()) linked_sink_pads++;
+ return true;
+ });
+ if (linked_sink_pads > 0) {
+ warning("%s-mixer still has %i sink pads while being destroyed", id, linked_sink_pads);
+ }
+ mixer.unlink(plugin.echoprobe ?? element);
+ }
+ if (filter != null) {
+ filter.set_locked_state(true);
+ filter.set_state(Gst.State.NULL);
+ filter.unlink(element);
+ pipe.remove(filter);
+ filter = null;
+ }
+ if (plugin.echoprobe != null) {
+ plugin.echoprobe.unlink(element);
+ }
+ }
+ element.set_locked_state(true);
+ element.set_state(Gst.State.NULL);
+ if (filter != null) element.unlink(filter);
+ else if (is_source) element.unlink(tee);
+ pipe.remove(element);
+ element = null;
+ if (mixer != null) {
+ mixer.set_locked_state(true);
+ mixer.set_state(Gst.State.NULL);
+ pipe.remove(mixer);
+ mixer = null;
+ }
+ if (is_source) {
+ if (filter != null) {
+ filter.set_locked_state(true);
+ filter.set_state(Gst.State.NULL);
+ filter.unlink(dsp ?? tee);
+ pipe.remove(filter);
+ filter = null;
+ }
+ if (dsp != null) {
+ dsp.set_locked_state(true);
+ dsp.set_state(Gst.State.NULL);
+ dsp.unlink(tee);
+ pipe.remove(dsp);
+ dsp = null;
+ }
+ if (tee != null) {
+ int linked_src_pads = 0;
+ tee.foreach_src_pad((_, pad) => {
+ if (pad.is_linked()) linked_src_pads++;
+ return true;
+ });
+ if (linked_src_pads != 0) {
+ warning("%s-tee still has %d src pads while being destroyed", id, linked_src_pads);
+ }
+ tee.set_locked_state(true);
+ tee.set_state(Gst.State.NULL);
+ pipe.remove(tee);
+ tee = null;
+ }
+ }
+ debug("Destroyed device %s", id);
+ }
+}
diff --git a/main/src/plugins/rtp/gst_fixes.c b/main/src/plugins/rtp/gst_fixes.c
new file mode 100644
index 00000000..86b2b598
--- /dev/null
+++ b/main/src/plugins/rtp/gst_fixes.c
@@ -0,0 +1,10 @@
+#include <gst/video/video.h>
+
+GstVideoInfo *gst_video_frame_get_video_info(GstVideoFrame *frame) {
+ return &frame->info;
+}
+
+void *gst_video_frame_get_data(GstVideoFrame *frame, size_t* length) {
+ *length = frame->info.height * frame->info.stride[0];
+ return frame->data[0];
+} \ No newline at end of file
diff --git a/main/src/plugins/rtp/module.vala b/main/src/plugins/rtp/module.vala
new file mode 100644
index 00000000..be153b10
--- /dev/null
+++ b/main/src/plugins/rtp/module.vala
@@ -0,0 +1,235 @@
+using Gee;
+using Xmpp;
+using Xmpp.Xep;
+
+public class Dino.Plugins.Rtp.Module : JingleRtp.Module {
+ private Set<string> supported_codecs = new HashSet<string>();
+ private Set<string> unsupported_codecs = new HashSet<string>();
+ public Plugin plugin { get; private set; }
+ public CodecUtil codec_util { get {
+ return plugin.codec_util;
+ }}
+
+ public Module(Plugin plugin) {
+ base();
+ this.plugin = plugin;
+ }
+
+ private async bool pipeline_works(string media, string element_desc) {
+ var supported = false;
+ string pipeline_desc = @"$(media)testsrc is-live=true ! $element_desc ! appsink name=output";
+ try {
+ var pipeline = Gst.parse_launch(pipeline_desc);
+ var output = ((Gst.Bin) pipeline).get_by_name("output") as Gst.App.Sink;
+ SourceFunc callback = pipeline_works.callback;
+ var finished = false;
+ output.emit_signals = true;
+ output.new_sample.connect(() => {
+ if (!finished) {
+ finished = true;
+ supported = true;
+ Idle.add(() => {
+ callback();
+ return Source.REMOVE;
+ });
+ }
+ return Gst.FlowReturn.EOS;
+ });
+ pipeline.bus.add_watch(Priority.DEFAULT, (_, message) => {
+ if (message.type == Gst.MessageType.ERROR && !finished) {
+ Error e;
+ string d;
+ message.parse_error(out e, out d);
+ debug("pipeline [%s] failed: %s", pipeline_desc, e.message);
+ debug(d);
+ finished = true;
+ callback();
+ }
+ return true;
+ });
+ Timeout.add(2000, () => {
+ if (!finished) {
+ finished = true;
+ callback();
+ }
+ return Source.REMOVE;
+ });
+ pipeline.set_state(Gst.State.PLAYING);
+ yield;
+ pipeline.set_state(Gst.State.NULL);
+ } catch (Error e) {
+ debug("pipeline [%s] failed: %s", pipeline_desc, e.message);
+ }
+ return supported;
+ }
+
+ public override async bool is_payload_supported(string media, JingleRtp.PayloadType payload_type) {
+ string? codec = CodecUtil.get_codec_from_payload(media, payload_type);
+ if (codec == null) return false;
+ if (unsupported_codecs.contains(codec)) return false;
+ if (supported_codecs.contains(codec)) return true;
+
+ string? encode_element = codec_util.get_encode_element_name(media, codec);
+ string? decode_element = codec_util.get_decode_element_name(media, codec);
+ if (encode_element == null || decode_element == null) {
+ warning("No suitable encoder or decoder found for %s", codec);
+ unsupported_codecs.add(codec);
+ return false;
+ }
+
+ string encode_bin = codec_util.get_encode_bin_description(media, codec, null, encode_element);
+ while (!(yield pipeline_works(media, encode_bin))) {
+ debug("%s not suited for encoding %s", encode_element, codec);
+ codec_util.mark_element_unsupported(encode_element);
+ encode_element = codec_util.get_encode_element_name(media, codec);
+ if (encode_element == null) {
+ warning("No suitable encoder found for %s", codec);
+ unsupported_codecs.add(codec);
+ return false;
+ }
+ encode_bin = codec_util.get_encode_bin_description(media, codec, null, encode_element);
+ }
+ debug("using %s to encode %s", encode_element, codec);
+
+ string decode_bin = codec_util.get_decode_bin_description(media, codec, null, decode_element);
+ while (!(yield pipeline_works(media, @"$encode_bin ! $decode_bin"))) {
+ debug("%s not suited for decoding %s", decode_element, codec);
+ codec_util.mark_element_unsupported(decode_element);
+ decode_element = codec_util.get_decode_element_name(media, codec);
+ if (decode_element == null) {
+ warning("No suitable decoder found for %s", codec);
+ unsupported_codecs.add(codec);
+ return false;
+ }
+ decode_bin = codec_util.get_decode_bin_description(media, codec, null, decode_element);
+ }
+ debug("using %s to decode %s", decode_element, codec);
+
+ supported_codecs.add(codec);
+ return true;
+ }
+
+ public override bool is_header_extension_supported(string media, JingleRtp.HeaderExtension ext) {
+ if (media == "video" && ext.uri == "urn:3gpp:video-orientation") return true;
+ return false;
+ }
+
+ public override Gee.List<JingleRtp.HeaderExtension> get_suggested_header_extensions(string media) {
+ Gee.List<JingleRtp.HeaderExtension> exts = new ArrayList<JingleRtp.HeaderExtension>();
+ if (media == "video") {
+ exts.add(new JingleRtp.HeaderExtension(1, "urn:3gpp:video-orientation"));
+ }
+ return exts;
+ }
+
+ public async void add_if_supported(Gee.List<JingleRtp.PayloadType> list, string media, JingleRtp.PayloadType payload_type) {
+ if (yield is_payload_supported(media, payload_type)) {
+ list.add(payload_type);
+ }
+ }
+
+ public override async Gee.List<JingleRtp.PayloadType> get_supported_payloads(string media) {
+ Gee.List<JingleRtp.PayloadType> list = new ArrayList<JingleRtp.PayloadType>(JingleRtp.PayloadType.equals_func);
+ if (media == "audio") {
+ var opus = new JingleRtp.PayloadType() { channels = 1, clockrate = 48000, name = "opus", id = 111, channels = 2 };
+ opus.parameters["useinbandfec"] = "1";
+ var speex32 = new JingleRtp.PayloadType() { channels = 1, clockrate = 32000, name = "speex", id = 112 };
+ var speex16 = new JingleRtp.PayloadType() { channels = 1, clockrate = 16000, name = "speex", id = 113 };
+ var speex8 = new JingleRtp.PayloadType() { channels = 1, clockrate = 8000, name = "speex", id = 114 };
+ var g722 = new JingleRtp.PayloadType() { channels = 1, clockrate = 8000, name = "G722", id = 9 };
+ var pcmu = new JingleRtp.PayloadType() { channels = 1, clockrate = 8000, name = "PCMU", id = 0 };
+ var pcma = new JingleRtp.PayloadType() { channels = 1, clockrate = 8000, name = "PCMA", id = 8 };
+ yield add_if_supported(list, media, opus);
+ yield add_if_supported(list, media, speex32);
+ yield add_if_supported(list, media, speex16);
+ yield add_if_supported(list, media, speex8);
+ yield add_if_supported(list, media, g722);
+ yield add_if_supported(list, media, pcmu);
+ yield add_if_supported(list, media, pcma);
+ } else if (media == "video") {
+ var rtcp_fbs = new ArrayList<JingleRtp.RtcpFeedback>();
+ rtcp_fbs.add(new JingleRtp.RtcpFeedback("goog-remb"));
+ rtcp_fbs.add(new JingleRtp.RtcpFeedback("ccm", "fir"));
+ rtcp_fbs.add(new JingleRtp.RtcpFeedback("nack"));
+ rtcp_fbs.add(new JingleRtp.RtcpFeedback("nack", "pli"));
+#if ENABLE_H264
+ var h264 = new JingleRtp.PayloadType() { clockrate = 90000, name = "H264", id = 96 };
+ yield add_if_supported(list, media, h264);
+ h264.rtcp_fbs.add_all(rtcp_fbs);
+#endif
+#if ENABLE_VP9
+ var vp9 = new JingleRtp.PayloadType() { clockrate = 90000, name = "VP9", id = 97 };
+ vp9.rtcp_fbs.add_all(rtcp_fbs);
+ yield add_if_supported(list, media, vp9);
+#endif
+ var vp8 = new JingleRtp.PayloadType() { clockrate = 90000, name = "VP8", id = 98 };
+ vp8.rtcp_fbs.add_all(rtcp_fbs);
+ yield add_if_supported(list, media, vp8);
+ } else {
+ warning("Unsupported media type: %s", media);
+ }
+ return list;
+ }
+
+ public override async JingleRtp.PayloadType? pick_payload_type(string media, Gee.List<JingleRtp.PayloadType> payloads) {
+ if (media == "audio" || media == "video") {
+ foreach (JingleRtp.PayloadType type in payloads) {
+ if (yield is_payload_supported(media, type)) return adjust_payload_type(media, type.clone());
+ }
+ } else {
+ warning("Unsupported media type: %s", media);
+ }
+ return null;
+ }
+
+ public JingleRtp.PayloadType adjust_payload_type(string media, JingleRtp.PayloadType type) {
+ var iter = type.rtcp_fbs.iterator();
+ while (iter.next()) {
+ var fb = iter.@get();
+ switch (fb.type_) {
+ case "goog-remb":
+ if (fb.subtype != null) iter.remove();
+ break;
+ case "ccm":
+ if (fb.subtype != "fir") iter.remove();
+ break;
+ case "nack":
+ if (fb.subtype != null && fb.subtype != "pli") iter.remove();
+ break;
+ default:
+ iter.remove();
+ break;
+ }
+ }
+ return type;
+ }
+
+ public override JingleRtp.Stream create_stream(Jingle.Content content) {
+ return plugin.open_stream(content);
+ }
+
+ public override void close_stream(JingleRtp.Stream stream) {
+ var rtp_stream = stream as Rtp.Stream;
+ plugin.close_stream(rtp_stream);
+ }
+
+ public override JingleRtp.Crypto? generate_local_crypto() {
+ uint8[] key_and_salt = new uint8[30];
+ Crypto.randomize(key_and_salt);
+ return JingleRtp.Crypto.create(JingleRtp.Crypto.AES_CM_128_HMAC_SHA1_80, key_and_salt);
+ }
+
+ public override JingleRtp.Crypto? pick_remote_crypto(Gee.List<JingleRtp.Crypto> cryptos) {
+ foreach (JingleRtp.Crypto crypto in cryptos) {
+ if (crypto.is_valid) return crypto;
+ }
+ return null;
+ }
+
+ public override JingleRtp.Crypto? pick_local_crypto(JingleRtp.Crypto? remote) {
+ if (remote == null || !remote.is_valid) return null;
+ uint8[] key_and_salt = new uint8[30];
+ Crypto.randomize(key_and_salt);
+ return remote.rekey(key_and_salt);
+ }
+}
diff --git a/main/src/plugins/rtp/participant.vala b/main/src/plugins/rtp/participant.vala
new file mode 100644
index 00000000..1ca13191
--- /dev/null
+++ b/main/src/plugins/rtp/participant.vala
@@ -0,0 +1,39 @@
+using Gee;
+using Xmpp;
+
+public class Dino.Plugins.Rtp.Participant {
+ public Jid full_jid { get; private set; }
+
+ protected Gst.Pipeline pipe;
+ private Map<Stream, uint32> ssrcs = new HashMap<Stream, uint32>();
+
+ public Participant(Gst.Pipeline pipe, Jid full_jid) {
+ this.pipe = pipe;
+ this.full_jid = full_jid;
+ }
+
+ public uint32 get_ssrc(Stream stream) {
+ if (ssrcs.has_key(stream)) {
+ return ssrcs[stream];
+ }
+ return 0;
+ }
+
+ public void set_ssrc(Stream stream, uint32 ssrc) {
+ if (ssrcs.has_key(stream)) {
+ warning("Learning ssrc %ul for %s in %s when it is already known as %ul", ssrc, full_jid.to_string(), stream.to_string(), ssrcs[stream]);
+ } else {
+ stream.on_destroy.connect(unset_ssrc);
+ }
+ ssrcs[stream] = ssrc;
+ }
+
+ public void unset_ssrc(Stream stream) {
+ ssrcs.unset(stream);
+ stream.on_destroy.disconnect(unset_ssrc);
+ }
+
+ public string to_string() {
+ return @"participant $full_jid";
+ }
+} \ No newline at end of file
diff --git a/main/src/plugins/rtp/plugin.vala b/main/src/plugins/rtp/plugin.vala
new file mode 100644
index 00000000..d09b7edf
--- /dev/null
+++ b/main/src/plugins/rtp/plugin.vala
@@ -0,0 +1,504 @@
+using Gee;
+using Xmpp;
+using Xmpp.Xep;
+
+public class Dino.Plugins.Rtp.Plugin : RootInterface, VideoCallPlugin, Object {
+ public Dino.Application app { get; private set; }
+ public CodecUtil codec_util { get; private set; }
+ public Gst.DeviceMonitor? device_monitor { get; private set; }
+ public Gst.Pipeline? pipe { get; private set; }
+ public Gst.Bin? rtpbin { get; private set; }
+ public Gst.Element? echoprobe { get; private set; }
+
+ private Gee.List<Stream> streams = new ArrayList<Stream>();
+ private Gee.List<Device> devices = new ArrayList<Device>();
+ private int64 last_devices_refresh = 0;
+ // private Gee.List<Participant> participants = new ArrayList<Participant>();
+
+ public void registered(Dino.Application app) {
+ this.app = app;
+ this.codec_util = new CodecUtil();
+ app.add_option_group(Gst.init_get_option_group());
+ app.stream_interactor.module_manager.initialize_account_modules.connect((account, list) => {
+ list.add(new Module(this));
+ });
+ app.plugin_registry.video_call_plugin = this;
+ }
+
+ private int pause_count = 0;
+ public void pause() {
+// if (pause_count == 0) {
+// debug("Pausing pipe for modifications");
+// pipe.set_state(Gst.State.PAUSED);
+// }
+ pause_count++;
+ }
+ public void unpause() {
+ pause_count--;
+ if (pause_count == 0) {
+ debug("Continue pipe after modifications");
+ pipe.set_state(Gst.State.PLAYING);
+ }
+ if (pause_count < 0) warning("Pause count below zero!");
+ }
+
+ private void handle_existing_devices(Gst.DeviceMonitor device_monitor) {
+ var new_devices = new ArrayList<Device>();
+ foreach (Gst.Device device in device_monitor.get_devices()) {
+ if (device.properties == null) continue;
+ if (device.properties.has_name("pipewire-proplist") && device.has_classes("Audio")) continue;
+ if (device.properties.get_string("device.class") == "monitor") continue;
+ var pre_device = devices.first_match((it) => it.matches(device));
+ if (pre_device != null) {
+ if (!new_devices.contains(pre_device)) new_devices.add(pre_device);
+ continue;
+ }
+ var new_device = new Device(this, device);
+ devices.add(new_device);
+ new_devices.add(new_device);
+ }
+ devices.retain_all(new_devices);
+ }
+
+ private void refresh_devices() {
+ if (device_monitor != null) return; // No manual refresh needed, we're monitoring actively.
+ if (last_devices_refresh > 0 && last_devices_refresh + 5000000 > get_monotonic_time()) return; // Already current
+ var device_monitor = new Gst.DeviceMonitor();
+ device_monitor.show_all = true;
+ device_monitor.start();
+ handle_existing_devices(device_monitor);
+ device_monitor.stop();
+ last_devices_refresh = get_monotonic_time();
+ }
+
+ private void start_device_monitor() {
+ if (device_monitor != null) return;
+ device_monitor = new Gst.DeviceMonitor();
+ device_monitor.show_all = true;
+ device_monitor.get_bus().add_watch(Priority.DEFAULT, on_device_monitor_message);
+ device_monitor.start();
+ handle_existing_devices(device_monitor);
+ }
+
+ private void stop_device_monitor() {
+ if (device_monitor == null) return;
+ device_monitor.stop();
+ device_monitor = null;
+ }
+
+ private void init_call_pipe() {
+ if (pipe != null) return;
+ debug("Creating call pipe.");
+ start_device_monitor();
+ pipe = new Gst.Pipeline(null);
+
+ // RTP
+ rtpbin = Gst.ElementFactory.make("rtpbin", null) as Gst.Bin;
+ if (rtpbin == null) {
+ warning("RTP not supported");
+ pipe = null;
+ return;
+ }
+ rtpbin.pad_added.connect(on_rtp_pad_added);
+ rtpbin.@set("latency", 100);
+ rtpbin.@set("do-lost", true);
+// rtpbin.@set("do-sync-event", true);
+ rtpbin.@set("drop-on-latency", true);
+ rtpbin.connect("signal::request-pt-map", request_pt_map, this);
+ pipe.add(rtpbin);
+
+#if WITH_VOICE_PROCESSOR
+ // Audio echo probe
+ echoprobe = new EchoProbe();
+ if (echoprobe != null) pipe.add(echoprobe);
+#endif
+
+ // Pipeline
+ pipe.auto_flush_bus = true;
+ pipe.bus.add_watch(GLib.Priority.DEFAULT, (_, message) => {
+ on_pipe_bus_message(message);
+ return true;
+ });
+ pipe.set_state(Gst.State.PLAYING);
+ }
+
+ public void destroy_call_pipe_if_unused() {
+ if (streams.is_empty && !VideoWidget.has_instances()) {
+ destroy_call_pipe();
+ }
+ }
+
+ private void destroy_call_pipe() {
+ if (pipe == null) return;
+ pipe.set_state(Gst.State.NULL);
+ rtpbin = null;
+#if WITH_VOICE_PROCESSOR
+ echoprobe = null;
+#endif
+ pipe = null;
+ stop_device_monitor();
+ debug("Call pipe destroyed");
+ }
+
+ private static Gst.Caps? request_pt_map(Gst.Element rtpbin, uint session, uint pt, Plugin plugin) {
+ debug("request-pt-map");
+ return null;
+ }
+
+ private void on_rtp_pad_added(Gst.Pad pad) {
+ debug("pad added: %s", pad.name);
+ if (pad.name.has_prefix("recv_rtp_src_")) {
+ string[] split = pad.name.split("_");
+ uint8 rtpid = (uint8)int.parse(split[3]);
+ foreach (Stream stream in streams) {
+ if (stream.rtpid == rtpid) {
+ stream.on_ssrc_pad_added((uint32) split[4].to_uint64(), pad);
+ }
+ }
+ }
+ if (pad.name.has_prefix("send_rtp_src_")) {
+ string[] split = pad.name.split("_");
+ uint8 rtpid = (uint8)int.parse(split[3]);
+ debug("pad %s for stream %hhu", pad.name, rtpid);
+ foreach (Stream stream in streams) {
+ if (stream.rtpid == rtpid) {
+ stream.on_send_rtp_src_added(pad);
+ }
+ }
+ }
+ }
+
+ private void on_pipe_bus_message(Gst.Message message) {
+ switch (message.type) {
+ case Gst.MessageType.ERROR:
+ Error error;
+ string str;
+ message.parse_error(out error, out str);
+ warning("Error in pipeline: %s", error.message);
+ debug(str);
+ break;
+ case Gst.MessageType.WARNING:
+ Error error;
+ string str;
+ message.parse_warning(out error, out str);
+ warning("Warning in pipeline: %s", error.message);
+ debug(str);
+ break;
+ case Gst.MessageType.CLOCK_LOST:
+ debug("Clock lost. Restarting");
+ pipe.set_state(Gst.State.READY);
+ pipe.set_state(Gst.State.PLAYING);
+ break;
+ case Gst.MessageType.STATE_CHANGED:
+ // Ignore
+ break;
+ case Gst.MessageType.STREAM_STATUS:
+ Gst.StreamStatusType status;
+ Gst.Element owner;
+ message.parse_stream_status(out status, out owner);
+ if (owner != null) {
+ debug("%s stream changed status to %s", owner.name, status.to_string());
+ }
+ break;
+ case Gst.MessageType.ELEMENT:
+ unowned Gst.Structure struc = message.get_structure();
+ if (struc != null && message.src is Gst.Element) {
+ debug("Message from %s in pipeline: %s", ((Gst.Element)message.src).name, struc.to_string());
+ }
+ break;
+ case Gst.MessageType.NEW_CLOCK:
+ debug("New clock.");
+ break;
+ case Gst.MessageType.TAG:
+ // Ignore
+ break;
+ case Gst.MessageType.QOS:
+ // Ignore
+ break;
+ case Gst.MessageType.LATENCY:
+ if (message.src != null && message.src.name != null && message.src is Gst.Element) {
+ Gst.Query latency_query = new Gst.Query.latency();
+ if (((Gst.Element)message.src).query(latency_query)) {
+ bool live;
+ Gst.ClockTime min_latency, max_latency;
+ latency_query.parse_latency(out live, out min_latency, out max_latency);
+ debug("Latency message from %s: live=%s, min_latency=%s, max_latency=%s", message.src.name, live.to_string(), min_latency.to_string(), max_latency.to_string());
+ }
+ }
+ break;
+ default:
+ debug("Pipe bus message: %s", message.type.to_string());
+ break;
+ }
+ }
+
+ private bool on_device_monitor_message(Gst.Bus bus, Gst.Message message) {
+ Gst.Device? old_gst_device = null;
+ Gst.Device? gst_device = null;
+ Device? device = null;
+ switch (message.type) {
+ case Gst.MessageType.DEVICE_ADDED:
+ message.parse_device_added(out gst_device);
+ if (devices.any_match((it) => it.matches(gst_device))) return Source.CONTINUE;
+ device = new Device(this, gst_device);
+ devices.add(device);
+ break;
+ case Gst.MessageType.DEVICE_CHANGED:
+ message.parse_device_changed(out gst_device, out old_gst_device);
+ device = devices.first_match((it) => it.matches(old_gst_device));
+ if (device != null) device.update(gst_device);
+ break;
+ case Gst.MessageType.DEVICE_REMOVED:
+ message.parse_device_removed(out gst_device);
+ device = devices.first_match((it) => it.matches(gst_device));
+ if (device != null) devices.remove(device);
+ break;
+ default:
+ break;
+ }
+ if (device != null) {
+ devices_changed(device.media, device.is_sink);
+ }
+ return Source.CONTINUE;
+ }
+
+ public uint8 next_free_id() {
+ uint8 rtpid = 0;
+ while (streams.size < 100 && streams.any_match((stream) => stream.rtpid == rtpid)) {
+ rtpid++;
+ }
+ return rtpid;
+ }
+
+ // public Participant get_participant(Jid full_jid, bool self) {
+// foreach (Participant participant in participants) {
+// if (participant.full_jid.equals(full_jid)) {
+// return participant;
+// }
+// }
+// Participant participant;
+// if (self) {
+// participant = new SelfParticipant(pipe, full_jid);
+// } else {
+// participant = new Participant(pipe, full_jid);
+// }
+// participants.add(participant);
+// return participant;
+// }
+
+ public Stream open_stream(Xmpp.Xep.Jingle.Content content) {
+ init_call_pipe();
+ var content_params = content.content_params as Xmpp.Xep.JingleRtp.Parameters;
+ if (content_params == null) return null;
+ Stream stream;
+ if (content_params.media == "video") {
+ stream = new VideoStream(this, content);
+ } else {
+ stream = new Stream(this, content);
+ }
+ streams.add(stream);
+ return stream;
+ }
+
+ public void close_stream(Stream stream) {
+ streams.remove(stream);
+ stream.destroy();
+ destroy_call_pipe_if_unused();
+ }
+
+ public void shutdown() {
+ stop_device_monitor();
+ destroy_call_pipe();
+ Gst.deinit();
+ }
+
+ public bool supported() {
+ return codec_util.is_element_supported("rtpbin");
+ }
+
+ public VideoCallWidget? create_widget(WidgetType type) {
+ init_call_pipe();
+ if (type == WidgetType.GTK4) {
+ return new VideoWidget(this);
+ }
+ return null;
+ }
+
+ public Gee.List<MediaDevice> get_devices(string media, bool incoming) {
+ refresh_devices();
+ Gee.List<MediaDevice> devices;
+ if (media == "video" && !incoming) {
+ devices = get_video_sources();
+ } else if (media == "audio") {
+ devices = get_audio_devices(incoming);
+ } else {
+ devices = new ArrayList<MediaDevice>();
+ devices.add_all_iterator(this.devices.filter(it => it.media == media && (incoming && it.is_sink || !incoming && it.is_source) && !it.is_monitor));
+ }
+ devices.sort((media_left, media_right) => {
+ return strcmp(media_left.id, media_right.id);
+ });
+
+ return devices;
+ }
+
+ public Gee.List<MediaDevice> get_audio_devices(bool incoming) {
+ ArrayList<MediaDevice> pulse_devices = new ArrayList<MediaDevice>();
+ ArrayList<MediaDevice> other_devices = new ArrayList<MediaDevice>();
+
+ foreach (Device device in devices) {
+ if (device.media != "audio") continue;
+ if (incoming && !device.is_sink || !incoming && !device.is_source) continue;
+
+ // Skip monitors
+ if (device.is_monitor) continue;
+
+ if (device.protocol == DeviceProtocol.PULSEAUDIO) {
+ pulse_devices.add(device);
+ } else {
+ other_devices.add(device);
+ }
+ }
+
+ // If we have any pulseaudio devices, present only those. Don't want duplicated devices from pipewire and pulseaudio.
+ return pulse_devices.size > 0 ? pulse_devices : other_devices;
+ }
+
+ public Gee.List<MediaDevice> get_video_sources() {
+ ArrayList<MediaDevice> pipewire_devices = new ArrayList<MediaDevice>();
+ ArrayList<MediaDevice> other_devices = new ArrayList<MediaDevice>();
+
+ foreach (Device device in devices) {
+ if (device.media != "video") continue;
+ if (device.is_sink) continue;
+
+ // Skip monitors
+ if (device.is_monitor) continue;
+
+ bool is_color = false;
+ for (int i = 0; i < device.device.caps.get_size(); i++) {
+ unowned Gst.Structure structure = device.device.caps.get_structure(i);
+ if (!structure.has_field("format")) continue;
+ // "format" might be an array and get_string() will then return null. We just assume arrays to be fine.
+ string? format = structure.get_string("format");
+ if (format == null || !format.has_prefix("GRAY")) {
+ is_color = true;
+ }
+ }
+
+ // Don't allow grey-scale devices
+ if (!is_color) continue;
+
+ if (device.protocol == DeviceProtocol.PIPEWIRE) {
+ pipewire_devices.add(device);
+ } else {
+ other_devices.add(device);
+ }
+ }
+
+ // If we have any pipewire devices, present only those. Don't want duplicated devices from pipewire and video for linux.
+ return pipewire_devices.size > 0 ? pipewire_devices : other_devices;
+ }
+
+ private int get_max_fps(Device device) {
+ int fps = 0;
+ for (int i = 0; i < device.device.caps.get_size(); i++) {
+ unowned Gst.Structure structure = device.device.caps.get_structure(i);
+
+ if (structure.has_field("framerate")) {
+ Value framerate = structure.get_value("framerate");
+ if (framerate.type() == typeof(Gst.Fraction)) {
+ int num = Gst.Value.get_fraction_numerator(framerate);
+ int den = Gst.Value.get_fraction_denominator(framerate);
+ fps = int.max(fps, num / den);
+ } else if (framerate.type() == typeof(Gst.ValueList)) {
+ for(uint j = 0; j < Gst.ValueList.get_size(framerate); j++) {
+ Value fraction = Gst.ValueList.get_value(framerate, j);
+ int num = Gst.Value.get_fraction_numerator(fraction);
+ int den = Gst.Value.get_fraction_denominator(fraction);
+ fps = int.max(fps, num / den);
+ }
+ } else {
+ debug("Unknown type for framerate %s on device %s", framerate.type_name(), device.display_name);
+ }
+ }
+ }
+
+ debug("Max framerate for device %s: %d", device.display_name, fps);
+ return fps;
+ }
+
+ public MediaDevice? get_preferred_device(string media, bool incoming) {
+ Gee.List<Device> devices = new ArrayList<Device>();
+ foreach (MediaDevice media_device in get_devices(media, incoming)) {
+ if (media_device is Device) devices.add((Device)media_device);
+ }
+ if (devices.is_empty) {
+ warning("No preferred device for %s %s. Media will not be processed.", incoming ? "incoming" : "outgoing", media);
+ return null;
+ }
+
+ // Take default if present
+ foreach (Device device in devices) {
+ if (device.is_default) {
+ debug("Using %s for %s %s as it's default", device.display_name, incoming ? "incoming" : "outgoing", media);
+ return device;
+ }
+ }
+
+ if (media == "video") {
+ // Pick best FPS
+ int max_fps = -1;
+ Device? max_fps_device = null;
+ foreach (Device device in devices) {
+ int fps = get_max_fps(device);
+ if (fps > max_fps || max_fps_device == null) {
+ max_fps = fps;
+ max_fps_device = device;
+ }
+ }
+ debug("Using %s for %s %s as it has max FPS (%d)", max_fps_device.display_name, incoming ? "incoming" : "outgoing", media, max_fps);
+ return max_fps_device;
+ } else {
+ // Pick any
+ Device? device = devices.first();
+ debug("Using %s for %s %s as it's first pick", device.display_name, incoming ? "incoming" : "outgoing", media);
+ return device;
+ }
+ }
+
+ public MediaDevice? get_device(Xmpp.Xep.JingleRtp.Stream? stream, bool incoming) {
+ Stream? plugin_stream = stream as Stream?;
+ if (plugin_stream == null) return null;
+ MediaDevice? device = incoming ? plugin_stream.output_device : plugin_stream.input_device;
+ return device ?? get_preferred_device(stream.media, incoming);
+ }
+
+ public void dump_dot() {
+ if (pipe == null) return;
+ string name = @"pipe-$(pipe.clock.get_time())-$(pipe.current_state)";
+ Gst.Debug.bin_to_dot_file(pipe, Gst.DebugGraphDetails.ALL, name);
+ print(@"Stored pipe details as $name\n");
+ }
+
+ public void set_pause(Xmpp.Xep.JingleRtp.Stream? stream, bool pause) {
+ Stream? plugin_stream = stream as Stream?;
+ if (plugin_stream == null) return;
+ if (pause) {
+ plugin_stream.pause();
+ } else {
+ plugin_stream.unpause();
+ }
+ }
+
+ public void set_device(Xmpp.Xep.JingleRtp.Stream? stream, MediaDevice? device) {
+ Device? real_device = device as Device?;
+ Stream? plugin_stream = stream as Stream?;
+ if (real_device == null || plugin_stream == null) return;
+ if (real_device.is_source) {
+ plugin_stream.input_device = real_device;
+ } else if (real_device.is_sink) {
+ plugin_stream.output_device = real_device;
+ }
+ }
+}
diff --git a/main/src/plugins/rtp/stream.vala b/main/src/plugins/rtp/stream.vala
new file mode 100644
index 00000000..9a46d9ff
--- /dev/null
+++ b/main/src/plugins/rtp/stream.vala
@@ -0,0 +1,851 @@
+using Gee;
+using Xmpp;
+
+public class Dino.Plugins.Rtp.Stream : Xmpp.Xep.JingleRtp.Stream {
+ public uint8 rtpid { get; private set; }
+
+ public Plugin plugin { get; private set; }
+ public Gst.Pipeline pipe { get {
+ return plugin.pipe;
+ }}
+ public Gst.Element rtpbin { get {
+ return plugin.rtpbin;
+ }}
+ public CodecUtil codec_util { get {
+ return plugin.codec_util;
+ }}
+ private Gst.App.Sink send_rtp;
+ private Gst.App.Sink send_rtcp;
+ private Gst.App.Src recv_rtp;
+ private Gst.App.Src recv_rtcp;
+ private Gst.Element decode;
+ private Gst.RTP.BaseDepayload decode_depay;
+ private Gst.Element input;
+ private Gst.Pad input_pad;
+ private Gst.Element output;
+ private Gst.Element session;
+
+ private Device _input_device;
+ public Device input_device { get { return _input_device; } set {
+ if (sending && !paused) {
+ var input = this.input;
+ set_input(value != null ? value.link_source(payload_type, our_ssrc, next_seqnum_offset, next_timestamp_offset) : null);
+ if (this._input_device != null) this._input_device.unlink(input);
+ }
+ this._input_device = value;
+ }}
+ private Device _output_device;
+ public Device output_device { get { return _output_device; } set {
+ if (output != null) remove_output(output);
+ if (value != null && receiving) add_output(value.link_sink());
+ this._output_device = value;
+ }}
+
+ public bool created { get; private set; default = false; }
+ public bool paused { get; private set; default = false; }
+ private bool push_recv_data = false;
+ private uint our_ssrc = Random.next_int();
+ private int next_seqnum_offset = -1;
+ private uint32 next_timestamp_offset_base = 0;
+ private int64 next_timestamp_offset_stamp = 0;
+ private uint32 next_timestamp_offset { get {
+ if (next_timestamp_offset_base == 0) return 0;
+ int64 monotonic_diff = get_monotonic_time() - next_timestamp_offset_stamp;
+ return next_timestamp_offset_base + (uint32)((double)monotonic_diff / 1000000.0 * payload_type.clockrate);
+ } }
+ private uint32 participant_ssrc = 0;
+
+ private Gst.Pad recv_rtcp_sink_pad;
+ private Gst.Pad recv_rtp_sink_pad;
+ private Gst.Pad recv_rtp_src_pad;
+ private Gst.Pad send_rtcp_src_pad;
+ private Gst.Pad send_rtp_sink_pad;
+ private Gst.Pad send_rtp_src_pad;
+
+ private Crypto.Srtp.Session? crypto_session = new Crypto.Srtp.Session();
+
+ public Stream(Plugin plugin, Xmpp.Xep.Jingle.Content content) {
+ base(content);
+ this.plugin = plugin;
+ this.rtpid = plugin.next_free_id();
+
+ content.notify["senders"].connect_after(on_senders_changed);
+ }
+
+ public void on_senders_changed() {
+ if (sending && input == null) {
+ input_device = input_device;
+ }
+ if (receiving && output == null) {
+ output_device = output_device;
+ }
+ }
+
+ public override void create() {
+ plugin.pause();
+
+ // Create i/o if needed
+
+ if (input == null && sending) {
+ input_device = input_device;
+ }
+ if (output == null && receiving && media == "audio") {
+ output_device = output_device;
+ }
+
+ // Create app elements
+ send_rtp = Gst.ElementFactory.make("appsink", @"rtp_sink_$rtpid") as Gst.App.Sink;
+ send_rtp.async = false;
+ send_rtp.caps = CodecUtil.get_caps(media, payload_type, false);
+ send_rtp.emit_signals = true;
+ send_rtp.sync = true;
+ send_rtp.drop = true;
+ send_rtp.wait_on_eos = false;
+ send_rtp.new_sample.connect(on_new_sample);
+ send_rtp.new_serialized_event.connect(on_new_event);
+ send_rtp.connect("signal::eos", on_eos_static, this);
+ pipe.add(send_rtp);
+
+ send_rtcp = Gst.ElementFactory.make("appsink", @"rtcp_sink_$rtpid") as Gst.App.Sink;
+ send_rtcp.async = false;
+ send_rtcp.caps = new Gst.Caps.empty_simple("application/x-rtcp");
+ send_rtcp.emit_signals = true;
+ send_rtcp.sync = true;
+ send_rtcp.drop = true;
+ send_rtcp.wait_on_eos = false;
+ send_rtcp.new_sample.connect(on_new_sample);
+ send_rtcp.connect("signal::eos", on_eos_static, this);
+ pipe.add(send_rtcp);
+
+ recv_rtp = Gst.ElementFactory.make("appsrc", @"rtp_src_$rtpid") as Gst.App.Src;
+ recv_rtp.caps = CodecUtil.get_caps(media, payload_type, true);
+ recv_rtp.do_timestamp = true;
+ recv_rtp.format = Gst.Format.TIME;
+ recv_rtp.is_live = true;
+ pipe.add(recv_rtp);
+
+ recv_rtcp = Gst.ElementFactory.make("appsrc", @"rtcp_src_$rtpid") as Gst.App.Src;
+ recv_rtcp.caps = new Gst.Caps.empty_simple("application/x-rtcp");
+ recv_rtcp.do_timestamp = true;
+ recv_rtcp.format = Gst.Format.TIME;
+ recv_rtcp.is_live = true;
+ pipe.add(recv_rtcp);
+
+ // Connect RTCP
+ send_rtcp_src_pad = rtpbin.get_request_pad(@"send_rtcp_src_$rtpid");
+ send_rtcp_src_pad.link(send_rtcp.get_static_pad("sink"));
+ recv_rtcp_sink_pad = rtpbin.get_request_pad(@"recv_rtcp_sink_$rtpid");
+ recv_rtcp.get_static_pad("src").link(recv_rtcp_sink_pad);
+
+ // Connect input
+ send_rtp_sink_pad = rtpbin.get_request_pad(@"send_rtp_sink_$rtpid");
+ if (input != null) {
+ input_pad = input.get_request_pad(@"src_$rtpid");
+ input_pad.link(send_rtp_sink_pad);
+ }
+
+ // Connect output
+ decode = codec_util.get_decode_bin(media, payload_type, @"decode_$rtpid");
+ decode_depay = (Gst.RTP.BaseDepayload)((Gst.Bin)decode).get_by_name(@"decode_$(rtpid)_rtp_depay");
+ pipe.add(decode);
+ if (output != null) {
+ decode.link(output);
+ }
+
+ // Connect RTP
+ recv_rtp_sink_pad = rtpbin.get_request_pad(@"recv_rtp_sink_$rtpid");
+ recv_rtp.get_static_pad("src").link(recv_rtp_sink_pad);
+
+ created = true;
+ push_recv_data = true;
+ plugin.unpause();
+
+ GLib.Signal.emit_by_name(rtpbin, "get-session", rtpid, out session);
+ if (session != null && remb_enabled) {
+ Object internal_session;
+ session.@get("internal-session", out internal_session);
+ if (internal_session != null) {
+ internal_session.connect("signal::on-feedback-rtcp", on_feedback_rtcp, this);
+ }
+ Timeout.add(1000, () => remb_adjust());
+ }
+ if (input_device != null && media == "video") {
+ input_device.update_bitrate(payload_type, target_send_bitrate);
+ }
+ }
+
+ private int last_packets_lost = -1;
+ private uint64 last_packets_received = 0;
+ private uint64 last_octets_received = 0;
+ private uint max_target_receive_bitrate = 0;
+ private int64 last_remb_time = 0;
+ private bool remb_adjust() {
+ unowned Gst.Structure? stats;
+ if (session == null) {
+ debug("Session for %u finished, turning off remb adjustment", rtpid);
+ return Source.REMOVE;
+ }
+ session.get("stats", out stats);
+ if (stats == null) {
+ warning("No stats for session %u", rtpid);
+ return Source.REMOVE;
+ }
+ unowned ValueArray? source_stats;
+ stats.get("source-stats", typeof(ValueArray), out source_stats);
+ if (source_stats == null) {
+ warning("No source-stats for session %u", rtpid);
+ return Source.REMOVE;
+ }
+
+ if (input_device == null) return Source.CONTINUE;
+
+ foreach (Value value in source_stats.values) {
+ unowned Gst.Structure source_stat = (Gst.Structure) value.get_boxed();
+ uint32 ssrc;
+ if (!source_stat.get_uint("ssrc", out ssrc)) continue;
+ if (ssrc == participant_ssrc) {
+ int packets_lost;
+ uint64 packets_received, octets_received;
+ source_stat.get_int("packets-lost", out packets_lost);
+ source_stat.get_uint64("packets-received", out packets_received);
+ source_stat.get_uint64("octets-received", out octets_received);
+ int new_lost = packets_lost - last_packets_lost;
+ if (new_lost < 0) new_lost = 0;
+ uint64 new_received = packets_received - last_packets_received;
+ if (packets_received < last_packets_received) new_received = 0;
+ uint64 new_octets = octets_received - last_octets_received;
+ if (octets_received < last_octets_received) octets_received = 0;
+ if (new_received == 0) continue;
+ last_packets_lost = packets_lost;
+ last_packets_received = packets_received;
+ last_octets_received = octets_received;
+ double loss_rate = (double)new_lost / (double)(new_lost + new_received);
+ uint new_target_receive_bitrate;
+ if (new_lost <= 0 || loss_rate < 0.02) {
+ new_target_receive_bitrate = (uint)(1.08 * (double)target_receive_bitrate);
+ } else if (loss_rate > 0.1) {
+ new_target_receive_bitrate = (uint)((1.0 - 0.5 * loss_rate) * (double)target_receive_bitrate);
+ } else {
+ new_target_receive_bitrate = target_receive_bitrate;
+ }
+ if (last_remb_time == 0) {
+ last_remb_time = get_monotonic_time();
+ } else {
+ int64 time_now = get_monotonic_time();
+ int64 time_diff = time_now - last_remb_time;
+ last_remb_time = time_now;
+ uint actual_bitrate = (uint)(((double)new_octets * 8.0) * (double)time_diff / 1000.0 / 1000000.0);
+ new_target_receive_bitrate = uint.max(new_target_receive_bitrate, (uint)(0.9 * (double)actual_bitrate));
+ max_target_receive_bitrate = uint.max((uint)(1.5 * (double)actual_bitrate), max_target_receive_bitrate);
+ new_target_receive_bitrate = uint.min(new_target_receive_bitrate, max_target_receive_bitrate);
+ }
+ new_target_receive_bitrate = uint.max(16, new_target_receive_bitrate); // Never go below 16
+ if (new_target_receive_bitrate != target_receive_bitrate) {
+ target_receive_bitrate = new_target_receive_bitrate;
+ uint8[] data = new uint8[] {
+ 143, 206, 0, 5,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 'R', 'E', 'M', 'B',
+ 1, 0, 0, 0,
+ 0, 0, 0, 0
+ };
+ data[4] = (uint8)((our_ssrc >> 24) & 0xff);
+ data[5] = (uint8)((our_ssrc >> 16) & 0xff);
+ data[6] = (uint8)((our_ssrc >> 8) & 0xff);
+ data[7] = (uint8)(our_ssrc & 0xff);
+ uint8 br_exp = 0;
+ uint32 br_mant = target_receive_bitrate * 1000;
+ uint8 bits = (uint8)Math.log2(br_mant);
+ if (bits > 16) {
+ br_exp = (uint8)bits - 16;
+ br_mant = br_mant >> br_exp;
+ }
+ data[17] = (uint8)((br_exp << 2) | ((br_mant >> 16) & 0x3));
+ data[18] = (uint8)((br_mant >> 8) & 0xff);
+ data[19] = (uint8)(br_mant & 0xff);
+ data[20] = (uint8)((ssrc >> 24) & 0xff);
+ data[21] = (uint8)((ssrc >> 16) & 0xff);
+ data[22] = (uint8)((ssrc >> 8) & 0xff);
+ data[23] = (uint8)(ssrc & 0xff);
+ encrypt_and_send_rtcp(data);
+ }
+ }
+ }
+ return Source.CONTINUE;
+ }
+
+ private static void on_feedback_rtcp(Gst.Element session, uint type, uint fbtype, uint sender_ssrc, uint media_ssrc, Gst.Buffer? fci, Stream self) {
+ if (self.input_device != null && self.media == "video" && type == 206 && fbtype == 15 && fci != null && sender_ssrc == self.participant_ssrc) {
+ // https://tools.ietf.org/html/draft-alvestrand-rmcat-remb-03
+ uint8[] data;
+ fci.extract_dup(0, fci.get_size(), out data);
+ if (data[0] != 'R' || data[1] != 'E' || data[2] != 'M' || data[3] != 'B') return;
+ uint8 br_exp = data[5] >> 2;
+ uint32 br_mant = (((uint32)data[5] & 0x3) << 16) + ((uint32)data[6] << 8) + (uint32)data[7];
+ self.target_send_bitrate = (br_mant << br_exp) / 1000;
+ self.input_device.update_bitrate(self.payload_type, self.target_send_bitrate);
+ }
+ }
+
+ private void prepare_local_crypto() {
+ if (local_crypto != null && local_crypto.is_valid && !crypto_session.has_encrypt) {
+ crypto_session.set_encryption_key(local_crypto.crypto_suite, local_crypto.key, local_crypto.salt);
+ debug("Setting up encryption with key params %s", local_crypto.key_params);
+ }
+ }
+
+ bool flip = false;
+ uint8 rotation = 0;
+
+ private bool on_new_event(Gst.App.Sink sink) {
+ if (sink == null || sink != send_rtp) {
+ return false;
+ }
+ Gst.MiniObject obj = sink.try_pull_object(0);
+ if (obj.type == typeof(Gst.Event)) {
+ unowned Gst.TagList tags;
+ if (((Gst.Event)obj).type == Gst.EventType.TAG) {
+ ((Gst.Event)obj).parse_tag(out tags);
+ Gst.Video.OrientationMethod orientation_method;
+ Gst.Video.Orientation.from_tag(tags, out orientation_method);
+ switch (orientation_method) {
+ case Gst.Video.OrientationMethod.IDENTITY:
+ case Gst.Video.OrientationMethod.VERT:
+ default:
+ rotation = 0;
+ break;
+ case Gst.Video.OrientationMethod.@90R:
+ case Gst.Video.OrientationMethod.UL_LR:
+ rotation = 1;
+ break;
+ case Gst.Video.OrientationMethod.@180:
+ case Gst.Video.OrientationMethod.HORIZ:
+ rotation = 2;
+ break;
+ case Gst.Video.OrientationMethod.@90L:
+ case Gst.Video.OrientationMethod.UR_LL:
+ rotation = 3;
+ break;
+ }
+ switch (orientation_method) {
+ case Gst.Video.OrientationMethod.IDENTITY:
+ case Gst.Video.OrientationMethod.@90R:
+ case Gst.Video.OrientationMethod.@180:
+ case Gst.Video.OrientationMethod.@90L:
+ default:
+ flip = false;
+ break;
+ case Gst.Video.OrientationMethod.VERT:
+ case Gst.Video.OrientationMethod.UL_LR:
+ case Gst.Video.OrientationMethod.HORIZ:
+ case Gst.Video.OrientationMethod.UR_LL:
+ flip = true;
+ break;
+ }
+ }
+ }
+ return false;
+ }
+
+
+ private Gst.FlowReturn on_new_sample(Gst.App.Sink sink) {
+ if (sink == null) {
+ debug("Sink is null");
+ return Gst.FlowReturn.EOS;
+ }
+ if (sink != send_rtp && sink != send_rtcp) {
+ warning("unknown sample");
+ return Gst.FlowReturn.NOT_SUPPORTED;
+ }
+ Gst.Sample sample = sink.pull_sample();
+ Gst.Buffer buffer = sample.get_buffer();
+ if (sink == send_rtp) {
+ uint buffer_ssrc = 0, buffer_seq = 0;
+ Gst.RTP.Buffer rtp_buffer;
+ if (Gst.RTP.Buffer.map(buffer, Gst.MapFlags.READ, out rtp_buffer)) {
+ buffer_ssrc = rtp_buffer.get_ssrc();
+ buffer_seq = rtp_buffer.get_seq();
+ next_seqnum_offset = rtp_buffer.get_seq() + 1;
+ next_timestamp_offset_base = rtp_buffer.get_timestamp();
+ next_timestamp_offset_stamp = get_monotonic_time();
+ rtp_buffer.unmap();
+ }
+ if (our_ssrc != buffer_ssrc) {
+ warning_once("Sending RTP %s buffer seq %u with SSRC %u when our ssrc is %u", media, buffer_seq, buffer_ssrc, our_ssrc);
+ }
+ }
+
+ if (sink == send_rtp) {
+ Xmpp.Xep.JingleRtp.HeaderExtension? ext = header_extensions.first_match((it) => it.uri == "urn:3gpp:video-orientation");
+ if (ext != null) {
+ buffer = (Gst.Buffer) buffer.make_writable();
+ Gst.RTP.Buffer rtp_buffer;
+ if (Gst.RTP.Buffer.map(buffer, Gst.MapFlags.WRITE, out rtp_buffer)) {
+ uint8[] extension_data = new uint8[1];
+ bool camera = false;
+ extension_data[0] = extension_data[0] | (rotation & 0x3);
+ if (flip) extension_data[0] = extension_data[0] | 0x4;
+ if (camera) extension_data[0] = extension_data[0] | 0x8;
+ rtp_buffer.add_extension_onebyte_header(ext.id, extension_data);
+ }
+ }
+ }
+
+ prepare_local_crypto();
+
+ uint8[] data;
+ buffer.extract_dup(0, buffer.get_size(), out data);
+ if (sink == send_rtp) {
+ encrypt_and_send_rtp((owned) data);
+ } else if (sink == send_rtcp) {
+ encrypt_and_send_rtcp((owned) data);
+ }
+ return Gst.FlowReturn.OK;
+ }
+
+ private void encrypt_and_send_rtp(owned uint8[] data) {
+ Bytes bytes;
+ if (crypto_session.has_encrypt) {
+ bytes = new Bytes.take(crypto_session.encrypt_rtp(data));
+ } else {
+ bytes = new Bytes.take(data);
+ }
+ on_send_rtp_data(bytes);
+ }
+
+ private void encrypt_and_send_rtcp(owned uint8[] data) {
+ Bytes bytes;
+ if (crypto_session.has_encrypt) {
+ bytes = new Bytes.take(crypto_session.encrypt_rtcp(data));
+ } else {
+ bytes = new Bytes.take(data);
+ }
+ if (rtcp_mux) {
+ on_send_rtp_data(bytes);
+ } else {
+ on_send_rtcp_data(bytes);
+ }
+ }
+
+ private static Gst.PadProbeReturn drop_probe() {
+ return Gst.PadProbeReturn.DROP;
+ }
+
+ private static void on_eos_static(Gst.App.Sink sink, Stream self) {
+ debug("EOS on %s", sink.name);
+ if (sink == self.send_rtp) {
+ Idle.add(() => { self.on_send_rtp_eos(); return Source.REMOVE; });
+ } else if (sink == self.send_rtcp) {
+ Idle.add(() => { self.on_send_rtcp_eos(); return Source.REMOVE; });
+ }
+ }
+
+ private void on_send_rtp_eos() {
+ if (send_rtp_src_pad != null) {
+ send_rtp_src_pad.unlink(send_rtp.get_static_pad("sink"));
+ send_rtp_src_pad = null;
+ }
+ send_rtp.set_locked_state(true);
+ send_rtp.set_state(Gst.State.NULL);
+ // This happens async, so pipe might be gone by now.
+ if (pipe != null) pipe.remove(send_rtp);
+ send_rtp = null;
+ debug("Stopped sending RTP for %u", rtpid);
+ }
+
+ private void on_send_rtcp_eos() {
+ send_rtcp.set_locked_state(true);
+ send_rtcp.set_state(Gst.State.NULL);
+ // This happens async, so pipe might be gone by now.
+ if (pipe != null) pipe.remove(send_rtcp);
+ send_rtcp = null;
+ debug("Stopped sending RTCP for %u", rtpid);
+ }
+
+ public override void destroy() {
+ // Stop network communication
+ push_recv_data = false;
+ if (recv_rtp != null) recv_rtp.end_of_stream();
+ if (recv_rtcp != null) recv_rtcp.end_of_stream();
+ if (send_rtp != null) send_rtp.new_sample.disconnect(on_new_sample);
+ if (send_rtcp != null) send_rtcp.new_sample.disconnect(on_new_sample);
+
+ // Disconnect input device
+ if (input != null) {
+ input_pad.unlink(send_rtp_sink_pad);
+ input.release_request_pad(input_pad);
+ input_pad = null;
+ }
+ if (this._input_device != null) {
+ if (!paused) this._input_device.unlink(input);
+ this._input_device = null;
+ this.input = null;
+ }
+
+ // Inject EOS
+ if (send_rtp_sink_pad != null) {
+ send_rtp_sink_pad.send_event(new Gst.Event.eos());
+ }
+
+ // Disconnect decode
+ if (recv_rtp_src_pad != null) {
+ recv_rtp_src_pad.add_probe(Gst.PadProbeType.BLOCK, drop_probe);
+ recv_rtp_src_pad.unlink(decode.get_static_pad("sink"));
+ }
+
+ // Disconnect output
+ if (output != null) {
+ decode.get_static_pad("src").add_probe(Gst.PadProbeType.BLOCK, drop_probe);
+ decode.unlink(output);
+ }
+
+ // Disconnect output device
+ if (this._output_device != null) {
+ this._output_device.unlink(output);
+ this._output_device = null;
+ }
+ output = null;
+
+ // Destroy decode
+ if (decode != null) {
+ decode.set_locked_state(true);
+ decode.set_state(Gst.State.NULL);
+ pipe.remove(decode);
+ decode = null;
+ decode_depay = null;
+ }
+
+ // Disconnect and remove RTP input
+ if (recv_rtp != null) {
+ recv_rtp.get_static_pad("src").unlink(recv_rtp_sink_pad);
+ recv_rtp.set_locked_state(true);
+ recv_rtp.set_state(Gst.State.NULL);
+ pipe.remove(recv_rtp);
+ recv_rtp = null;
+ }
+
+ // Disconnect and remove RTCP input
+ if (recv_rtcp != null) {
+ recv_rtcp.get_static_pad("src").unlink(recv_rtcp_sink_pad);
+ recv_rtcp.set_locked_state(true);
+ recv_rtcp.set_state(Gst.State.NULL);
+ pipe.remove(recv_rtcp);
+ recv_rtcp = null;
+ }
+
+ // Release rtp pads
+ if (send_rtp_sink_pad != null) {
+ rtpbin.release_request_pad(send_rtp_sink_pad);
+ send_rtp_sink_pad = null;
+ }
+ if (recv_rtp_sink_pad != null) {
+ rtpbin.release_request_pad(recv_rtp_sink_pad);
+ recv_rtp_sink_pad = null;
+ }
+ if (send_rtcp_src_pad != null) {
+ rtpbin.release_request_pad(send_rtcp_src_pad);
+ send_rtcp_src_pad = null;
+ }
+ if (recv_rtcp_sink_pad != null) {
+ rtpbin.release_request_pad(recv_rtcp_sink_pad);
+ recv_rtcp_sink_pad = null;
+ }
+ }
+
+ private void prepare_remote_crypto() {
+ if (remote_crypto != null && remote_crypto.is_valid && !crypto_session.has_decrypt) {
+ crypto_session.set_decryption_key(remote_crypto.crypto_suite, remote_crypto.key, remote_crypto.salt);
+ debug("Setting up decryption with key params %s", remote_crypto.key_params);
+ }
+ }
+
+ private uint16 previous_incoming_video_orientation_degree = uint16.MAX;
+ public signal void incoming_video_orientation_changed(uint16 degree);
+
+ public override void on_recv_rtp_data(Bytes bytes) {
+ if (rtcp_mux && bytes.length >= 2 && bytes.get(1) >= 192 && bytes.get(1) < 224) {
+ on_recv_rtcp_data(bytes);
+ return;
+ }
+
+ if (push_recv_data) {
+ prepare_remote_crypto();
+
+ Gst.Buffer buffer;
+ if (crypto_session.has_decrypt) {
+ try {
+ buffer = new Gst.Buffer.wrapped(crypto_session.decrypt_rtp(bytes.get_data()));
+ } catch (Error e) {
+ warning("%s (%d)", e.message, e.code);
+ return;
+ }
+ } else {
+ buffer = new Gst.Buffer.wrapped_bytes(bytes);
+ }
+
+ Gst.RTP.Buffer rtp_buffer;
+ if (Gst.RTP.Buffer.map(buffer, Gst.MapFlags.READ, out rtp_buffer)) {
+ uint buffer_ssrc = rtp_buffer.get_ssrc();
+ uint buffer_seq = rtp_buffer.get_seq();
+ if (rtp_buffer.get_extension()) {
+ Xmpp.Xep.JingleRtp.HeaderExtension? ext = header_extensions.first_match((it) => it.uri == "urn:3gpp:video-orientation");
+ if (ext != null) {
+ unowned uint8[] extension_data;
+ if (rtp_buffer.get_extension_onebyte_header(ext.id, 0, out extension_data) && extension_data.length == 1) {
+ bool camera = (extension_data[0] & 0x8) > 0;
+ bool flip = (extension_data[0] & 0x4) > 0;
+ uint8 rotation = extension_data[0] & 0x3;
+ uint16 rotation_degree = uint16.MAX;
+ switch(rotation) {
+ case 0: rotation_degree = 0; break;
+ case 1: rotation_degree = 90; break;
+ case 2: rotation_degree = 180; break;
+ case 3: rotation_degree = 270; break;
+ }
+ if (rotation_degree != previous_incoming_video_orientation_degree) {
+ incoming_video_orientation_changed(rotation_degree);
+ previous_incoming_video_orientation_degree = rotation_degree;
+ }
+ }
+ }
+ }
+ rtp_buffer.unmap();
+ }
+
+ recv_rtp.push_buffer((owned) buffer);
+ }
+ }
+
+ public override void on_recv_rtcp_data(Bytes bytes) {
+ if (push_recv_data) {
+ prepare_remote_crypto();
+
+ Gst.Buffer buffer;
+ if (crypto_session.has_decrypt) {
+ try {
+ buffer = new Gst.Buffer.wrapped(crypto_session.decrypt_rtcp(bytes.get_data()));
+ } catch (Error e) {
+ warning("%s (%d)", e.message, e.code);
+ return;
+ }
+ } else {
+ buffer = new Gst.Buffer.wrapped_bytes(bytes);
+ }
+
+ recv_rtcp.push_buffer((owned) buffer);
+ }
+ }
+
+ public override void on_rtp_ready() {
+ // If full frame has been sent before the connection was ready, the counterpart would only display our video after the next full frame.
+ // Send a full frame to let the counterpart display our video asap
+ rtpbin.send_event(new Gst.Event.custom(
+ Gst.EventType.CUSTOM_UPSTREAM,
+ new Gst.Structure("GstForceKeyUnit", "all-headers", typeof(bool), true, null))
+ );
+ }
+
+ public override void on_rtcp_ready() {
+ int rtp_session_id = (int) rtpid;
+ uint64 max_delay = int.MAX;
+ Object rtp_session;
+ bool rtp_sent;
+ GLib.Signal.emit_by_name(rtpbin, "get-internal-session", rtp_session_id, out rtp_session);
+ GLib.Signal.emit_by_name(rtp_session, "send-rtcp-full", max_delay, out rtp_sent);
+ debug("RTCP is ready, resending rtcp: %s", rtp_sent.to_string());
+ }
+
+ public void on_ssrc_pad_added(uint32 ssrc, Gst.Pad pad) {
+ debug("New ssrc %u with pad %s", ssrc, pad.name);
+ if (participant_ssrc != 0 && participant_ssrc != ssrc) {
+ warning("Got second ssrc on stream (old: %u, new: %u), ignoring", participant_ssrc, ssrc);
+ return;
+ }
+ participant_ssrc = ssrc;
+ recv_rtp_src_pad = pad;
+ if (decode != null) {
+ plugin.pause();
+ debug("Link %s to %s decode for %s", recv_rtp_src_pad.name, media, name);
+ recv_rtp_src_pad.link(decode.get_static_pad("sink"));
+ plugin.unpause();
+ }
+ }
+
+ public void on_send_rtp_src_added(Gst.Pad pad) {
+ send_rtp_src_pad = pad;
+ if (send_rtp != null) {
+ plugin.pause();
+ debug("Link %s to %s send_rtp for %s", send_rtp_src_pad.name, media, name);
+ send_rtp_src_pad.link(send_rtp.get_static_pad("sink"));
+ plugin.unpause();
+ }
+ }
+
+ public void set_input(Gst.Element? input) {
+ set_input_and_pause(input, paused);
+ }
+
+ private void set_input_and_pause(Gst.Element? input, bool paused) {
+ if (created && this.input != null) {
+ this.input_pad.unlink(send_rtp_sink_pad);
+ this.input.release_request_pad(this.input_pad);
+ this.input_pad = null;
+ this.input = null;
+ }
+
+ this.input = input;
+ this.paused = paused;
+
+ if (created && sending && !paused && input != null) {
+ plugin.pause();
+ input_pad = input.get_request_pad(@"src_$rtpid");
+ input_pad.link(send_rtp_sink_pad);
+ plugin.unpause();
+ }
+ }
+
+ public void pause() {
+ if (paused) return;
+ var input = this.input;
+ set_input_and_pause(null, true);
+ if (input != null && input_device != null) input_device.unlink(input);
+ }
+
+ public void unpause() {
+ if (!paused) return;
+ set_input_and_pause(input_device != null ? input_device.link_source(payload_type, our_ssrc, next_seqnum_offset, next_timestamp_offset) : null, false);
+ input_device.update_bitrate(payload_type, target_send_bitrate);
+ }
+
+ public uint get_participant_ssrc(Xmpp.Jid participant) {
+ if (participant.equals(content.session.peer_full_jid)) {
+ return participant_ssrc;
+ }
+ return 0;
+ }
+
+ ulong block_probe_handler_id = 0;
+ public virtual void add_output(Gst.Element element, Xmpp.Jid? participant = null) {
+ if (output != null) {
+ critical("add_output() invoked more than once");
+ return;
+ }
+ if (participant != null) {
+ critical("add_output() invoked with participant when not supported");
+ return;
+ }
+ this.output = element;
+ if (created) {
+ plugin.pause();
+ decode.link(element);
+ if (block_probe_handler_id != 0) {
+ decode.get_static_pad("src").remove_probe(block_probe_handler_id);
+ }
+ plugin.unpause();
+ }
+ }
+
+ public virtual void remove_output(Gst.Element element) {
+ if (output != element) {
+ critical("remove_output() invoked without prior add_output()");
+ return;
+ }
+ if (created) {
+ block_probe_handler_id = decode.get_static_pad("src").add_probe(Gst.PadProbeType.BLOCK, drop_probe);
+ decode.unlink(element);
+ }
+ if (this._output_device != null) {
+ this._output_device.unlink(element);
+ this._output_device = null;
+ }
+ this.output = null;
+ }
+}
+
+public class Dino.Plugins.Rtp.VideoStream : Stream {
+ private Gee.List<Gst.Element> outputs = new ArrayList<Gst.Element>();
+ private Gst.Element output_tee;
+ private Gst.Element rotate;
+ private ulong incoming_video_orientation_changed_handler;
+
+ public VideoStream(Plugin plugin, Xmpp.Xep.Jingle.Content content) {
+ base(plugin, content);
+ if (media != "video") critical("VideoStream created for non-video media");
+ }
+
+ public override void create() {
+ incoming_video_orientation_changed_handler = incoming_video_orientation_changed.connect(on_video_orientation_changed);
+ plugin.pause();
+ rotate = Gst.ElementFactory.make("videoflip", @"video_rotate_$rtpid");
+ pipe.add(rotate);
+ output_tee = Gst.ElementFactory.make("tee", @"video_tee_$rtpid");
+ output_tee.@set("allow-not-linked", true);
+ pipe.add(output_tee);
+ rotate.link(output_tee);
+ add_output(rotate);
+ base.create();
+ foreach (Gst.Element output in outputs) {
+ output_tee.link(output);
+ }
+ plugin.unpause();
+ }
+
+ private void on_video_orientation_changed(uint16 degree) {
+ if (rotate != null) {
+ switch (degree) {
+ case 0:
+ rotate.@set("method", 0);
+ break;
+ case 90:
+ rotate.@set("method", 1);
+ break;
+ case 180:
+ rotate.@set("method", 2);
+ break;
+ case 270:
+ rotate.@set("method", 3);
+ break;
+ }
+ }
+ }
+
+ public override void destroy() {
+ foreach (Gst.Element output in outputs) {
+ output_tee.unlink(output);
+ }
+ base.destroy();
+ rotate.set_locked_state(true);
+ rotate.set_state(Gst.State.NULL);
+ rotate.unlink(output_tee);
+ pipe.remove(rotate);
+ rotate = null;
+ output_tee.set_locked_state(true);
+ output_tee.set_state(Gst.State.NULL);
+ pipe.remove(output_tee);
+ output_tee = null;
+ disconnect(incoming_video_orientation_changed_handler);
+ }
+
+ public override void add_output(Gst.Element element, Xmpp.Jid? participant) {
+ if (element == output_tee || element == rotate) {
+ base.add_output(element);
+ return;
+ }
+ outputs.add(element);
+ if (output_tee != null) {
+ output_tee.link(element);
+ }
+ }
+
+ public override void remove_output(Gst.Element element) {
+ if (element == output_tee || element == rotate) {
+ base.remove_output(element);
+ return;
+ }
+ outputs.remove(element);
+ if (output_tee != null) {
+ output_tee.unlink(element);
+ }
+ }
+}
diff --git a/main/src/plugins/rtp/video_widget.vala b/main/src/plugins/rtp/video_widget.vala
new file mode 100644
index 00000000..af6eb14e
--- /dev/null
+++ b/main/src/plugins/rtp/video_widget.vala
@@ -0,0 +1,293 @@
+private static extern unowned Gst.Video.Info gst_video_frame_get_video_info(Gst.Video.Frame frame);
+[CCode (array_length_type = "size_t", type = "void*")]
+private static extern unowned uint8[] gst_video_frame_get_data(Gst.Video.Frame frame);
+
+public class Dino.Plugins.Rtp.Paintable : Gdk.Paintable, Object {
+ private Gdk.Paintable image;
+ private double pixel_aspect_ratio;
+
+ public override Gdk.PaintableFlags get_flags() {
+ return 0;
+ }
+
+ public void snapshot(Gdk.Snapshot snapshot, double width, double height) {
+ if (image != null) image.snapshot(snapshot, width, height);
+ }
+
+ public override Gdk.Paintable get_current_image() {
+ if (image != null) return image;
+ return Gdk.Paintable.empty(0, 0);
+ }
+
+ public override int get_intrinsic_width() {
+ if (image != null) return (int) (pixel_aspect_ratio * image.get_intrinsic_width());
+ return 0;
+ }
+
+ public override int get_intrinsic_height() {
+ if (image != null) return (int) (pixel_aspect_ratio * image.get_intrinsic_height());
+ return 0;
+ }
+
+ public override double get_intrinsic_aspect_ratio() {
+ if (image != null) return pixel_aspect_ratio * image.get_intrinsic_aspect_ratio();
+ return 0.0;
+ }
+
+ public override void dispose() {
+ image = null;
+ base.dispose();
+ }
+
+ private void set_paintable(Gdk.Paintable paintable, double pixel_aspect_ratio) {
+ if (paintable == image) return;
+ bool size_changed = image == null ||
+ this.pixel_aspect_ratio * image.get_intrinsic_width() != pixel_aspect_ratio * paintable.get_intrinsic_width() ||
+ image.get_intrinsic_height() != paintable.get_intrinsic_height() ||
+ image.get_intrinsic_aspect_ratio() != paintable.get_intrinsic_aspect_ratio();
+
+ if (image != null) this.image.dispose();
+ this.image = paintable;
+ this.pixel_aspect_ratio = pixel_aspect_ratio;
+
+ if (size_changed) invalidate_size();
+ invalidate_contents();
+ }
+
+ public void queue_set_texture(Gdk.Texture texture, double pixel_aspect_ratio) {
+ Idle.add(() => {
+ set_paintable(texture, pixel_aspect_ratio);
+ return Source.REMOVE;
+ }, Priority.DEFAULT);
+ }
+}
+
+public class Dino.Plugins.Rtp.Sink : Gst.Video.Sink {
+ internal Paintable paintable = new Paintable();
+ private Gst.Video.Info info = new Gst.Video.Info();
+
+ class construct {
+ set_metadata("Dino Gtk Video Sink", "Sink/Video", "The video sink used by Dino", "Dino Team <team@dino.im>");
+ add_pad_template(new Gst.PadTemplate("sink", Gst.PadDirection.SINK, Gst.PadPresence.ALWAYS, Gst.Caps.from_string(@"video/x-raw, format={ BGRA, ARGB, RGBA, ABGR, RGB, BGR }")));
+ }
+
+ construct {
+ set_drop_out_of_segment(false);
+ }
+
+ public override bool set_info(Gst.Caps caps, Gst.Video.Info info) {
+ this.info = info;
+ return true;
+ }
+
+ public override void get_times(Gst.Buffer buffer, out Gst.ClockTime start, out Gst.ClockTime end) {
+ if (buffer.pts != -1) {
+ start = buffer.pts;
+ if (buffer.duration != -1) {
+ end = start + buffer.duration;
+ } else if (info.fps_n > 0) {
+ end = start + Gst.Util.uint64_scale_int(Gst.SECOND, info.fps_d, info.fps_n);
+ }
+ }
+ }
+
+ public override Gst.Caps get_caps(Gst.Caps? filter) {
+ Gst.Caps caps = Gst.Caps.from_string("video/x-raw, format={ BGRA, ARGB, RGBA, ABGR, RGB, BGR }");
+
+ if (filter != null) {
+ return filter.intersect(caps, Gst.CapsIntersectMode.FIRST);
+ } else {
+ return caps;
+ }
+ }
+
+ private Gdk.MemoryFormat memory_format_from_video(Gst.Video.Format format) {
+ switch (format) {
+ case Gst.Video.Format.BGRA: return Gdk.MemoryFormat.B8G8R8A8;
+ case Gst.Video.Format.ARGB: return Gdk.MemoryFormat.A8R8G8B8;
+ case Gst.Video.Format.RGBA: return Gdk.MemoryFormat.R8G8B8A8;
+ case Gst.Video.Format.ABGR: return Gdk.MemoryFormat.A8B8G8R8;
+ case Gst.Video.Format.RGB: return Gdk.MemoryFormat.R8G8B8;
+ case Gst.Video.Format.BGR: return Gdk.MemoryFormat.B8G8R8;
+ default:
+ warning("Unsupported video format: %s", format.to_string());
+ return Gdk.MemoryFormat.A8R8G8B8;
+ }
+ }
+
+ private Gdk.Texture texture_from_buffer(Gst.Buffer buffer, out double pixel_aspect_ratio) {
+ Gst.Video.Frame frame = Gst.Video.Frame();
+ Gdk.Texture texture;
+
+ if (frame.map(info, buffer, Gst.MapFlags.READ)) {
+ unowned Gst.Video.Info info = gst_video_frame_get_video_info(frame);
+ Bytes bytes = new Bytes.take(gst_video_frame_get_data(frame));
+ texture = new Gdk.MemoryTexture(info.width, info.height, memory_format_from_video(info.finfo.format), bytes, info.stride[0]);
+ pixel_aspect_ratio = ((double) info.par_n) / ((double) info.par_d);
+ frame.unmap();
+ } else {
+ texture = null;
+ }
+ return texture;
+ }
+
+ private void queue_buffer(Gst.Buffer buf) {
+ double pixel_aspect_ratio;
+ Gdk.Texture texture = texture_from_buffer(buf, out pixel_aspect_ratio);
+ if (texture != null) {
+ paintable.queue_set_texture(texture, pixel_aspect_ratio);
+ }
+ }
+
+ public override Gst.FlowReturn show_frame(Gst.Buffer buf) {
+ @lock.lock();
+ queue_buffer(buf);
+ @lock.unlock();
+
+ return Gst.FlowReturn.OK;
+ }
+}
+
+public class Dino.Plugins.Rtp.VideoWidget : Gtk.Widget, Dino.Plugins.VideoCallWidget {
+ private const int RECAPS_AFTER_CHANGE = 5;
+ private static uint last_id = 0;
+
+ public uint id { get; private set; }
+ public Plugin plugin { get; private set; }
+ public Gst.Pipeline pipe { get {
+ return plugin.pipe;
+ }}
+
+ private bool attached;
+ private Device? connected_device;
+ private Gst.Element? connected_device_element;
+ private Stream? connected_stream;
+ private Gst.Element prepare;
+ private Gst.Caps last_input_caps;
+ private Gst.Caps last_caps;
+ private int recaps_since_change;
+ private Sink sink;
+ private Gtk.Picture widget;
+
+ private static uint active_widgets = 0;
+
+ public static bool has_instances() {
+ return active_widgets > 0;
+ }
+
+ private static void notify_weak(Object widget_object) {
+ if (active_widgets > 0) {
+ debug("Video widget %p destroyed. left=%u", widget_object, active_widgets);
+ active_widgets--;
+ }
+ if (active_widgets == 0 && widget_object is VideoWidget) {
+ ((VideoWidget)widget_object).plugin.destroy_call_pipe_if_unused();
+ }
+ }
+
+ public VideoWidget(Plugin plugin) {
+ this.plugin = plugin;
+ this.layout_manager = new Gtk.BinLayout();
+
+ id = last_id++;
+ sink = new Sink() { async = false, sync = true };
+ widget = new Gtk.Picture.for_paintable(sink.paintable);
+ widget.insert_after(this, null);
+ active_widgets++;
+ debug("Video widget %p created. total=%u", this, active_widgets);
+ this.weak_ref(notify_weak);
+ }
+
+ public void input_caps_changed(GLib.Object pad, ParamSpec spec) {
+ Gst.Caps? caps = ((Gst.Pad)pad).caps;
+ if (caps == null) {
+ debug("Input: No caps");
+ return;
+ }
+
+ int width, height;
+ caps.get_structure(0).get_int("width", out width);
+ caps.get_structure(0).get_int("height", out height);
+ debug("Input resolution changed: %ix%i", width, height);
+ // Invoke signal on GTK main loop as recipients are likely to use it for doing GTK operations
+ Idle.add(() => {
+ resolution_changed(width, height);
+ return Source.REMOVE;
+ });
+ last_input_caps = caps;
+ }
+
+ public void display_stream(Xmpp.Xep.JingleRtp.Stream? stream, Xmpp.Jid jid) {
+ if (sink == null) return;
+ detach();
+ if (stream.media != "video") return;
+ connected_stream = stream as Stream?;
+ if (connected_stream == null) return;
+ plugin.pause();
+ pipe.add(sink);
+ prepare = Gst.parse_bin_from_description(@"videoconvert name=video_widget_$(id)_convert", true);
+ prepare.name = @"video_widget_$(id)_prepare";
+ prepare.get_static_pad("sink").notify["caps"].connect(input_caps_changed);
+ pipe.add(prepare);
+ connected_stream.add_output(prepare);
+ prepare.link(sink);
+ sink.set_locked_state(false);
+ plugin.unpause();
+ attached = true;
+ }
+
+ public void display_device(MediaDevice media_device) {
+ if (sink == null) return;
+ detach();
+ connected_device = media_device as Device;
+ if (connected_device == null) return;
+ plugin.pause();
+ pipe.add(sink);
+ prepare = Gst.parse_bin_from_description(@"videoflip video-direction=auto name=video_widget_$(id)_orientation ! videoflip method=horizontal-flip name=video_widget_$(id)_flip ! videoconvert name=video_widget_$(id)_convert", true);
+ prepare.name = @"video_widget_$(id)_prepare";
+ if (prepare is Gst.Bin) {
+ ((Gst.Bin) prepare).get_by_name(@"video_widget_$(id)_flip").get_static_pad("sink").notify["caps"].connect(input_caps_changed);
+ } else {
+ prepare.get_static_pad("sink").notify["caps"].connect(input_caps_changed);
+ }
+ pipe.add(prepare);
+ connected_device_element = connected_device.link_source();
+ connected_device_element.link(prepare);
+ prepare.link(sink);
+ sink.set_locked_state(false);
+ plugin.unpause();
+ attached = true;
+ }
+
+ public void detach() {
+ if (sink == null) return;
+ if (attached) {
+ debug("Detaching");
+ if (connected_stream != null) {
+ connected_stream.remove_output(prepare);
+ connected_stream = null;
+ }
+ if (connected_device != null) {
+ connected_device_element.unlink(sink);
+ connected_device_element = null;
+ connected_device.unlink();
+ connected_device = null;
+ }
+ prepare.set_locked_state(true);
+ prepare.set_state(Gst.State.NULL);
+ pipe.remove(prepare);
+ prepare = null;
+ sink.set_locked_state(true);
+ sink.set_state(Gst.State.NULL);
+ pipe.remove(sink);
+ attached = false;
+ }
+ }
+
+ public override void dispose() {
+ detach();
+ if (widget != null) widget.unparent();
+ widget = null;
+ sink = null;
+ }
+}
diff --git a/main/src/plugins/rtp/voice_processor.vala b/main/src/plugins/rtp/voice_processor.vala
new file mode 100644
index 00000000..064684c5
--- /dev/null
+++ b/main/src/plugins/rtp/voice_processor.vala
@@ -0,0 +1,209 @@
+using Gst;
+
+namespace Dino.Plugins.Rtp {
+public static extern Buffer adjust_to_running_time(Base.Transform transform, Buffer buf);
+}
+
+public class Dino.Plugins.Rtp.EchoProbe : Audio.Filter {
+ private static StaticPadTemplate sink_template = {"sink", PadDirection.SINK, PadPresence.ALWAYS, {null, "audio/x-raw,rate=48000,channels=1,layout=interleaved,format=S16LE"}};
+ private static StaticPadTemplate src_template = {"src", PadDirection.SRC, PadPresence.ALWAYS, {null, "audio/x-raw,rate=48000,channels=1,layout=interleaved,format=S16LE"}};
+ public Audio.Info audio_info { get; private set; }
+ public signal void on_new_buffer(owned Buffer buffer);
+ public signal void on_new_delay(int delay);
+ private uint period_samples;
+ private uint period_size;
+ public int delay { get; private set; }
+ private Base.Adapter adapter = new Base.Adapter();
+
+ static construct {
+ add_static_pad_template(sink_template);
+ add_static_pad_template(src_template);
+ set_static_metadata("Acoustic Echo Canceller probe", "Generic/Audio", "Gathers playback buffers for echo cancellation", "Dino Team <contact@dino.im>");
+ }
+
+ construct {
+ set_passthrough(true);
+ }
+
+ public override bool setup(Audio.Info info) {
+ audio_info = info;
+ period_samples = info.rate / 100; // 10ms buffers
+ period_size = period_samples * info.bpf;
+ return true;
+ }
+
+ public override bool src_event(owned Event event) {
+ Query query = new Query.latency();
+ if (event.type == EventType.LATENCY && srcpad != null && srcpad.query(query)) {
+ ClockTime upstream_latency;
+ query.parse_latency(null, out upstream_latency, null);
+ int delay = this.delay;
+ if (upstream_latency != CLOCK_TIME_NONE) {
+ delay = (int) (upstream_latency / MSECOND);
+ } else {
+ delay = 0;
+ }
+ if (delay != this.delay) {
+ debug("Delay adjusted from %ms to %dms", this.delay, delay);
+ this.delay = delay;
+ on_new_delay(delay);
+ }
+ }
+ return base.src_event((owned) event);
+ }
+
+ public override FlowReturn transform_ip(Buffer buf) {
+ lock (adapter) {
+ adapter.push(adjust_to_running_time(this, buf));
+ while (adapter.available() > period_size) {
+ on_new_buffer(adapter.take_buffer(period_size));
+ }
+ }
+ return FlowReturn.OK;
+ }
+
+ public override bool stop() {
+ adapter.clear();
+ return true;
+ }
+}
+
+public class Dino.Plugins.Rtp.VoiceProcessor : Audio.Filter {
+ private static StaticPadTemplate sink_template = {"sink", PadDirection.SINK, PadPresence.ALWAYS, {null, "audio/x-raw,rate=48000,channels=1,layout=interleaved,format=S16LE"}};
+ private static StaticPadTemplate src_template = {"src", PadDirection.SRC, PadPresence.ALWAYS, {null, "audio/x-raw,rate=48000,channels=1,layout=interleaved,format=S16LE"}};
+ public Audio.Info audio_info { get; private set; }
+ private ulong process_outgoing_buffer_handler_id;
+ private ulong process_stream_delay_handler_id;
+ private uint adjust_delay_timeout_id;
+ private uint period_samples;
+ private uint period_size;
+ private Base.Adapter adapter = new Base.Adapter();
+ private EchoProbe? echo_probe;
+ private Audio.StreamVolume? stream_volume;
+ private ClockTime last_reverse;
+ private void* native;
+
+ static construct {
+ add_static_pad_template(sink_template);
+ add_static_pad_template(src_template);
+ set_static_metadata("Voice Processor (AGC, AEC, filters, etc.)", "Generic/Audio", "Pre-processes voice with WebRTC Audio Processing Library", "Dino Team <contact@dino.im>");
+ }
+
+ construct {
+ set_passthrough(false);
+ }
+
+ public VoiceProcessor(EchoProbe? echo_probe = null, Audio.StreamVolume? stream_volume = null) {
+ this.echo_probe = echo_probe;
+ this.stream_volume = stream_volume;
+ }
+
+ private static extern void* init_native(int stream_delay);
+ private static extern void destroy_native(void* native);
+ private static extern void analyze_reverse_stream(void* native, Audio.Info info, Buffer buffer);
+ private static extern void process_stream(void* native, Audio.Info info, Buffer buffer);
+ private static extern void adjust_stream_delay(void* native);
+ private static extern void set_stream_delay(void* native, int delay);
+ private static extern void notify_gain_level(void* native, int gain_level);
+ private static extern int get_suggested_gain_level(void* native);
+ private static extern bool get_stream_has_voice(void* native);
+
+ public override bool setup(Audio.Info info) {
+ debug("VoiceProcessor.setup(%s)", info.to_caps().to_string());
+ audio_info = info;
+ period_samples = info.rate / 100; // 10ms buffers
+ period_size = period_samples * info.bpf;
+ adapter.clear();
+ return true;
+ }
+
+ public override bool start() {
+ native = init_native(echo_probe.delay);
+ if (process_outgoing_buffer_handler_id == 0 && echo_probe != null) {
+ process_outgoing_buffer_handler_id = echo_probe.on_new_buffer.connect(process_outgoing_buffer);
+ }
+ if (process_stream_delay_handler_id == 0 && echo_probe != null) {
+ process_stream_delay_handler_id = echo_probe.on_new_delay.connect(process_stream_delay);
+ }
+ if (stream_volume == null && sinkpad.get_peer() != null && sinkpad.get_peer().get_parent_element() is Audio.StreamVolume) {
+ stream_volume = sinkpad.get_peer().get_parent_element() as Audio.StreamVolume;
+ }
+ return true;
+ }
+
+ private bool adjust_delay() {
+ if (native != null) {
+ adjust_stream_delay(native);
+ return Source.CONTINUE;
+ } else {
+ adjust_delay_timeout_id = 0;
+ return Source.REMOVE;
+ }
+ }
+
+ private void process_outgoing_buffer(owned Buffer buffer) {
+ if (buffer.pts != uint64.MAX) {
+ last_reverse = buffer.pts;
+ }
+ if (native != null) {
+ buffer = (Buffer) buffer.make_writable();
+ analyze_reverse_stream(native, echo_probe.audio_info, buffer);
+ }
+ if (adjust_delay_timeout_id == 0 && echo_probe != null) {
+ adjust_delay_timeout_id = Timeout.add(1000, adjust_delay);
+ }
+ }
+
+ private void process_stream_delay(int stream_delay) {
+ if (native != null) {
+ set_stream_delay(native, stream_delay);
+ }
+ }
+
+ public override FlowReturn submit_input_buffer(bool is_discont, Buffer input) {
+ lock (adapter) {
+ if (is_discont) {
+ adapter.clear();
+ }
+ adapter.push(adjust_to_running_time(this, input));
+ }
+ return FlowReturn.OK;
+ }
+
+ public override FlowReturn generate_output(out Buffer output_buffer) {
+ lock (adapter) {
+ if (adapter.available() >= period_size) {
+ output_buffer = (Gst.Buffer) adapter.take_buffer(period_size).make_writable();
+ int old_gain_level = 0;
+ if (stream_volume != null) {
+ old_gain_level = (int) (stream_volume.get_volume(Audio.StreamVolumeFormat.LINEAR) * 255.0);
+ notify_gain_level(native, old_gain_level);
+ }
+ process_stream(native, audio_info, output_buffer);
+ if (stream_volume != null) {
+ int new_gain_level = get_suggested_gain_level(native);
+ if (old_gain_level != new_gain_level) {
+ debug("Gain: %i -> %i", old_gain_level, new_gain_level);
+ stream_volume.set_volume(Audio.StreamVolumeFormat.LINEAR, ((double)new_gain_level) / 255.0);
+ }
+ }
+ }
+ }
+ return FlowReturn.OK;
+ }
+
+ public override bool stop() {
+ if (process_outgoing_buffer_handler_id != 0) {
+ echo_probe.disconnect(process_outgoing_buffer_handler_id);
+ process_outgoing_buffer_handler_id = 0;
+ }
+ if (adjust_delay_timeout_id != 0) {
+ Source.remove(adjust_delay_timeout_id);
+ adjust_delay_timeout_id = 0;
+ }
+ adapter.clear();
+ destroy_native(native);
+ native = null;
+ return true;
+ }
+} \ No newline at end of file
diff --git a/main/src/plugins/rtp/voice_processor_native.cpp b/main/src/plugins/rtp/voice_processor_native.cpp
new file mode 100644
index 00000000..71cc8a54
--- /dev/null
+++ b/main/src/plugins/rtp/voice_processor_native.cpp
@@ -0,0 +1,256 @@
+#include <algorithm>
+#include <gst/gst.h>
+#include <gst/audio/audio.h>
+#if defined(WEBRTC0)
+#include <webrtc/modules/audio_processing/include/audio_processing.h>
+#include <webrtc/modules/interface/module_common_types.h>
+#include <webrtc/system_wrappers/include/trace.h>
+#elif defined(WEBRTC1) || defined(WEBRTC2)
+#include <modules/audio_processing/include/audio_processing.h>
+#else
+#error "Need to define WEBRTC0, WEBRTC1 or WEBRTC2"
+#endif
+
+#define SAMPLE_RATE 48000
+#define SAMPLE_CHANNELS 1
+
+struct _DinoPluginsRtpVoiceProcessorNative {
+#if defined(WEBRTC0)
+ webrtc::AudioProcessing *apm;
+#elif defined(WEBRTC1) || defined(WEBRTC2)
+ rtc::scoped_refptr<webrtc::AudioProcessing> apm;
+#endif
+ gint stream_delay = 0;
+ gint last_median = 0;
+ gint last_poor_delays = 0;
+};
+
+extern "C" void *dino_plugins_rtp_adjust_to_running_time(GstBaseTransform *transform, GstBuffer *buffer) {
+ GstBuffer *copy = gst_buffer_copy(buffer);
+ GST_BUFFER_PTS(copy) = gst_segment_to_running_time(&transform->segment, GST_FORMAT_TIME, GST_BUFFER_PTS(buffer));
+ return copy;
+}
+
+extern "C" void *dino_plugins_rtp_voice_processor_init_native(gint stream_delay) {
+ auto *native = new _DinoPluginsRtpVoiceProcessorNative();
+ native->stream_delay = stream_delay;
+#if defined(WEBRTC0)
+ webrtc::Config config;
+ config.Set<webrtc::ExtendedFilter>(new webrtc::ExtendedFilter(true));
+ config.Set<webrtc::ExperimentalAgc>(new webrtc::ExperimentalAgc(true, 85));
+ native->apm = webrtc::AudioProcessing::Create(config);
+
+ webrtc::AudioProcessing *apm = native->apm;
+ webrtc::ProcessingConfig pconfig;
+ pconfig.streams[webrtc::ProcessingConfig::kInputStream] =
+ webrtc::StreamConfig(SAMPLE_RATE, SAMPLE_CHANNELS, false);
+ pconfig.streams[webrtc::ProcessingConfig::kOutputStream] =
+ webrtc::StreamConfig(SAMPLE_RATE, SAMPLE_CHANNELS, false);
+ pconfig.streams[webrtc::ProcessingConfig::kReverseInputStream] =
+ webrtc::StreamConfig(SAMPLE_RATE, SAMPLE_CHANNELS, false);
+ pconfig.streams[webrtc::ProcessingConfig::kReverseOutputStream] =
+ webrtc::StreamConfig(SAMPLE_RATE, SAMPLE_CHANNELS, false);
+ apm->Initialize(pconfig);
+ apm->high_pass_filter()->Enable(true);
+ apm->echo_cancellation()->enable_drift_compensation(false);
+ apm->echo_cancellation()->set_suppression_level(webrtc::EchoCancellation::kModerateSuppression);
+ apm->echo_cancellation()->enable_delay_logging(true);
+ apm->echo_cancellation()->Enable(true);
+ apm->noise_suppression()->set_level(webrtc::NoiseSuppression::kModerate);
+ apm->noise_suppression()->Enable(true);
+ apm->gain_control()->set_analog_level_limits(0, 255);
+ apm->gain_control()->set_mode(webrtc::GainControl::kAdaptiveAnalog);
+ apm->gain_control()->set_target_level_dbfs(3);
+ apm->gain_control()->set_compression_gain_db(9);
+ apm->gain_control()->enable_limiter(true);
+ apm->gain_control()->Enable(true);
+ apm->voice_detection()->set_likelihood(webrtc::VoiceDetection::Likelihood::kLowLikelihood);
+ apm->voice_detection()->Enable(true);
+#elif defined(WEBRTC1) || defined(WEBRTC2)
+ webrtc::AudioProcessing::Config config;
+ rtc::scoped_refptr<webrtc::AudioProcessing> apm = webrtc::AudioProcessingBuilder().Create();
+ native->apm = apm;
+ config.high_pass_filter.enabled = true;
+ config.echo_canceller.enabled = true;
+ config.noise_suppression.level = webrtc::AudioProcessing::Config::NoiseSuppression::Level::kModerate;
+ config.noise_suppression.enabled = true;
+ config.gain_controller1.target_level_dbfs = 3;
+ config.gain_controller1.compression_gain_db = 9;
+ config.gain_controller1.enable_limiter = true;
+ config.gain_controller1.enabled = true;
+#ifdef WEBRTC1
+ config.level_estimation.enabled = true;
+ config.voice_detection.enabled = true;
+#endif
+ apm->ApplyConfig(config);
+#endif
+ return native;
+}
+
+extern "C" void
+dino_plugins_rtp_voice_processor_analyze_reverse_stream(void *native_ptr, GstAudioInfo *info, GstBuffer *buffer) {
+ auto *native = (_DinoPluginsRtpVoiceProcessorNative *) native_ptr;
+ int err;
+
+#if defined(WEBRTC0)
+ webrtc::StreamConfig config(SAMPLE_RATE, SAMPLE_CHANNELS, false);
+ webrtc::AudioProcessing *apm = native->apm;
+ GstMapInfo map;
+ gst_buffer_map(buffer, &map, GST_MAP_READ);
+
+ webrtc::AudioFrame frame;
+ frame.num_channels_ = info->channels;
+ frame.sample_rate_hz_ = info->rate;
+ frame.samples_per_channel_ = gst_buffer_get_size(buffer) / info->bpf;
+ memcpy(frame.data_, map.data, frame.samples_per_channel_ * info->bpf);
+
+ apm->set_stream_delay_ms (native->stream_delay);
+ err = apm->AnalyzeReverseStream(&frame);
+
+ gst_buffer_unmap(buffer, &map);
+#elif defined(WEBRTC1) || defined(WEBRTC2)
+ rtc::scoped_refptr<webrtc::AudioProcessing> apm = native->apm;
+#ifdef WEBRTC1
+ webrtc::StreamConfig config(SAMPLE_RATE, SAMPLE_CHANNELS, false);
+#else
+ webrtc::StreamConfig config(SAMPLE_RATE, SAMPLE_CHANNELS);
+#endif
+ GstAudioBuffer abuf;
+ if (!gst_audio_buffer_map (&abuf, info, buffer, GST_MAP_READWRITE)) {
+ g_warning("voice_processor_native.cpp: analyze_reverse_stream: gst_audio_buffer_map failed");
+ return;
+ }
+
+ apm->set_stream_delay_ms (native->stream_delay);
+ auto * const data = (int16_t * const) abuf.planes[0];
+ err = apm->ProcessReverseStream (data, config, config, data);
+
+ gst_audio_buffer_unmap (&abuf);
+#endif
+ if (err < 0) g_warning("voice_processor_native.cpp: ProcessReverseStream %i", err);
+}
+
+extern "C" void dino_plugins_rtp_voice_processor_notify_gain_level(void *native_ptr, gint gain_level) {
+ auto *native = (_DinoPluginsRtpVoiceProcessorNative *) native_ptr;
+#if defined(WEBRTC0)
+ webrtc::AudioProcessing *apm = native->apm;
+ apm->gain_control()->set_stream_analog_level(gain_level);
+#elif defined(WEBRTC1) || defined(WEBRTC2)
+ rtc::scoped_refptr<webrtc::AudioProcessing> apm = native->apm;
+ apm->set_stream_analog_level(gain_level);
+#endif
+}
+
+extern "C" gint dino_plugins_rtp_voice_processor_get_suggested_gain_level(void *native_ptr) {
+ auto *native = (_DinoPluginsRtpVoiceProcessorNative *) native_ptr;
+ int level = 0;
+#if defined(WEBRTC0)
+ webrtc::AudioProcessing *apm = native->apm;
+ level = apm->gain_control()->stream_analog_level();
+#elif defined(WEBRTC1) || defined(WEBRTC2)
+ rtc::scoped_refptr<webrtc::AudioProcessing> apm = native->apm;
+ level = apm->recommended_stream_analog_level();
+#endif
+ return level;
+}
+
+extern "C" bool dino_plugins_rtp_voice_processor_get_stream_has_voice(void *native_ptr) {
+ auto *native = (_DinoPluginsRtpVoiceProcessorNative *) native_ptr;
+ bool has_voice = false;
+#if defined(WEBRTC0)
+ webrtc::AudioProcessing *apm = native->apm;
+ has_voice = apm->voice_detection()->stream_has_voice();
+#elif defined(WEBRTC1)
+ rtc::scoped_refptr<webrtc::AudioProcessing> apm = native->apm;
+ webrtc::AudioProcessingStats stats = apm->GetStatistics ();
+ has_voice = stats.voice_detected.value_or(false);
+#endif
+ return has_voice;
+}
+
+extern "C" void dino_plugins_rtp_voice_processor_set_stream_delay(void *native_ptr, gint stream_delay) {
+ auto *native = (_DinoPluginsRtpVoiceProcessorNative *) native_ptr;
+ native->stream_delay = stream_delay;
+}
+
+extern "C" void dino_plugins_rtp_voice_processor_adjust_stream_delay(void *native_ptr) {
+ auto *native = (_DinoPluginsRtpVoiceProcessorNative *) native_ptr;
+ int median, std, poor_delays;
+ float fraction_poor_delays;
+#if defined(WEBRTC0)
+ webrtc::AudioProcessing *apm = native->apm;
+ apm->echo_cancellation()->GetDelayMetrics(&median, &std, &fraction_poor_delays);
+ poor_delays = (int)(fraction_poor_delays * 100.0);
+#elif defined(WEBRTC1) || defined(WEBRTC2)
+ rtc::scoped_refptr<webrtc::AudioProcessing> apm = native->apm;
+ webrtc::AudioProcessingStats stats = apm->GetStatistics();
+ median = stats.delay_median_ms.value_or(-1);
+ std = stats.delay_standard_deviation_ms.value_or(-1);
+ fraction_poor_delays = (float) stats.divergent_filter_fraction.value_or(-1.0);
+ poor_delays = (int) (fraction_poor_delays * 100.0);
+#endif
+ if (fraction_poor_delays < 0 || (native->last_median == median && native->last_poor_delays == poor_delays)) return;
+ g_debug("voice_processor_native.cpp: Stream delay metrics: median=%i std=%i poor_delays=%i%%", median, std, poor_delays);
+ native->last_median = median;
+ native->last_poor_delays = poor_delays;
+#if defined(WEBRTC0)
+ if (poor_delays > 90) {
+ native->stream_delay = std::min(std::max(0, native->stream_delay + std::min(48, std::max(median, -48))), 384);
+ g_debug("voice_processor_native.cpp: set stream_delay=%i", native->stream_delay);
+ }
+#endif
+}
+
+extern "C" void
+dino_plugins_rtp_voice_processor_process_stream(void *native_ptr, GstAudioInfo *info, GstBuffer *buffer) {
+ auto *native = (_DinoPluginsRtpVoiceProcessorNative *) native_ptr;
+ int err;
+
+#if defined(WEBRTC0)
+ webrtc::StreamConfig config(SAMPLE_RATE, SAMPLE_CHANNELS, false);
+ webrtc::AudioProcessing *apm = native->apm;
+ GstMapInfo map;
+ gst_buffer_map(buffer, &map, GST_MAP_READWRITE);
+
+ webrtc::AudioFrame frame;
+ frame.num_channels_ = info->channels;
+ frame.sample_rate_hz_ = info->rate;
+ frame.samples_per_channel_ = info->rate / 100;
+ memcpy(frame.data_, map.data, frame.samples_per_channel_ * info->bpf);
+
+ apm->set_stream_delay_ms(native->stream_delay);
+ err = apm->ProcessStream(&frame);
+ if (err >= 0) memcpy(map.data, frame.data_, frame.samples_per_channel_ * info->bpf);
+
+ gst_buffer_unmap(buffer, &map);
+#elif defined(WEBRTC1) || defined(WEBRTC2)
+ rtc::scoped_refptr<webrtc::AudioProcessing> apm = native->apm;
+#ifdef WEBRTC1
+ webrtc::StreamConfig config(SAMPLE_RATE, SAMPLE_CHANNELS, false);
+#else
+ webrtc::StreamConfig config(SAMPLE_RATE, SAMPLE_CHANNELS);
+#endif
+ GstAudioBuffer abuf;
+ if (!gst_audio_buffer_map (&abuf, info, buffer, GST_MAP_READWRITE)) {
+ g_warning("voice_processor_native.cpp: process_stream: gst_audio_buffer_map failed");
+ return;
+ }
+
+ auto * const data = (int16_t * const) abuf.planes[0];
+ err = apm->ProcessStream (data, config, config, data);
+
+ gst_audio_buffer_unmap (&abuf);
+#endif
+ if (err < 0) g_warning("voice_processor_native.cpp: ProcessStream %i", err);
+}
+
+extern "C" void dino_plugins_rtp_voice_processor_destroy_native(void *native_ptr) {
+ auto *native = (_DinoPluginsRtpVoiceProcessorNative *) native_ptr;
+#if defined(WEBRTC0)
+ delete native->apm;
+ native->apm = NULL;
+#elif defined(WEBRTC1) || defined(WEBRTC2)
+ native->apm = nullptr;
+#endif
+ delete native;
+} \ No newline at end of file
diff --git a/main/src/ui/application.vala b/main/src/ui/application.vala
index 03128964..cb3d52e4 100644
--- a/main/src/ui/application.vala
+++ b/main/src/ui/application.vala
@@ -126,6 +126,7 @@ public class Dino.Ui.Application : Adw.Application, Dino.Application {
case "join":
show_join_muc_dialog(null, jid);
break;
+ case "roster":
case "message":
Gee.List<Account> accounts = stream_interactor.get_accounts();
Jid parsed_jid = null;
@@ -291,6 +292,16 @@ public class Dino.Ui.Application : Adw.Application, Dino.Application {
call_state.reject();
});
add_action(deny_call_action);
+
+ SimpleAction save_file_action = new SimpleAction("file_open_save_dialog", VariantType.INT32);
+ save_file_action.activate.connect((variant) => {
+ print("action open save dialog\n");
+ int file_transfer_id = variant.get_int32();
+ FileTransfer? file_transfer = stream_interactor.get_module(FileTransferStorage.IDENTITY).get_file_by_id(file_transfer_id, null);
+
+ window.conversation_view.open_save_file_dialog(file_transfer);
+ });
+ add_action(save_file_action);
}
private void show_preferences_window() {
diff --git a/main/src/ui/chat_input/chat_input_controller.vala b/main/src/ui/chat_input/chat_input_controller.vala
index c93a9e22..afbef637 100644
--- a/main/src/ui/chat_input/chat_input_controller.vala
+++ b/main/src/ui/chat_input/chat_input_controller.vala
@@ -245,11 +245,11 @@ public class ChatInputController : Object {
send_text();
}
- foreach (File file in files_to_send) {
- stream_interactor.get_module(FileManager.IDENTITY).send_file.begin(file, conversation);
+ if (!files_to_send.is_empty) {
+ stream_interactor.get_module(FileManager2.IDENTITY).send_files.begin(files_to_send, conversation);
+ files_to_send = new ArrayList<File>();
+ chat_input.clear_files();
}
- files_to_send = new ArrayList<File>();
- chat_input.clear_files();
}
private void on_text_input_changed() {
diff --git a/main/src/ui/conversation_content_view/content_populator.vala b/main/src/ui/conversation_content_view/content_populator.vala
index ef859bde..4d1b8c90 100644
--- a/main/src/ui/conversation_content_view/content_populator.vala
+++ b/main/src/ui/conversation_content_view/content_populator.vala
@@ -70,6 +70,8 @@ public class ContentProvider : ContentItemCollection, Object {
return new FileMetaItem(content_item, stream_interactor);
} else if (content_item.type_ == CallItem.TYPE) {
return new CallMetaItem(content_item, stream_interactor);
+ } else if (content_item.type_ == FileGroupItem.TYPE) {
+ return new FileGroupMetaItem(content_item, stream_interactor);
}
critical("Got unknown content item type %s", content_item.type_);
return null;
diff --git a/main/src/ui/conversation_content_view/file_default_widget.vala b/main/src/ui/conversation_content_view/file_default_widget.vala
index a21e2afb..1ad3d6c2 100644
--- a/main/src/ui/conversation_content_view/file_default_widget.vala
+++ b/main/src/ui/conversation_content_view/file_default_widget.vala
@@ -51,13 +51,13 @@ public class FileDefaultWidget : Box {
mime_label.label = content_type != null ? content_type.get_description() : null;
}
- public void update_file_info(Xmpp.FileContentType? content_type, FileTransfer.State state, bool direction, int64 size, int64 transferred_bytes) {
- this.state = state;
+ public void update_file_info(FileTransfer file_transfer) {
+ this.state = file_transfer.state;
spinner.stop(); // A hidden spinning spinner still uses CPU. Deactivate asap
- content_type_image.icon_name = get_file_icon_name(content_type);
- string? mime_description = content_type != null ? content_type.get_description() : null;
+ content_type_image.icon_name = get_file_icon_name(file_transfer.content_type);
+ string? mime_description = file_transfer.content_type != null ? file_transfer.content_type.get_description() : null;
switch (state) {
case FileTransfer.State.COMPLETE:
@@ -66,23 +66,31 @@ public class FileDefaultWidget : Box {
// Create a menu
Menu menu_model = new Menu();
- menu_model.append(_("Open"), "file.open");
- menu_model.append(_("Save as…"), "file.save_as");
+
+ MenuItem open_file_item = new MenuItem(_("Open"), "app.file_open_externally");
+ open_file_item.set_action_and_target_value("app.file_open_externally", new Variant.int32(file_transfer.id));
+
+ MenuItem save_as_item = new MenuItem(_("Save as…"), "app.file_save_as");
+ save_as_item.set_action_and_target_value("app.file_open_save_dialog", new Variant.int32(file_transfer.id));
+
+ menu_model.append_item(open_file_item);
+ menu_model.append_item(save_as_item);
+
Gtk.PopoverMenu popover_menu = new Gtk.PopoverMenu.from_model(menu_model);
file_menu.popover = popover_menu;
popover_menu.closed.connect(on_pointer_left);
break;
case FileTransfer.State.IN_PROGRESS:
- if (direction == FileTransfer.DIRECTION_RECEIVED) {
- if (size > 0) {
- int64 progress = transferred_bytes * 100 / size;
- mime_label.label = _("Downloading %s… (%u%%)").printf(get_size_string(size), progress);
+ if (file_transfer.direction == FileTransfer.DIRECTION_RECEIVED) {
+ if (file_transfer.size > 0) {
+ int64 progress = file_transfer.transferred_bytes * 100 / file_transfer.size;
+ mime_label.label = _("Downloading %s… (%u%%)").printf(get_size_string(file_transfer.size), progress);
} else {
- mime_label.label = _("Downloading %s…").printf(get_size_string(size));
+ mime_label.label = _("Downloading %s…").printf(get_size_string(file_transfer.size));
}
} else {
- int64 progress = transferred_bytes * 100 / size;
- mime_label.label = _("Uploading %s… (%u%%)").printf(get_size_string(size), progress);
+ int64 progress = file_transfer.transferred_bytes * 100 / file_transfer.size;
+ mime_label.label = _("Uploading %s… (%u%%)").printf(get_size_string(file_transfer.size), progress);
}
spinner.start();
image_stack.set_visible_child_name("spinner");
@@ -96,9 +104,9 @@ public class FileDefaultWidget : Box {
break;
case FileTransfer.State.NOT_STARTED:
if (mime_description != null) {
- mime_label.label = _("%s offered: %s").printf(mime_description, get_size_string(size));
- } else if (size != -1) {
- mime_label.label = _("File offered: %s").printf(get_size_string(size));
+ mime_label.label = _("%s offered: %s").printf(mime_description, get_size_string(file_transfer.size));
+ } else if (file_transfer.size != -1) {
+ mime_label.label = _("File offered: %s").printf(get_size_string(file_transfer.size));
} else {
mime_label.label = _("File offered");
}
diff --git a/main/src/ui/conversation_content_view/file_group_widget.vala b/main/src/ui/conversation_content_view/file_group_widget.vala
new file mode 100644
index 00000000..80c41a7a
--- /dev/null
+++ b/main/src/ui/conversation_content_view/file_group_widget.vala
@@ -0,0 +1,120 @@
+using Gee;
+using Gdk;
+using Gtk;
+using Pango;
+using Xmpp;
+
+using Dino.Entities;
+
+namespace Dino.Ui {
+
+ public class FileGroupMetaItem : ConversationSummary.ContentMetaItem {
+
+ private StreamInteractor stream_interactor;
+ private FileGroupItem file_group_item;
+
+ public FileGroupMetaItem(ContentItem content_item, StreamInteractor stream_interactor) {
+ base(content_item);
+ this.stream_interactor = stream_interactor;
+ this.file_group_item = content_item as FileGroupItem;
+ }
+
+ public override Object? get_widget(Plugins.ConversationItemWidgetInterface outer, Plugins.WidgetType type) {
+ var file_transfers = file_group_item.file_group.file_transfers;
+
+ if (file_transfers.size > 1 && all_files_images(file_transfers)) {
+ return new ImageGroupWidget(file_transfers);
+ } else {
+ Box box = new Box(Orientation.VERTICAL, 6);
+ foreach (FileTransfer file_transfer in file_transfers) {
+ FileWidget widget = new FileWidget(file_transfer) { halign = Align.START };
+ widget.add_css_class("file-image-widget");
+ FileWidgetController widget_controller = new FileWidgetController(widget, file_transfer, stream_interactor);
+ box.append(widget);
+ }
+ return box;
+ }
+ }
+
+ public override Gee.List<Plugins.MessageAction>? get_item_actions(Plugins.WidgetType type) {
+ Gee.List<Plugins.MessageAction> actions = new ArrayList<Plugins.MessageAction>();
+ return actions;
+ }
+ }
+
+ public class ImageGroupWidget : Box {
+
+ private Gee.ArrayList<FileTransfer> file_transfers;
+
+ public ImageGroupWidget(Gee.ArrayList<FileTransfer> file_transfers) {
+ this.file_transfers = file_transfers;
+
+ if (file_transfers.size == 3) {
+ Box box = new Box(Orientation.HORIZONTAL, 4) {
+ overflow = Overflow.HIDDEN,
+ halign = Align.START
+ };
+ box.add_css_class("image-group");
+
+ var picture1 = new FileImageWidget.from_file_transfer(file_transfers[0], 200);
+ box.append(picture1);
+
+ Box box1 = new Box(Orientation.VERTICAL, 4);
+
+ var picture2 = new FileImageWidget.from_file_transfer(file_transfers[1], 100);
+ box1.append(picture2);
+ var picture3 = new FileImageWidget.from_file_transfer(file_transfers[2], 100);
+ box1.append(picture3);
+ box.append(box1);
+
+ this.append(box);
+ } else {
+ Box box = new Box(Orientation.VERTICAL, 4) {
+ overflow = Overflow.HIDDEN,
+ halign = Align.START
+ };
+ box.add_css_class("image-group");
+
+ Box row_upper_row = new Box(Orientation.HORIZONTAL, 4);
+
+ var picture1 = new FileImageWidget.from_file_transfer(file_transfers[0], 150);
+ row_upper_row.append(picture1);
+
+ var picture2 = new FileImageWidget.from_file_transfer(file_transfers[1], 150);
+ row_upper_row.append(picture2);
+ box.append(row_upper_row);
+
+ if (file_transfers.size >= 4) {
+
+ int size = 150;
+ if (file_transfers.size == 5) size = 99;
+
+ Box row_lower_row = new Box(Orientation.HORIZONTAL, 4);
+
+ var picture3 = new FileImageWidget.from_file_transfer(file_transfers[2], size);
+ row_lower_row.append(picture3);
+
+ var picture4 = new FileImageWidget.from_file_transfer(file_transfers[3], size);
+ row_lower_row.append(picture4);
+
+ if (file_transfers.size == 5) {
+ var picture5 = new FileImageWidget.from_file_transfer(file_transfers[4], size);
+ row_lower_row.append(picture5);
+ }
+
+ box.append(row_lower_row);
+ }
+ this.append(box);
+ }
+ }
+ }
+
+ public static bool all_files_images(Gee.ArrayList<FileTransfer> file_transfers) {
+ foreach (FileTransfer file_transfer in file_transfers) {
+ if (!Dino.Util.is_pixbuf_supported_content_type(file_transfer.content_type)) {
+ return false;
+ }
+ }
+ return true;
+ }
+} \ No newline at end of file
diff --git a/main/src/ui/conversation_content_view/file_image_widget.vala b/main/src/ui/conversation_content_view/file_image_widget.vala
index e936ca25..9f12f892 100644
--- a/main/src/ui/conversation_content_view/file_image_widget.vala
+++ b/main/src/ui/conversation_content_view/file_image_widget.vala
@@ -22,6 +22,8 @@ public class FileImageWidget : Widget {
private Gtk.Box image_overlay_toolbar = new Gtk.Box(Orientation.VERTICAL, 0) { halign=Align.END, valign=Align.START, margin_top=10, margin_start=10, margin_end=10, margin_bottom=10, vexpand=false, visible=false };
private Label file_size_label = new Label(null) { halign=Align.START, valign=Align.END, margin_bottom=4, margin_start=4, visible=false };
+ private int size = -1;
+
private FileTransfer file_transfer;
private FileTransmissionProgress transmission_progress = new FileTransmissionProgress() { halign=Align.CENTER, valign=Align.CENTER, visible=false };
@@ -34,22 +36,6 @@ public class FileImageWidget : Widget {
public FileImageWidget(int MAX_WIDTH=600, int MAX_HEIGHT=300) {
this.halign = Align.START;
- this.add_css_class("file-image-widget");
-
- // Setup menu button overlay
- MenuButton button = new MenuButton();
- button.icon_name = "dino-view-more";
- Menu menu_model = new Menu();
- menu_model.append(_("Open"), "file.open");
- menu_model.append(_("Save as…"), "file.save_as");
- Gtk.PopoverMenu popover_menu = new Gtk.PopoverMenu.from_model(menu_model);
- button.popover = popover_menu;
- image_overlay_toolbar.append(button);
- image_overlay_toolbar.add_css_class("card");
- image_overlay_toolbar.add_css_class("toolbar");
- image_overlay_toolbar.add_css_class("compact-card-toolbar");
- image_overlay_toolbar.set_cursor_from_name("default");
-
file_size_label.add_css_class("file-details");
overlay.set_child(stack);
@@ -65,12 +51,65 @@ public class FileImageWidget : Widget {
gesture_click_controller.button = 1; // listen for left clicks
gesture_click_controller.released.connect(on_image_clicked);
stack.add_controller(gesture_click_controller);
+ }
+
+ public FileImageWidget.from_file_transfer(FileTransfer file_transfer, int size = -1) {
+ this();
+
+ this.file_transfer = file_transfer;
+ this.size = size;
+
+ this.file_transfer.bind_property("size", file_size_label, "label", BindingFlags.SYNC_CREATE, file_size_label_transform);
+ this.file_transfer.bind_property("size", transmission_progress, "file-size", BindingFlags.SYNC_CREATE);
+ this.file_transfer.bind_property("transferred-bytes", transmission_progress, "transferred-size");
+
+ setup_signals(transmission_progress, file_transfer);
+ setup_menu_button();
+
+ file_transfer.notify["state"].connect(refresh_state);
+ file_transfer.sources_changed.connect(refresh_state);
+ refresh_state();
+ }
+
+ private static void setup_signals(FileTransmissionProgress transmission_progress, FileTransfer file_transfer) {
+ var file_transfer_id = file_transfer.id;
+
+ transmission_progress.start_download.connect(() => {
+ Dino.Application.get_default().activate_action("file_start_download", new Variant.int32(file_transfer_id));
+ });
+ transmission_progress.cancel_transfer.connect(() => {
+ Dino.Application.get_default().activate_action("file_cancel_transfer", new Variant.int32(file_transfer_id));
+ });
+ }
+
+ private void setup_menu_button() {
+ MenuButton button = new MenuButton();
+ button.icon_name = "dino-view-more";
+ Menu menu_model = new Menu();
+
+ MenuItem open_file_item = new MenuItem(_("Open"), "app.file_open_externally");
+ open_file_item.set_action_and_target_value("app.file_open_externally", new Variant.int32(file_transfer.id));
+
+ MenuItem save_as_item = new MenuItem(_("Save as…"), "app.file_save_as");
+ save_as_item.set_action_and_target_value("app.file_open_save_dialog", new Variant.int32(file_transfer.id));
+
+ menu_model.append_item(open_file_item);
+ menu_model.append_item(save_as_item);
+
+ Gtk.PopoverMenu popover_menu = new Gtk.PopoverMenu.from_model(menu_model);
+ button.popover = popover_menu;
+ image_overlay_toolbar.append(button);
+ image_overlay_toolbar.add_css_class("card");
+ image_overlay_toolbar.add_css_class("toolbar");
+ image_overlay_toolbar.add_css_class("compact-card-toolbar");
+ image_overlay_toolbar.set_cursor_from_name("default");
EventControllerMotion this_motion_events = new EventControllerMotion();
this.add_controller(this_motion_events);
this_motion_events.enter.connect((controller, x, y) => {
(controller.widget as FileImageWidget).on_motion_event_enter();
});
+
attach_on_motion_event_leave(this_motion_events, button);
}
@@ -88,18 +127,6 @@ public class FileImageWidget : Widget {
file_size_label.visible = file_transfer != null && file_transfer.direction == FileTransfer.DIRECTION_RECEIVED && file_transfer.state == FileTransfer.State.NOT_STARTED && !file_transfer.sfs_sources.is_empty;
}
- public async void set_file_transfer(FileTransfer file_transfer) {
- this.file_transfer = file_transfer;
-
- this.file_transfer.bind_property("size", file_size_label, "label", BindingFlags.SYNC_CREATE, file_size_label_transform);
- this.file_transfer.bind_property("size", transmission_progress, "file-size", BindingFlags.SYNC_CREATE);
- this.file_transfer.bind_property("transferred-bytes", transmission_progress, "transferred-size");
-
- file_transfer.notify["state"].connect(refresh_state);
- file_transfer.sources_changed.connect(refresh_state);
- refresh_state();
- }
-
private static bool file_size_label_transform(Binding binding, Value from_value, ref Value to_value) {
to_value = FileDefaultWidget.get_size_string((int64) from_value);
return true;
@@ -153,7 +180,7 @@ public class FileImageWidget : Widget {
}
public async void load_from_file(File file, string file_name) throws GLib.Error {
- FixedRatioPicture image = new FixedRatioPicture() { min_width=100, min_height=100, max_width=600, max_height=300 };
+ FixedRatioPicture image = create_picture();
FileInputStream file_stream = null;
try {
@@ -201,7 +228,7 @@ public class FileImageWidget : Widget {
throw new Error(-1, 0, "Error scaling preview image");
}
- FixedRatioPicture image = new FixedRatioPicture() { min_width=100, min_height=100, max_width=600, max_height=300 };
+ FixedRatioPicture image = create_picture();
image.paintable = Texture.for_pixbuf(pixbuf);
stack.add_child(image);
stack.set_visible_child(image);
@@ -216,12 +243,12 @@ public class FileImageWidget : Widget {
if (n_press == 1) {
image_overlay_toolbar.visible = !image_overlay_toolbar.visible;
} else if (n_press == 2) {
- this.activate_action("file.open", null);
+ Dino.Application.get_default().activate_action("file_open_externally", new Variant.int32(file_transfer.id));
image_overlay_toolbar.visible = false;
}
break;
default:
- this.activate_action("file.open", null);
+ Dino.Application.get_default().activate_action("file_open_externally", new Variant.int32(file_transfer.id));
image_overlay_toolbar.visible = false;
break;
}
@@ -237,6 +264,20 @@ public class FileImageWidget : Widget {
(file_transfer.state == FileTransfer.State.COMPLETE || file_transfer.thumbnails.size > 0);
}
+ private FixedRatioPicture create_picture() {
+ if (size == -1) {
+ return new FixedRatioPicture() {
+ min_width=100, max_width=600,
+ min_height=100, max_height=300
+ };
+ } else {
+ return new FixedRatioPicture() {
+ height_request = size, width_request = size,
+ content_fit = ContentFit.COVER, halign = Align.START
+ };
+ }
+ }
+
public override void dispose() {
if (overlay != null && overlay.parent != null) overlay.unparent();
base.dispose();
diff --git a/main/src/ui/conversation_content_view/file_transmission_progress.vala b/main/src/ui/conversation_content_view/file_transmission_progress.vala
index e3f33448..3d893f52 100644
--- a/main/src/ui/conversation_content_view/file_transmission_progress.vala
+++ b/main/src/ui/conversation_content_view/file_transmission_progress.vala
@@ -9,6 +9,9 @@ namespace Dino.Ui {
public class FileTransmissionProgress : Adw.Bin {
+ public signal void start_download();
+ public signal void cancel_transfer();
+
public enum State {
UNKNOWN_SOURCE,
DOWNLOAD_NOT_STARTED,
@@ -81,9 +84,7 @@ namespace Dino.Ui {
}
}
-#if GTK_4_14
private static extern Gsk.Path create_progress_arc(Gsk.Path circle, float percentage);
-#endif
public override void snapshot(Gtk.Snapshot snapshot) {
base.snapshot(snapshot);
@@ -94,7 +95,6 @@ namespace Dino.Ui {
float line_width = (float) LINE_WIDTH;
snapshot.translate({get_width() / 2, get_height() / 2});
-#if GTK_4_14
var fg_color = get_color();
get_style_context().lookup_color("accent_color", out fg_color);
var builder = new Gsk.PathBuilder();
@@ -104,16 +104,6 @@ namespace Dino.Ui {
stroke.set_line_cap(Gsk.LineCap.ROUND);
var arc_path = create_progress_arc(circle_path, (float) progress_animation.value);
snapshot.append_stroke(arc_path, stroke, fg_color);
-#else
- var fg_color = get_style_context().get_color();
- get_style_context().lookup_color("accent_color", out fg_color);
- var context = snapshot.append_cairo({{-radius, -radius}, {radius*2, radius*2}});
- context.set_line_cap(Cairo.LineCap.ROUND);
- context.set_line_width(line_width);
- context.set_source_rgba(fg_color.red, fg_color.green, fg_color.blue, fg_color.alpha);
- context.arc(0, 0, radius - line_width / 2, -0.5 * Math.PI, (progress_animation.value - 0.25) * 2 * Math.PI);
- context.stroke();
-#endif
}
}
@@ -124,11 +114,12 @@ namespace Dino.Ui {
break;
case DOWNLOAD_NOT_STARTED_FAILED_BEFORE:
case DOWNLOAD_NOT_STARTED:
+ start_download();
this.activate_action("file.download", null);
break;
case DOWNLOADING:
case UPLOADING:
- this.activate_action("file.cancel", null);
+ cancel_transfer();
break;
}
}
diff --git a/main/src/ui/conversation_content_view/file_widget.vala b/main/src/ui/conversation_content_view/file_widget.vala
index 3c21412a..d6d2415a 100644
--- a/main/src/ui/conversation_content_view/file_widget.vala
+++ b/main/src/ui/conversation_content_view/file_widget.vala
@@ -58,18 +58,6 @@ public class FileWidget : SizeRequestBin {
private FileDefaultWidgetController default_widget_controller;
private Widget? content = null;
- public signal void open_file();
- public signal void save_file_as();
- public signal void start_download();
- public signal void cancel_download();
-
- class construct {
- install_action("file.open", null, (widget, action_name) => { ((FileWidget) widget).open_file(); });
- install_action("file.save_as", null, (widget, action_name) => { ((FileWidget) widget).save_file_as(); });
- install_action("file.download", null, (widget, action_name) => { ((FileWidget) widget).start_download(); });
- install_action("file.cancel", null, (widget, action_name) => { ((FileWidget) widget).cancel_download(); });
- }
-
construct {
margin_top = 4;
size_request_mode = SizeRequestMode.HEIGHT_FOR_WIDTH;
@@ -80,11 +68,6 @@ public class FileWidget : SizeRequestBin {
this.file_transfer = file_transfer;
update_widget.begin();
-// size_allocate.connect((allocation) => {
-// if (allocation.height > parent.get_allocated_height()) {
-// Idle.add(() => { parent.queue_resize(); return false; });
-// }
-// });
file_transfer.bind_property("state", this, "file-transfer-state");
file_transfer.bind_property("content-type", this, "file-transfer-content-type");
@@ -102,8 +85,8 @@ public class FileWidget : SizeRequestBin {
FileImageWidget file_image_widget = null;
try {
- file_image_widget = new FileImageWidget();
- yield file_image_widget.set_file_transfer(file_transfer);
+ file_image_widget = new FileImageWidget.from_file_transfer(file_transfer);
+ file_image_widget.add_css_class("file-image-widget");
// If the widget changed in the meanwhile, stop
if (content != content_bak) return;
@@ -166,50 +149,6 @@ public class FileWidgetController : Object {
});
this.file_transfer = file_transfer;
this.stream_interactor = stream_interactor;
-
- widget.open_file.connect(open_file);
- widget.save_file_as.connect(save_file);
- widget.start_download.connect(start_download);
- widget.cancel_download.connect(cancel_download);
- }
-
- private void open_file() {
- try{
- AppInfo.launch_default_for_uri(file_transfer.get_file().get_uri(), null);
- } catch (Error err) {
- warning("Failed to open %s - %s", file_transfer.get_file().get_uri(), err.message);
- }
- }
-
- private void save_file() {
- var save_dialog = new FileChooserNative(_("Save as…"), widget.get_root() as Gtk.Window, FileChooserAction.SAVE, null, null);
- save_dialog.set_modal(true);
- save_dialog.set_current_name(file_transfer.file_name);
-
- save_dialog.response.connect(() => {
- File? target_file = save_dialog.get_file();
- if (target_file == null) {
- warning("No file returned from save dialog.");
- return;
- }
- try {
- file_transfer.get_file().copy(save_dialog.get_file(), GLib.FileCopyFlags.OVERWRITE, null);
- } catch (Error err) {
- warning("Failed copy file %s - %s", file_transfer.get_file().get_uri(), err.message);
- }
- });
-
- save_dialog.show();
- }
-
- private void start_download() {
- if (stream_interactor != null) {
- stream_interactor.get_module(FileManager.IDENTITY).download_file.begin(file_transfer);
- }
- }
-
- private void cancel_download() {
- file_transfer.cancellable.cancel();
}
}
@@ -248,16 +187,16 @@ public class FileDefaultWidgetController : Object {
private void update_file_info() {
state = file_transfer.state;
- widget.update_file_info(file_transfer.content_type, file_transfer.state, file_transfer.direction, file_transfer.size, file_transfer.transferred_bytes);
+ widget.update_file_info(file_transfer);
}
private void on_clicked() {
switch (state) {
case FileTransfer.State.COMPLETE:
- widget.activate_action("file.open", null);
+ Dino.Application.get_default().activate_action("file_open_externally", new GLib.Variant.int32(file_transfer.id));
break;
case FileTransfer.State.NOT_STARTED:
- widget.activate_action("file.download", null);
+ Dino.Application.get_default().activate_action("file_start_download", new GLib.Variant.int32(file_transfer.id));
break;
default:
// Clicking doesn't do anything in FAILED and IN_PROGRESS states
diff --git a/main/src/ui/conversation_selector/conversation_selector.vala b/main/src/ui/conversation_selector/conversation_selector.vala
index c11eea82..25ea1b1e 100644
--- a/main/src/ui/conversation_selector/conversation_selector.vala
+++ b/main/src/ui/conversation_selector/conversation_selector.vala
@@ -23,7 +23,7 @@ public class ConversationSelector : Widget {
list_box.add_css_class("navigation-sidebar");
this.layout_manager = new BinLayout();
- stream_interactor.get_module(ConversationManager.IDENTITY).conversation_activated.connect(add_conversation);
+ stream_interactor.get_module(ConversationManager.IDENTITY).conversation_activated.connect(on_conversation_activated);
stream_interactor.get_module(ConversationManager.IDENTITY).conversation_deactivated.connect(remove_conversation);
stream_interactor.get_module(ContentItemStore.IDENTITY).new_item.connect(on_content_item_received);
Timeout.add_seconds(60, () => {
@@ -34,6 +34,7 @@ public class ConversationSelector : Widget {
foreach (Conversation conversation in stream_interactor.get_module(ConversationManager.IDENTITY).get_active_conversations()) {
add_conversation(conversation);
}
+ list_box.invalidate_sort();
return this;
}
@@ -74,6 +75,7 @@ public class ConversationSelector : Widget {
public void on_conversation_selected(Conversation conversation) {
if (!rows.has_key(conversation)) {
add_conversation(conversation);
+ list_box.invalidate_sort();
}
list_box.select_row(rows[conversation]);
}
@@ -84,6 +86,11 @@ public class ConversationSelector : Widget {
}
}
+ private void on_conversation_activated(Conversation conversation) {
+ add_conversation(conversation);
+ list_box.invalidate_sort();
+ }
+
private void add_conversation(Conversation conversation) {
ConversationSelectorRow row;
if (!rows.has_key(conversation)) {
@@ -113,7 +120,6 @@ public class ConversationSelector : Widget {
});
row.add_controller(drop_motion_controller);
}
- list_box.invalidate_sort();
}
private void select_fallback_conversation(Conversation conversation) {
diff --git a/main/src/ui/conversation_selector/conversation_selector_row.vala b/main/src/ui/conversation_selector/conversation_selector_row.vala
index 82c96fdc..95384a5e 100644
--- a/main/src/ui/conversation_selector/conversation_selector_row.vala
+++ b/main/src/ui/conversation_selector/conversation_selector_row.vala
@@ -257,6 +257,25 @@ public class ConversationSelectorRow : ListBoxRow {
message_label.label = (file_is_image ? _("Image received") : _("File received") );
}
break;
+ case FileGroupItem.TYPE:
+ FileGroupItem file_group_item = last_content_item as FileGroupItem;
+ FileTransfer first_transfer = file_group_item.file_group.file_transfers.get(0);
+
+ if (conversation.type_ == Conversation.Type.GROUPCHAT) {
+ // TODO properly display nick for oneself
+ nick_label.label = Util.get_participant_display_name(stream_interactor, conversation, first_transfer.from, true) + ": ";
+ } else {
+ nick_label.label = first_transfer.direction == Message.DIRECTION_SENT ? _("Me") + ": " : "";
+ }
+
+ bool all_files_images = Ui.all_files_images(file_group_item.file_group.file_transfers);
+ change_label_attribute(message_label, attr_style_new(Pango.Style.ITALIC));
+ if (first_transfer.direction == Message.DIRECTION_SENT) {
+ message_label.label = (all_files_images ? _("Images sent") : _("Files sent") );
+ } else {
+ message_label.label = (all_files_images ? _("Images received") : _("Files received") );
+ }
+ break;
case CallItem.TYPE:
CallItem call_item = (CallItem) last_content_item;
Call call = call_item.call;
diff --git a/main/src/ui/conversation_view.vala b/main/src/ui/conversation_view.vala
index 26043666..4bb1f537 100644
--- a/main/src/ui/conversation_view.vala
+++ b/main/src/ui/conversation_view.vala
@@ -17,6 +17,27 @@ public class ConversationView : Widget {
construct {
this.layout_manager = new BinLayout();
}
+
+ public void open_save_file_dialog(FileTransfer file_transfer) {
+ var save_dialog = new FileChooserNative(_("Save as…"), (Gtk.Window) this.get_root(), FileChooserAction.SAVE, null, null);
+ save_dialog.set_modal(true);
+ save_dialog.set_current_name(file_transfer.file_name);
+
+ save_dialog.response.connect(() => {
+ File? target_file = save_dialog.get_file();
+ if (target_file == null) {
+ warning("No file returned from save dialog.");
+ return;
+ }
+ try {
+ file_transfer.get_file().copy(save_dialog.get_file(), GLib.FileCopyFlags.OVERWRITE, null);
+ } catch (Error err) {
+ warning("Failed copy file %s - %s", file_transfer.get_file().get_uri(), err.message);
+ }
+ });
+
+ save_dialog.show();
+ }
}
}
diff --git a/main/src/ui/conversation_view_controller.vala b/main/src/ui/conversation_view_controller.vala
index 0acaae59..bff8a70b 100644
--- a/main/src/ui/conversation_view_controller.vala
+++ b/main/src/ui/conversation_view_controller.vala
@@ -228,10 +228,6 @@ public class ConversationViewController : Object {
chooser.show();
}
- private void send_file(File file) {
- stream_interactor.get_module(FileManager.IDENTITY).send_file.begin(file, conversation);
- }
-
private bool forward_key_press_to_chat_input(EventControllerKey key_controller, uint keyval, uint keycode, Gdk.ModifierType state) {
if (view.get_root().get_focus() is TextView) {
return false;
diff --git a/main/src/ui/main_window.vala b/main/src/ui/main_window.vala
index 98d68e64..fc18d2bd 100644
--- a/main/src/ui/main_window.vala
+++ b/main/src/ui/main_window.vala
@@ -11,23 +11,23 @@ public class MainWindow : Gtk.ApplicationWindow {
public signal void conversation_selected(Conversation conversation);
- [GtkChild] public Stack stack;
- [GtkChild] public Adw.NavigationSplitView navigation_split_view;
+ [GtkChild] public unowned Stack stack;
+ [GtkChild] public unowned Adw.NavigationSplitView navigation_split_view;
- [GtkChild] public SearchEntry conversation_search_entry;
- [GtkChild] public MenuButton menu_button;
+ [GtkChild] public unowned SearchEntry conversation_search_entry;
+ [GtkChild] public unowned MenuButton menu_button;
[GtkChild] private unowned Box conversation_list_toolbar;
- [GtkChild] public Adw.HeaderBar conversation_headerbar;
- [GtkChild] public Button conversation_title_button;
- [GtkChild] public Adw.WindowTitle conversation_window_title;
+ [GtkChild] public unowned Adw.HeaderBar conversation_headerbar;
+ [GtkChild] public unowned Button conversation_title_button;
+ [GtkChild] public unowned Adw.WindowTitle conversation_window_title;
- [GtkChild] public ConversationView conversation_view;
- [GtkChild] public ConversationSelector conversation_selector;
- [GtkChild] public Adw.Flap search_flap;
- [GtkChild] private Stack left_stack;
- [GtkChild] private Stack right_stack;
- [GtkChild] public Adw.Bin search_frame;
+ [GtkChild] public unowned ConversationView conversation_view;
+ [GtkChild] public unowned ConversationSelector conversation_selector;
+ [GtkChild] public unowned Adw.Flap search_flap;
+ [GtkChild] private unowned Stack left_stack;
+ [GtkChild] private unowned Stack right_stack;
+ [GtkChild] public unowned Adw.Bin search_frame;
public GlobalSearch global_search;
@@ -54,6 +54,9 @@ public class MainWindow : Gtk.ApplicationWindow {
this.title = "Dino";
this.add_css_class("dino-main");
+ if (Dino.get_version().contains("~git")) {
+ this.add_css_class("devel");
+ }
var header_size_group = new SizeGroup(SizeGroupMode.VERTICAL);
header_size_group.add_widget(conversation_list_toolbar);
diff --git a/main/src/ui/util/data_forms.vala b/main/src/ui/util/data_forms.vala
index 7fb9b87d..0b91da15 100644
--- a/main/src/ui/util/data_forms.vala
+++ b/main/src/ui/util/data_forms.vala
@@ -18,7 +18,7 @@ namespace Dino.Ui.Util {
}
public static ViewModel.PreferencesRow.Any? get_data_form_field_view_model(DataForms.DataForm.Field field) {
- if (field.type_ == null) return null;
+ if (field.type_ == DataForms.DataForm.Type.UNKNOWN) return null;
ViewModel.PreferencesRow.Any? view_model = null;
diff --git a/main/src/ui/util/helper.vala b/main/src/ui/util/helper.vala
index e9035be0..a126a196 100644
--- a/main/src/ui/util/helper.vala
+++ b/main/src/ui/util/helper.vala
@@ -415,18 +415,7 @@ public bool use_tooltips() {
}
public static void menu_button_set_icon_with_size(MenuButton menu_button, string icon_name, int pixel_size) {
-#if GTK_4_6 && VALA_0_52
menu_button.set_child(new Image.from_icon_name(icon_name) { pixel_size=pixel_size });
-#else
- menu_button.set_icon_name(icon_name);
- var button = menu_button.get_first_child() as Button;
- if (button == null) return;
- var box = button.child as Box;
- if (box == null) return;
- var image = box.get_first_child() as Image;
- if (image == null) return;
- image.pixel_size = pixel_size;
-#endif
}
}
diff --git a/main/src/ui/widgets/avatar_picture.vala b/main/src/ui/widgets/avatar_picture.vala
index 18e4d02f..b4636f49 100644
--- a/main/src/ui/widgets/avatar_picture.vala
+++ b/main/src/ui/widgets/avatar_picture.vala
@@ -5,7 +5,20 @@ using Xmpp;
public class Dino.Ui.ViewModel.AvatarPictureTileModel : Object {
public string display_text { get; set; }
public Gdk.RGBA background_color { get; set; }
- public File? image_file { get; set; }
+
+ private File? _image_file;
+ [CCode (notify = false)]
+ public File? image_file {
+ get {
+ return _image_file;
+ }
+ set {
+ if (_image_file == value) return;
+ if (_image_file != null && value != null && _image_file.equal(value)) return;
+ _image_file = value;
+ notify_property("image-file");
+ }
+ }
}
public class Dino.Ui.ViewModel.AvatarPictureModel : Object {
@@ -23,8 +36,18 @@ public class Dino.Ui.ViewModel.ConversationParticipantAvatarPictureTileModel : A
public ConversationParticipantAvatarPictureTileModel(StreamInteractor stream_interactor, Conversation conversation, Jid jid) {
this.stream_interactor = stream_interactor;
+
+ set_conversation_participant(conversation, jid);
+
+ stream_interactor.get_module(RosterManager.IDENTITY).updated_roster_item.connect(on_roster_updated);
+ avatar_manager.received_avatar.connect(on_received_avatar);
+ avatar_manager.fetched_avatar.connect(on_received_avatar);
+ }
+
+ public void set_conversation_participant(Conversation conversation, Jid jid) {
this.conversation = conversation;
this.primary_avatar_jid = jid;
+ this.secondary_avatar_jid = null;
this.display_name_jid = jid;
string color_id = jid.to_string();
@@ -43,14 +66,11 @@ public class Dino.Ui.ViewModel.ConversationParticipantAvatarPictureTileModel : A
}
string display = Util.get_participant_display_name(stream_interactor, conversation, display_name_jid);
display_text = display.get_char(0).toupper().to_string();
- stream_interactor.get_module(RosterManager.IDENTITY).updated_roster_item.connect(on_roster_updated);
float[] rgbf = color_id != null ? Xep.ConsistentColor.string_to_rgbf(color_id) : new float[] {0.5f, 0.5f, 0.5f};
background_color = Gdk.RGBA() { red = rgbf[0], green = rgbf[1], blue = rgbf[2], alpha = 1.0f};
update_image_file();
- avatar_manager.received_avatar.connect(on_received_avatar);
- avatar_manager.fetched_avatar.connect(on_received_avatar);
}
private void update_image_file() {
@@ -140,55 +160,76 @@ public class Dino.Ui.ViewModel.CompatAvatarPictureModel : AvatarPictureModel {
private void on_room_updated(Account account, Jid room) {
if (conversation != null && account.equals(conversation.account) && conversation.counterpart.equals_bare(room)) {
- reset();
- set_conversation(conversation);
+ update_all();
}
}
private void on_received_avatar(Jid jid, Account account) {
+ // Only update group chat avatar when the respective jid avatar is actually used in it
+ if (conversation == null || conversation.type_ == Conversation.Type.GROUPCHAT && !jid.is_bare()) return;
on_room_updated(account, jid);
}
- public void reset() {
- (tiles as GLib.ListStore).remove_all();
- }
-
public CompatAvatarPictureModel set_conversation(Conversation conversation) {
if (stream_interactor == null) {
critical("set_conversation() used on CompatAvatarPictureModel without stream_interactor");
return this;
}
this.conversation = conversation;
+ update_all();
+ return this;
+ }
+
+ private void update_all() {
+ uint idx = 0;
if (conversation.type_ == Conversation.Type.GROUPCHAT) {
if (avatar_manager.has_avatar(conversation.account, conversation.counterpart)) {
- add_internal("#", conversation.counterpart.to_string(), avatar_manager.get_avatar_file(conversation.account, conversation.counterpart));
+ set_internal(idx++, "#", conversation.counterpart.to_string(), avatar_manager.get_avatar_file(conversation.account, conversation.counterpart));
} else {
Gee.List<Jid>? occupants = muc_manager.get_other_offline_members(conversation.counterpart, conversation.account);
if (occupants != null && !occupants.is_empty && muc_manager.is_private_room(conversation.account, conversation.counterpart)) {
int count = occupants.size > 4 ? 3 : occupants.size;
for (int i = 0; i < count; i++) {
- add_participant(conversation, occupants[i]);
+ set_participant(idx++, conversation, occupants[i]);
}
if (occupants.size > 4) {
- add_internal("+");
+ set_internal(idx++, "+");
}
} else {
- add_internal("#", conversation.counterpart.to_string());
+ set_internal(idx++, "#", conversation.counterpart.to_string());
}
}
} else {
- add_participant(conversation, conversation.counterpart);
+ set_participant(idx++, conversation, conversation.counterpart);
+ }
+
+ GLib.ListStore store = tiles as GLib.ListStore;
+ if (store.get_n_items() >= idx) {
+ store.splice(idx, store.get_n_items() - idx, {});
}
- return this;
}
public CompatAvatarPictureModel add_participant(Conversation conversation, Jid jid) {
+ set_participant(tiles.get_n_items(), conversation, jid);
+ return this;
+ }
+
+ public AvatarPictureTileModel set_participant(uint idx, Conversation conversation, Jid jid) {
if (stream_interactor == null) {
- critical("add_participant() used on CompatAvatarPictureModel without stream_interactor");
- return this;
+ error("set_participant() used on CompatAvatarPictureModel without stream_interactor");
}
- (tiles as GLib.ListStore).append(new ConversationParticipantAvatarPictureTileModel(stream_interactor, conversation, jid));
- return this;
+ GLib.ListStore store = tiles as GLib.ListStore;
+ while (idx >= store.get_n_items()) {
+ store.append(new ViewModel.AvatarPictureTileModel());
+ }
+ var model = store.get_item(idx) as ConversationParticipantAvatarPictureTileModel;
+ if (model == null) {
+ model = new ConversationParticipantAvatarPictureTileModel(stream_interactor, conversation, jid);
+ store.splice(idx, 1, {model});
+ } else {
+ model.set_conversation_participant(conversation, jid);
+ }
+ return model;
}
public CompatAvatarPictureModel add(string display, string? color_id = null, File? image_file = null) {
@@ -197,14 +238,28 @@ public class Dino.Ui.ViewModel.CompatAvatarPictureModel : AvatarPictureModel {
}
private AvatarPictureTileModel add_internal(string display, string? color_id = null, File? image_file = null) {
+ return set_internal(tiles.get_n_items(), display, color_id, image_file);
+ }
+
+ private AvatarPictureTileModel set_internal(uint idx, string display, string? color_id = null, File? image_file = null) {
GLib.ListStore store = tiles as GLib.ListStore;
float[] rgbf = color_id != null ? Xep.ConsistentColor.string_to_rgbf(color_id) : new float[] {0.5f, 0.5f, 0.5f};
- var model = new ViewModel.AvatarPictureTileModel() {
- display_text = display.get_char(0).toupper().to_string(),
- background_color = Gdk.RGBA() { red = rgbf[0], green = rgbf[1], blue = rgbf[2], alpha = 1.0f},
- image_file = image_file
- };
- store.append(model);
+ while (idx >= store.get_n_items()) {
+ store.append(new ViewModel.AvatarPictureTileModel());
+ }
+ var model = store.get_item(idx) as ViewModel.AvatarPictureTileModel;
+ if (model == null) {
+ model = new ViewModel.AvatarPictureTileModel() {
+ display_text = display.get_char(0).toupper().to_string(),
+ background_color = Gdk.RGBA() { red = rgbf[0], green = rgbf[1], blue = rgbf[2], alpha = 1.0f},
+ image_file = image_file
+ };
+ store.splice(idx, 1, {model});
+ } else {
+ model.display_text = display.get_char(0).toupper().to_string();
+ model.background_color = Gdk.RGBA() { red = rgbf[0], green = rgbf[1], blue = rgbf[2], alpha = 1.0f};
+ model.image_file = image_file;
+ }
return model;
}
}
@@ -476,11 +531,7 @@ public class Dino.Ui.AvatarPicture : Gtk.Widget {
label.insert_after(this, null);
label.attributes = new Pango.AttrList();
label.attributes.insert(Pango.attr_foreground_new(uint16.MAX, uint16.MAX, uint16.MAX));
-#if GTK_4_8 && (VALA_0_56_GREATER_5 || VALA_0_58)
picture.content_fit = Gtk.ContentFit.COVER;
-#elif GTK_4_8
- picture.@set("content-fit", 2);
-#endif
picture.insert_after(this, label);
this.notify["model"].connect(on_model_changed);
check_widget_leak(this);
diff --git a/main/src/ui/widgets/fixed_ratio_picture.vala b/main/src/ui/widgets/fixed_ratio_picture.vala
index 6b04ea61..1898efa7 100644
--- a/main/src/ui/widgets/fixed_ratio_picture.vala
+++ b/main/src/ui/widgets/fixed_ratio_picture.vala
@@ -8,9 +8,7 @@ class Dino.Ui.FixedRatioPicture : Gtk.Widget {
public int max_height { get; set; default = int.MAX; }
public File file { get { return inner.file; } set { inner.file = value; } }
public Gdk.Paintable paintable { get { return inner.paintable; } set { inner.paintable = value; } }
-#if GTK_4_8 && (VALA_0_56_GREATER_5 || VALA_0_58)
public Gtk.ContentFit content_fit { get { return inner.content_fit; } set { inner.content_fit = value; } }
-#endif
private Gtk.Picture inner = new Gtk.Picture();
construct {
diff --git a/main/src/windows/conversation_details.vala b/main/src/windows/conversation_details.vala
index e1f3061f..8ec3125b 100644
--- a/main/src/windows/conversation_details.vala
+++ b/main/src/windows/conversation_details.vala
@@ -160,11 +160,7 @@ namespace Dino.Ui.ConversationDetails {
}
private void create_members() {
-#if GTK_4_8 && (VALA_0_56_GREATER_5 || VALA_0_58)
if (model.members_sorted.n_items == 0) return;
-#else
- if (model.members_sorted.model.get_n_items() == 0) return;
-#endif
var selection_model = new NoSelection(model.members_sorted);
var item_factory = new BuilderListItemFactory.from_resource(null, "/im/dino/Dino/muc_member_list_row.ui");
diff --git a/main/vapi/gpg-error.vapi b/main/vapi/gpg-error.vapi
new file mode 100644
index 00000000..3ad6c580
--- /dev/null
+++ b/main/vapi/gpg-error.vapi
@@ -0,0 +1,445 @@
+/* gcrypt.vapi
+ *
+ * Copyright:
+ * 2008 Jiqing Qiang
+ * 2008, 2010, 2012-2013 Evan Nemerson
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author:
+ * Jiqing Qiang <jiqing.qiang@gmail.com>
+ * Evan Nemerson <evan@coeus-group.com>
+ */
+
+
+
+[CCode (cheader_filename = "gpg-error.h")]
+namespace GPGError {
+ [CCode (cname = "gpg_err_source_t", cprefix = "GPG_ERR_SOURCE_")]
+ public enum ErrorSource {
+ UNKNOWN,
+ GCRYPT,
+ GPG,
+ GPGSM,
+ GPGAGENT,
+ PINENTRY,
+ SCD,
+ GPGME,
+ KEYBOX,
+ KSBA,
+ DIRMNGR,
+ GSTI,
+ ANY,
+ USER_1,
+ USER_2,
+ USER_3,
+ USER_4,
+
+ /* This is one more than the largest allowed entry. */
+ DIM
+ }
+
+ [CCode (cname = "gpg_err_code_t", cprefix = "GPG_ERR_")]
+ public enum ErrorCode {
+ NO_ERROR,
+ GENERAL,
+ UNKNOWN_PACKET,
+ UNKNOWN_VERSION,
+ PUBKEY_ALGO,
+ DIGEST_ALGO,
+ BAD_PUBKEY,
+ BAD_SECKEY,
+ BAD_SIGNATURE,
+ NO_PUBKEY,
+ CHECKSUM,
+ BAD_PASSPHRASE,
+ CIPHER_ALGO,
+ KEYRING_OPEN,
+ INV_PACKET,
+ INV_ARMOR,
+ NO_USER_ID,
+ NO_SECKEY,
+ WRONG_SECKEY,
+ BAD_KEY,
+ COMPR_ALGO,
+ NO_PRIME,
+ NO_ENCODING_METHOD,
+ NO_ENCRYPTION_SCHEME,
+ NO_SIGNATURE_SCHEME,
+ INV_ATTR,
+ NO_VALUE,
+ NOT_FOUND,
+ VALUE_NOT_FOUND,
+ SYNTAX,
+ BAD_MPI,
+ INV_PASSPHRASE,
+ SIG_CLASS,
+ RESOURCE_LIMIT,
+ INV_KEYRING,
+ TRUSTDB,
+ BAD_CERT,
+ INV_USER_ID,
+ UNEXPECTED,
+ TIME_CONFLICT,
+ KEYSERVER,
+ WRONG_PUBKEY_ALGO,
+ TRIBUTE_TO_D_A,
+ WEAK_KEY,
+ INV_KEYLEN,
+ INV_ARG,
+ BAD_URI,
+ INV_URI,
+ NETWORK,
+ UNKNOWN_HOST,
+ SELFTEST_FAILED,
+ NOT_ENCRYPTED,
+ NOT_PROCESSED,
+ UNUSABLE_PUBKEY,
+ UNUSABLE_SECKEY,
+ INV_VALUE,
+ BAD_CERT_CHAIN,
+ MISSING_CERT,
+ NO_DATA,
+ BUG,
+ NOT_SUPPORTED,
+ INV_OP,
+ TIMEOUT,
+ INTERNAL,
+ EOF_GCRYPT,
+ INV_OBJ,
+ TOO_SHORT,
+ TOO_LARGE,
+ NO_OBJ,
+ NOT_IMPLEMENTED,
+ CONFLICT,
+ INV_CIPHER_MODE,
+ INV_FLAG,
+ INV_HANDLE,
+ TRUNCATED,
+ INCOMPLETE_LINE,
+ INV_RESPONSE,
+ NO_AGENT,
+ AGENT,
+ INV_DATA,
+ ASSUAN_SERVER_FAULT,
+ ASSUAN,
+ INV_SESSION_KEY,
+ INV_SEXP,
+ UNSUPPORTED_ALGORITHM,
+ NO_PIN_ENTRY,
+ PIN_ENTRY,
+ BAD_PIN,
+ INV_NAME,
+ BAD_DATA,
+ INV_PARAMETER,
+ WRONG_CARD,
+ NO_DIRMNGR,
+ DIRMNGR,
+ CERT_REVOKED,
+ NO_CRL_KNOWN,
+ CRL_TOO_OLD,
+ LINE_TOO_LONG,
+ NOT_TRUSTED,
+ CANCELED,
+ BAD_CA_CERT,
+ CERT_EXPIRED,
+ CERT_TOO_YOUNG,
+ UNSUPPORTED_CERT,
+ UNKNOWN_SEXP,
+ UNSUPPORTED_PROTECTION,
+ CORRUPTED_PROTECTION,
+ AMBIGUOUS_NAME,
+ CARD,
+ CARD_RESET,
+ CARD_REMOVED,
+ INV_CARD,
+ CARD_NOT_PRESENT,
+ NO_PKCS15_APP,
+ NOT_CONFIRMED,
+ CONFIGURATION,
+ NO_POLICY_MATCH,
+ INV_INDEX,
+ INV_ID,
+ NO_SCDAEMON,
+ SCDAEMON,
+ UNSUPPORTED_PROTOCOL,
+ BAD_PIN_METHOD,
+ CARD_NOT_INITIALIZED,
+ UNSUPPORTED_OPERATION,
+ WRONG_KEY_USAGE,
+ NOTHING_FOUND,
+ WRONG_BLOB_TYPE,
+ MISSING_VALUE,
+ HARDWARE,
+ PIN_BLOCKED,
+ USE_CONDITIONS,
+ PIN_NOT_SYNCED,
+ INV_CRL,
+ BAD_BER,
+ INV_BER,
+ ELEMENT_NOT_FOUND,
+ IDENTIFIER_NOT_FOUND,
+ INV_TAG,
+ INV_LENGTH,
+ INV_KEYINFO,
+ UNEXPECTED_TAG,
+ NOT_DER_ENCODED,
+ NO_CMS_OBJ,
+ INV_CMS_OBJ,
+ UNKNOWN_CMS_OBJ,
+ UNSUPPORTED_CMS_OBJ,
+ UNSUPPORTED_ENCODING,
+ UNSUPPORTED_CMS_VERSION,
+ UNKNOWN_ALGORITHM,
+ INV_ENGINE,
+ PUBKEY_NOT_TRUSTED,
+ DECRYPT_FAILED,
+ KEY_EXPIRED,
+ SIG_EXPIRED,
+ ENCODING_PROBLEM,
+ INV_STATE,
+ DUP_VALUE,
+ MISSING_ACTION,
+ MODULE_NOT_FOUND,
+ INV_OID_STRING,
+ INV_TIME,
+ INV_CRL_OBJ,
+ UNSUPPORTED_CRL_VERSION,
+ INV_CERT_OBJ,
+ UNKNOWN_NAME,
+ LOCALE_PROBLEM,
+ NOT_LOCKED,
+ PROTOCOL_VIOLATION,
+ INV_MAC,
+ INV_REQUEST,
+ UNKNOWN_EXTN,
+ UNKNOWN_CRIT_EXTN,
+ LOCKED,
+ UNKNOWN_OPTION,
+ UNKNOWN_COMMAND,
+ BUFFER_TOO_SHORT,
+ SEXP_INV_LEN_SPEC,
+ SEXP_STRING_TOO_LONG,
+ SEXP_UNMATCHED_PAREN,
+ SEXP_NOT_CANONICAL,
+ SEXP_BAD_CHARACTER,
+ SEXP_BAD_QUOTATION,
+ SEXP_ZERO_PREFIX,
+ SEXP_NESTED_DH,
+ SEXP_UNMATCHED_DH,
+ SEXP_UNEXPECTED_PUNC,
+ SEXP_BAD_HEX_CHAR,
+ SEXP_ODD_HEX_NUMBERS,
+ SEXP_BAD_OCT_CHAR,
+ ASS_GENERAL,
+ ASS_ACCEPT_FAILED,
+ ASS_CONNECT_FAILED,
+ ASS_INV_RESPONSE,
+ ASS_INV_VALUE,
+ ASS_INCOMPLETE_LINE,
+ ASS_LINE_TOO_LONG,
+ ASS_NESTED_COMMANDS,
+ ASS_NO_DATA_CB,
+ ASS_NO_INQUIRE_CB,
+ ASS_NOT_A_SERVER,
+ ASS_NOT_A_CLIENT,
+ ASS_SERVER_START,
+ ASS_READ_ERROR,
+ ASS_WRITE_ERROR,
+ ASS_TOO_MUCH_DATA,
+ ASS_UNEXPECTED_CMD,
+ ASS_UNKNOWN_CMD,
+ ASS_SYNTAX,
+ ASS_CANCELED,
+ ASS_NO_INPUT,
+ ASS_NO_OUTPUT,
+ ASS_PARAMETER,
+ ASS_UNKNOWN_INQUIRE,
+ USER_1,
+ USER_2,
+ USER_3,
+ USER_4,
+ USER_5,
+ USER_6,
+ USER_7,
+ USER_8,
+ USER_9,
+ USER_10,
+ USER_11,
+ USER_12,
+ USER_13,
+ USER_14,
+ USER_15,
+ USER_16,
+ MISSING_ERRNO,
+ UNKNOWN_ERRNO,
+ EOF,
+
+ E2BIG,
+ EACCES,
+ EADDRINUSE,
+ EADDRNOTAVAIL,
+ EADV,
+ EAFNOSUPPORT,
+ EAGAIN,
+ EALREADY,
+ EAUTH,
+ EBACKGROUND,
+ EBADE,
+ EBADF,
+ EBADFD,
+ EBADMSG,
+ EBADR,
+ EBADRPC,
+ EBADRQC,
+ EBADSLT,
+ EBFONT,
+ EBUSY,
+ ECANCELED,
+ ECHILD,
+ ECHRNG,
+ ECOMM,
+ ECONNABORTED,
+ ECONNREFUSED,
+ ECONNRESET,
+ ED,
+ EDEADLK,
+ EDEADLOCK,
+ EDESTADDRREQ,
+ EDIED,
+ EDOM,
+ EDOTDOT,
+ EDQUOT,
+ EEXIST,
+ EFAULT,
+ EFBIG,
+ EFTYPE,
+ EGRATUITOUS,
+ EGREGIOUS,
+ EHOSTDOWN,
+ EHOSTUNREACH,
+ EIDRM,
+ EIEIO,
+ EILSEQ,
+ EINPROGRESS,
+ EINTR,
+ EINVAL,
+ EIO,
+ EISCONN,
+ EISDIR,
+ EISNAM,
+ EL2HLT,
+ EL2NSYNC,
+ EL3HLT,
+ EL3RST,
+ ELIBACC,
+ ELIBBAD,
+ ELIBEXEC,
+ ELIBMAX,
+ ELIBSCN,
+ ELNRNG,
+ ELOOP,
+ EMEDIUMTYPE,
+ EMFILE,
+ EMLINK,
+ EMSGSIZE,
+ EMULTIHOP,
+ ENAMETOOLONG,
+ ENAVAIL,
+ ENEEDAUTH,
+ ENETDOWN,
+ ENETRESET,
+ ENETUNREACH,
+ ENFILE,
+ ENOANO,
+ ENOBUFS,
+ ENOCSI,
+ ENODATA,
+ ENODEV,
+ ENOENT,
+ ENOEXEC,
+ ENOLCK,
+ ENOLINK,
+ ENOMEDIUM,
+ ENOMEM,
+ ENOMSG,
+ ENONET,
+ ENOPKG,
+ ENOPROTOOPT,
+ ENOSPC,
+ ENOSR,
+ ENOSTR,
+ ENOSYS,
+ ENOTBLK,
+ ENOTCONN,
+ ENOTDIR,
+ ENOTEMPTY,
+ ENOTNAM,
+ ENOTSOCK,
+ ENOTSUP,
+ ENOTTY,
+ ENOTUNIQ,
+ ENXIO,
+ EOPNOTSUPP,
+ EOVERFLOW,
+ EPERM,
+ EPFNOSUPPORT,
+ EPIPE,
+ EPROCLIM,
+ EPROCUNAVAIL,
+ EPROGMISMATCH,
+ EPROGUNAVAIL,
+ EPROTO,
+ EPROTONOSUPPORT,
+ EPROTOTYPE,
+ ERANGE,
+ EREMCHG,
+ EREMOTE,
+ EREMOTEIO,
+ ERESTART,
+ EROFS,
+ ERPCMISMATCH,
+ ESHUTDOWN,
+ ESOCKTNOSUPPORT,
+ ESPIPE,
+ ESRCH,
+ ESRMNT,
+ ESTALE,
+ ESTRPIPE,
+ ETIME,
+ ETIMEDOUT,
+ ETOOMANYREFS,
+ ETXTBSY,
+ EUCLEAN,
+ EUNATCH,
+ EUSERS,
+ EWOULDBLOCK,
+ EXDEV,
+ EXFULL,
+
+ /* This is one more than the largest allowed entry. */
+ CODE_DIM
+ }
+
+ [CCode (cname = "gpg_err_code_t", cprefix = "gpg_err_")]
+ public struct Error : uint {
+ [CCode (cname = "gpg_err_make")]
+ public Error (ErrorSource source, ErrorCode code);
+ [CCode (cname = "gpg_err_make_from_errno")]
+ public Error.from_errno (ErrorSource source, int err);
+ public ErrorCode code { [CCode (cname = "gpg_err_code")] get; }
+ public ErrorSource source { [CCode (cname = "gpg_err_source")] get; }
+ }
+}
diff --git a/main/vapi/gpgme.vapi b/main/vapi/gpgme.vapi
new file mode 100644
index 00000000..5976eb66
--- /dev/null
+++ b/main/vapi/gpgme.vapi
@@ -0,0 +1,673 @@
+/* libgpgme.vapi
+ *
+ * Copyright (C) 2009 Sebastian Reichel <sre@ring0.de>
+ * Copyright (C) 2022 Itay Grudev <itay+git2022@grudev.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ *
+ */
+
+[CCode (lower_case_cprefix = "gpgme_", cheader_filename = "gpgme.h,src/plugins/openpgp/gpgme_fix.h")]
+namespace GPG {
+ public static GLib.RecMutex global_mutex;
+
+ [CCode (cname = "struct _gpgme_engine_info")]
+ public struct EngineInfo {
+ EngineInfo* next;
+ Protocol protocol;
+ string file_name;
+ string version;
+ string req_version;
+ string? home_dir;
+ }
+
+ [Compact]
+ [CCode (cname = "struct _gpgme_key", ref_function = "gpgme_key_ref_vapi", unref_function = "gpgme_key_unref_vapi", free_function = "gpgme_key_release")]
+ public class Key {
+ public bool revoked;
+ public bool expired;
+ public bool disabled;
+ public bool invalid;
+ public bool can_encrypt;
+ public bool can_sign;
+ public bool can_certify;
+ public bool secret;
+ public bool can_authenticate;
+ public bool is_qualified;
+ public Protocol protocol;
+ public string issuer_serial;
+ public string issuer_name;
+ public string chain_id;
+ public Validity owner_trust;
+ [CCode (array_length = false, array_null_terminated = true)]
+ public SubKey[] subkeys;
+ [CCode (array_length = false, array_null_terminated = true)]
+ public UserID[] uids;
+ public KeylistMode keylist_mode;
+ public string fpr { get { return subkeys[0].fpr; } }
+ }
+
+ [CCode (cname = "struct _gpgme_sig_notation")]
+ public struct SigNotation {
+ SigNotation* next;
+ string? name;
+ string value;
+ int name_len;
+ int value_len;
+ SigNotationFlags flags;
+ bool human_readable;
+ bool critical;
+ }
+
+ [CCode (cname = "struct _gpgme_subkey")]
+ public struct SubKey {
+ SubKey* next;
+ bool revoked;
+ bool expired;
+ bool disabled;
+ bool invalid;
+ bool can_encrypt;
+ bool can_sign;
+ bool can_certify;
+ bool secret;
+ bool can_authenticate;
+ bool is_qualified;
+ bool is_cardkey;
+ PublicKeyAlgorithm algo;
+ uint length;
+ string keyid;
+ string fpr;
+ long timestamp;
+ long expires;
+ string? card_number;
+ }
+
+ [CCode (cname = "struct _gpgme_key_sig")]
+ public struct KeySig {
+ KeySig* next;
+ bool revoked;
+ bool expired;
+ bool invalid;
+ bool exportable;
+ PublicKeyAlgorithm algo;
+ string keyid;
+ long timestamp;
+ long expires;
+ GPGError.Error status;
+ string uid;
+ string name;
+ string email;
+ string comment;
+ uint sig_class;
+ SigNotation notations;
+ }
+
+ [CCode (cname = "struct _gpgme_user_id")]
+ public struct UserID {
+ UserID* next;
+ bool revoked;
+ bool invalid;
+ Validity validity;
+ string uid;
+ string name;
+ string email;
+ string comment;
+ KeySig signatures;
+ }
+
+ [CCode (cname = "struct _gpgme_op_verify_result")]
+ public struct VerifyResult {
+ Signature* signatures;
+ string? file_name;
+ }
+
+ [CCode (cname = "struct _gpgme_op_sign_result")]
+ public struct SignResult {
+ InvalidKey invalid_signers;
+ Signature* signatures;
+ }
+
+ [CCode (cname = "struct _gpgme_op_encrypt_result")]
+ public struct EncryptResult {
+ InvalidKey invalid_signers;
+ }
+
+ [CCode (cname = "struct _gpgme_op_decrypt_result")]
+ public struct DecryptResult {
+ string unsupported_algorithm;
+ bool wrong_key_usage;
+ Recipient recipients;
+ string file_name;
+ }
+
+ [CCode (cname = "struct _gpgme_recipient")]
+ public struct Recipient {
+ Recipient *next;
+ string keyid;
+ PublicKeyAlgorithm pubkey_algo;
+ GPGError.Error status;
+ }
+
+ [CCode (cname = "struct _gpgme_invalid_key")]
+ public struct InvalidKey {
+ InvalidKey *next;
+ string fpr;
+ GPGError.Error reason;
+ }
+
+ [CCode (cname = "struct _gpgme_signature")]
+ public struct Signature {
+ Signature *next;
+ Sigsum summary;
+ string fpr;
+ GPGError.Error status;
+ SigNotation notations;
+ ulong timestamp;
+ ulong exp_timestamp;
+ bool wrong_key_usage;
+ PKAStatus pka_trust;
+ bool chain_model;
+ Validity validity;
+ GPGError.Error validity_reason;
+ PublicKeyAlgorithm pubkey_algo;
+ HashAlgorithm hash_algo;
+ string? pka_address;
+ }
+
+ public enum PKAStatus {
+ NOT_AVAILABLE,
+ BAD,
+ OKAY,
+ RFU
+ }
+
+ [CCode (cname = "gpgme_sigsum_t", cprefix = "GPGME_SIGSUM_")]
+ public enum Sigsum {
+ VALID,
+ GREEN,
+ RED,
+ KEY_REVOKED,
+ KEY_EXPIRED,
+ SIG_EXPIRED,
+ KEY_MISSING,
+ CRL_MISSING,
+ CRL_TOO_OLD,
+ BAD_POLICY,
+ SYS_ERROR
+ }
+
+ [CCode (cname = "gpgme_data_encoding_t", cprefix = "GPGME_DATA_ENCODING_")]
+ public enum DataEncoding {
+ NONE,
+ BINARY,
+ BASE64,
+ ARMOR,
+ URL,
+ URLESC,
+ URL0
+ }
+
+ [CCode (cname = "gpgme_pubkey_algo_t", cprefix = "GPGME_PK_")]
+ public enum PublicKeyAlgorithm {
+ RSA,
+ RSA_E,
+ RSA_S,
+ ELG_E,
+ DSA,
+ ELG
+ }
+
+ [CCode (cname = "gpgme_hash_algo_t", cprefix = "GPGME_MD_")]
+ public enum HashAlgorithm {
+ NONE,
+ MD5,
+ SHA1,
+ RMD160,
+ MD2,
+ TIGER,
+ HAVAL,
+ SHA256,
+ SHA384,
+ SHA512,
+ MD4,
+ CRC32,
+ CRC32_RFC1510,
+ CRC24_RFC2440
+ }
+
+ [CCode (cname = "gpgme_sig_mode_t", cprefix = "GPGME_SIG_MODE_")]
+ public enum SigMode {
+ NORMAL,
+ DETACH,
+ CLEAR
+ }
+
+ [CCode (cname = "gpgme_validity_t", cprefix = "GPGME_VALIDITY_")]
+ public enum Validity {
+ UNKNOWN,
+ UNDEFINED,
+ NEVER,
+ MARGINAL,
+ FULL,
+ ULTIMATE
+ }
+
+ [CCode (cname = "gpgme_protocol_t", cprefix = "GPGME_PROTOCOL_")]
+ public enum Protocol {
+ OpenPGP,
+ CMS,
+ GPGCONF,
+ ASSUAN,
+ UNKNOWN
+ }
+
+ [CCode (cname = "gpgme_keylist_mode_t", cprefix = "GPGME_KEYLIST_MODE_")]
+ public enum KeylistMode {
+ LOCAL,
+ EXTERN,
+ SIGS,
+ SIG_NOTATIONS,
+ EPHEMERAL,
+ VALIDATE
+ }
+
+ [CCode (cname = "gpgme_export_mode_t", cprefix = "GPGME_EXPORT_MODE_")]
+ public enum ExportMode {
+ EXTERN
+ }
+
+ [CCode (cprefix = "GPGME_AUDITLOG_")]
+ public enum AuditLogFlag {
+ HTML,
+ WITH_HELP
+ }
+
+ [CCode (cname = "gpgme_sig_notation_flags_t", cprefix = "GPGME_SIG_NOTATION_")]
+ public enum SigNotationFlags {
+ HUMAN_READABLE,
+ CRITICAL
+ }
+
+ [CCode (cname = "gpgme_encrypt_flags_t", cprefix = "GPGME_ENCRYPT_")]
+ public enum EncryptFlags {
+ ALWAYS_TRUST,
+ NO_ENCRYPT_TO
+ }
+
+ [CCode (cname = "gpgme_status_code_t", cprefix = "GPGME_STATUS_")]
+ public enum StatusCode {
+ EOF,
+ ENTER,
+ LEAVE,
+ ABORT,
+ GOODSIG,
+ BADSIG,
+ ERRSIG,
+ BADARMOR,
+ RSA_OR_IDEA,
+ KEYEXPIRED,
+ KEYREVOKED,
+ TRUST_UNDEFINED,
+ TRUST_NEVER,
+ TRUST_MARGINAL,
+ TRUST_FULLY,
+ TRUST_ULTIMATE,
+ SHM_INFO,
+ SHM_GET,
+ SHM_GET_BOOL,
+ SHM_GET_HIDDEN,
+ NEED_PASSPHRASE,
+ VALIDSIG,
+ SIG_ID,
+ SIG_TO,
+ ENC_TO,
+ NODATA,
+ BAD_PASSPHRASE,
+ NO_PUBKEY,
+ NO_SECKEY,
+ NEED_PASSPHRASE_SYM,
+ DECRYPTION_FAILED,
+ DECRYPTION_OKAY,
+ MISSING_PASSPHRASE,
+ GOOD_PASSPHRASE,
+ GOODMDC,
+ BADMDC,
+ ERRMDC,
+ IMPORTED,
+ IMPORT_OK,
+ IMPORT_PROBLEM,
+ IMPORT_RES,
+ FILE_START,
+ FILE_DONE,
+ FILE_ERROR,
+ BEGIN_DECRYPTION,
+ END_DECRYPTION,
+ BEGIN_ENCRYPTION,
+ END_ENCRYPTION,
+ DELETE_PROBLEM,
+ GET_BOOL,
+ GET_LINE,
+ GET_HIDDEN,
+ GOT_IT,
+ PROGRESS,
+ SIG_CREATED,
+ SESSION_KEY,
+ NOTATION_NAME,
+ NOTATION_DATA,
+ POLICY_URL,
+ BEGIN_STREAM,
+ END_STREAM,
+ KEY_CREATED,
+ USERID_HINT,
+ UNEXPECTED,
+ INV_RECP,
+ NO_RECP,
+ ALREADY_SIGNED,
+ SIGEXPIRED,
+ EXPSIG,
+ EXPKEYSIG,
+ TRUNCATED,
+ ERROR,
+ NEWSIG,
+ REVKEYSIG,
+ SIG_SUBPACKET,
+ NEED_PASSPHRASE_PIN,
+ SC_OP_FAILURE,
+ SC_OP_SUCCESS,
+ CARDCTRL,
+ BACKUP_KEY_CREATED,
+ PKA_TRUST_BAD,
+ PKA_TRUST_GOOD,
+ PLAINTEXT
+ }
+
+ [Compact]
+ [CCode (cname = "struct gpgme_context", free_function = "gpgme_release", cprefix = "gpgme_")]
+ public class Context {
+ private static GPGError.Error new(out Context ctx);
+
+ public static Context create() throws GLib.Error {
+ Context ctx;
+ throw_if_error(@new(out ctx));
+ return ctx;
+ }
+
+ public GPGError.Error set_protocol(Protocol p);
+ public Protocol get_protocol();
+
+ public void set_armor(bool yes);
+ public bool get_armor();
+
+ public void set_textmode(bool yes);
+ public bool get_textmode();
+
+ public GPGError.Error set_keylist_mode(KeylistMode mode);
+ public KeylistMode get_keylist_mode();
+
+ public void set_include_certs(int nr_of_certs = -256);
+
+ public int get_include_certs();
+
+ public void set_passphrase_cb(passphrase_callback cb, void* hook_value = null);
+
+ public void get_passphrase_cb(out passphrase_callback cb, out void* hook_value);
+
+ public GPGError.Error set_locale(int category, string val);
+
+ [CCode (cname = "gpgme_ctx_get_engine_info")]
+ public EngineInfo* get_engine_info();
+
+ [CCode (cname = "gpgme_ctx_set_engine_info")]
+ public GPGError.Error set_engine_info(Protocol proto, string file_name, string home_dir);
+
+ public void signers_clear();
+
+ public GPGError.Error signers_add(Key key);
+
+ public Key* signers_enum(int n);
+
+ public void sig_notation_clear();
+
+ public GPGError.Error sig_notation_add(string name, string val, SigNotationFlags flags);
+
+ public SigNotation* sig_notation_get();
+
+ [CCode (cname = "gpgme_get_key")]
+ private GPGError.Error get_key_(string fpr, out Key key, bool secret);
+
+ [CCode (cname = "gpgme_get_key_")]
+ public Key get_key(string fpr, bool secret) throws GLib.Error {
+ Key key;
+ throw_if_error(get_key_(fpr, out key, secret));
+ return key;
+ }
+
+ public Context* wait(out GPGError.Error status, bool hang);
+
+ public SignResult* op_sign_result();
+
+ [CCode (cname = "gpgme_op_sign")]
+ public GPGError.Error op_sign_(Data plain, Data sig, SigMode mode);
+
+ [CCode (cname = "gpgme_op_sign_")]
+ public Data op_sign(Data plain, SigMode mode) throws GLib.Error {
+ Data sig = Data.create();
+ throw_if_error(op_sign_(plain, sig, mode));
+ return sig;
+ }
+
+ public VerifyResult* op_verify_result();
+
+ [CCode (cname = "gpgme_op_verify")]
+ public GPGError.Error op_verify_(Data sig, Data signed_text, Data? plaintext);
+
+ [CCode (cname = "gpgme_op_verify_")]
+ public Data op_verify(Data sig, Data signed_text) throws GLib.Error {
+ Data plaintext = Data.create();
+ throw_if_error(op_verify_(sig, signed_text, plaintext));
+ return plaintext;
+ }
+
+ public EncryptResult* op_encrypt_result();
+
+ [CCode (cname = "gpgme_op_encrypt")]
+ public GPGError.Error op_encrypt_([CCode (array_length = false)] Key[] recp, EncryptFlags flags, Data plain, Data cipher);
+
+ [CCode (cname = "gpgme_op_encrypt_")]
+ public Data op_encrypt(Key[] recp, EncryptFlags flags, Data plain) throws GLib.Error {
+ Data cipher = Data.create();
+ throw_if_error(op_encrypt_(recp, flags, plain, cipher));
+ return cipher;
+ }
+
+ public DecryptResult* op_decrypt_result();
+
+ [CCode (cname = "gpgme_op_decrypt")]
+ public GPGError.Error op_decrypt_(Data cipher, Data plain);
+
+ [CCode (cname = "gpgme_op_decrypt_")]
+ public Data op_decrypt(Data cipher) throws GLib.Error {
+ Data plain = Data.create();
+ throw_if_error(op_decrypt_(cipher, plain));
+ return plain;
+ }
+
+ public GPGError.Error op_export(string? pattern, ExportMode mode, Data keydata);
+
+ public GPGError.Error op_import(Data keydata);
+
+ public unowned ImportResult op_import_result();
+
+ [CCode (cname = "gpgme_op_keylist_start")]
+ private GPGError.Error op_keylist_start_(string? pattern = null, int secret_only = 0);
+
+ [CCode (cname = "gpgme_op_keylist_start_")]
+ public void op_keylist_start(string? pattern = null, int secret_only = 0) throws GLib.Error {
+ throw_if_error(op_keylist_start_(pattern, secret_only));
+ }
+
+ [CCode (cname = "gpgme_op_keylist_next")]
+ private GPGError.Error op_keylist_next_(out Key key);
+
+ [CCode (cname = "gpgme_op_keylist_next_")]
+ public Key op_keylist_next() throws GLib.Error {
+ Key key;
+ throw_if_error(op_keylist_next_(out key));
+ return key;
+ }
+
+ [CCode (cname = "gpgme_op_keylist_end")]
+ private GPGError.Error op_keylist_end_();
+
+ [CCode (cname = "gpgme_op_keylist_end_")]
+ public void op_keylist_end() throws GLib.Error {
+ throw_if_error(op_keylist_end_());
+ }
+
+ public KeylistResult op_keylist_result();
+ }
+
+ [Flags]
+ [CCode (cname="unsigned int")]
+ public enum ImportStatusFlags {
+ [CCode (cname = "GPGME_IMPORT_NEW")]
+ NEW,
+ [CCode (cname = "GPGME_IMPORT_UID")]
+ UID,
+ [CCode (cname = "GPGME_IMPORT_SIG")]
+ SIG,
+ [CCode (cname = "GPGME_IMPORT_SUBKEY")]
+ SUBKEY,
+ [CCode (cname = "GPGME_IMPORT_SECRET")]
+ SECRET
+ }
+
+ [Compact]
+ [CCode (cname = "struct _gpgme_import_status")]
+ public class ImportStatus {
+ public ImportStatus? next;
+ public string fpr;
+ public GPGError.Error result;
+ public ImportStatusFlags status;
+ }
+
+ [Compact]
+ [CCode (cname = "struct _gpgme_op_import_result")]
+ public class ImportResult {
+ public int considered;
+ public int no_user_id;
+ public int imported;
+ public int imported_rsa;
+ public int unchanged;
+ public int new_user_ids;
+ public int new_sub_keys;
+ public int new_signatures;
+ public int new_revocations;
+ public int secret_read;
+ public int secret_imported;
+ public int secret_unchanged;
+ public int not_imported;
+ public ImportStatus imports;
+ }
+
+ [Compact]
+ [CCode (cname = "struct _gpgme_op_keylist_result")]
+ public class KeylistResult {
+ uint truncated;
+ }
+
+ [Compact]
+ [CCode (cname = "struct gpgme_data", free_function = "gpgme_data_release", cprefix = "gpgme_data_")]
+ public class Data {
+
+ public static GPGError.Error new(out Data d);
+
+ public static Data create() throws GLib.Error {
+ Data data;
+ throw_if_error(@new(out data));
+ return data;
+ }
+
+ [CCode (cname = "gpgme_data_new_from_mem")]
+ public static GPGError.Error new_from_memory(out Data d, char[] buffer, bool copy);
+
+ public static Data create_from_memory(uint8[] buffer, bool copy) throws GLib.Error {
+ Data data;
+ throw_if_error(new_from_memory(out data, (char[]) buffer, copy));
+ return data;
+ }
+
+ [CCode (cname = "gpgme_data_new_from_file")]
+ public static GPGError.Error new_from_file(out Data d, string filename, int copy = 1);
+
+ public static Data create_from_file(string filename, int copy = 1) throws GLib.Error {
+ Data data;
+ throw_if_error(new_from_file(out data, filename, copy));
+ return data;
+ }
+
+ [CCode (cname = "gpgme_data_release_and_get_mem")]
+ public string release_and_get_mem(out size_t len);
+
+ public ssize_t read([CCode (array_length = false)] uint8[] buf, size_t len);
+
+ public ssize_t write(uint8[] buf);
+
+ public long seek(long offset, int whence=0);
+
+ public GPGError.Error set_file_name(string file_name);
+
+ public DataEncoding *get_encoding();
+
+ public GPGError.Error set_encoding(DataEncoding enc);
+ }
+
+ [CCode (cname = "gpgme_get_protocol_name")]
+ public unowned string get_protocol_name(Protocol p);
+
+ [CCode (cname = "gpgme_pubkey_algo_name")]
+ public unowned string get_public_key_algorithm_name(PublicKeyAlgorithm algo);
+
+ [CCode (cname = "gpgme_hash_algo_name")]
+ public unowned string get_hash_algorithm_name(HashAlgorithm algo);
+
+ [CCode (cname = "gpgme_passphrase_cb_t", has_target = false)]
+ public delegate GPGError.Error passphrase_callback(void* hook, string uid_hint, string passphrase_info, bool prev_was_bad, int fd);
+
+ [CCode (cname = "gpgme_check_version")]
+ public unowned string check_version(string? required_version = null);
+
+ [CCode (cname = "gpgme_engine_check_version")]
+ public GPGError.Error engine_check_version(Protocol proto);
+
+ [CCode (cname = "gpgme_get_engine_info")]
+ public GPGError.Error get_engine_info(out EngineInfo? engine_info);
+
+ [CCode (cname = "gpgme_strerror_r")]
+ public int strerror_r(GPGError.Error err, uint8[] buf);
+
+ [CCode (cname = "gpgme_strerror")]
+ public unowned string strerror(GPGError.Error err);
+
+ private void throw_if_error(GPGError.Error error) throws GLib.Error {
+ if (error.code != GPGError.ErrorCode.NO_ERROR) {
+ throw new GLib.Error(-1, error.code, "%s", error.to_string());
+ }
+ }
+}
diff --git a/main/vapi/gstreamer-base-1.0.vapi b/main/vapi/gstreamer-base-1.0.vapi
new file mode 100644
index 00000000..04045c69
--- /dev/null
+++ b/main/vapi/gstreamer-base-1.0.vapi
@@ -0,0 +1,1011 @@
+// Fixme: This is fetched from development code of Vala upstream which fixed a few bugs.
+/* gstreamer-base-1.0.vapi generated by vapigen, do not modify. */
+
+[CCode (cprefix = "Gst", gir_namespace = "GstBase", gir_version = "1.0", lower_case_cprefix = "gst_")]
+namespace Gst {
+ namespace Base {
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstAdapter", lower_case_cprefix = "gst_adapter_", type_id = "gst_adapter_get_type ()")]
+ [GIR (name = "Adapter")]
+ public class Adapter : GLib.Object {
+ [CCode (has_construct_function = false)]
+ public Adapter ();
+ public size_t available ();
+ public size_t available_fast ();
+ public void clear ();
+ public void copy ([CCode (array_length_cname = "size", array_length_pos = 2.1, array_length_type = "gsize")] uint8[] dest, size_t offset);
+ [Version (since = "1.4")]
+ public GLib.Bytes copy_bytes (size_t offset, size_t size);
+ [Version (since = "1.10")]
+ public uint64 distance_from_discont ();
+ [Version (since = "1.10")]
+ public Gst.ClockTime dts_at_discont ();
+ public void flush (size_t flush);
+ [Version (since = "1.6")]
+ public Gst.Buffer? get_buffer (size_t nbytes);
+ [Version (since = "1.6")]
+ public Gst.Buffer? get_buffer_fast (size_t nbytes);
+ [Version (since = "1.6")]
+ public Gst.BufferList? get_buffer_list (size_t nbytes);
+ [Version (since = "1.6")]
+ public GLib.List<Gst.Buffer>? get_list (size_t nbytes);
+ [CCode (array_length = false)]
+ public unowned uint8[]? map (size_t size);
+ public ssize_t masked_scan_uint32 (uint32 mask, uint32 pattern, size_t offset, size_t size);
+ public ssize_t masked_scan_uint32_peek (uint32 mask, uint32 pattern, size_t offset, size_t size, out uint32 value);
+ [Version (since = "1.10")]
+ public uint64 offset_at_discont ();
+ public Gst.ClockTime prev_dts (out uint64 distance);
+ [Version (since = "1.2")]
+ public Gst.ClockTime prev_dts_at_offset (size_t offset, out uint64 distance);
+ [Version (since = "1.10")]
+ public uint64 prev_offset (out uint64 distance);
+ public Gst.ClockTime prev_pts (out uint64 distance);
+ [Version (since = "1.2")]
+ public Gst.ClockTime prev_pts_at_offset (size_t offset, out uint64 distance);
+ [Version (since = "1.10")]
+ public Gst.ClockTime pts_at_discont ();
+ public void push (owned Gst.Buffer buf);
+ [CCode (array_length = false)]
+ public uint8[]? take (size_t nbytes);
+ public Gst.Buffer? take_buffer (size_t nbytes);
+ [Version (since = "1.2")]
+ public Gst.Buffer? take_buffer_fast (size_t nbytes);
+ [Version (since = "1.6")]
+ public Gst.BufferList? take_buffer_list (size_t nbytes);
+ public GLib.List<Gst.Buffer>? take_list (size_t nbytes);
+ public void unmap ();
+ }
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstAggregator", lower_case_cprefix = "gst_aggregator_", type_id = "gst_aggregator_get_type ()")]
+ [GIR (name = "Aggregator")]
+ [Version (since = "1.14")]
+ public abstract class Aggregator : Gst.Element {
+ public weak Gst.Pad srcpad;
+ [CCode (has_construct_function = false)]
+ protected Aggregator ();
+ [NoWrapper]
+ public virtual Gst.FlowReturn aggregate (bool timeout);
+ [NoWrapper]
+ public virtual Gst.Buffer clip (Gst.Base.AggregatorPad aggregator_pad, Gst.Buffer buf);
+ [NoWrapper]
+ public virtual bool decide_allocation (Gst.Query query);
+ public virtual Gst.FlowReturn finish_buffer (owned Gst.Buffer buffer);
+ [Version (since = "1.18")]
+ public virtual Gst.FlowReturn finish_buffer_list (owned Gst.BufferList bufferlist);
+ [NoWrapper]
+ public virtual Gst.Caps fixate_src_caps (Gst.Caps caps);
+ [NoWrapper]
+ public virtual Gst.FlowReturn flush ();
+ public void get_allocator (out Gst.Allocator? allocator, out unowned Gst.AllocationParams @params);
+ public Gst.BufferPool? get_buffer_pool ();
+ [Version (since = "1.20")]
+ public bool get_ignore_inactive_pads ();
+ public Gst.ClockTime get_latency ();
+ [NoWrapper]
+ public virtual Gst.ClockTime get_next_time ();
+ [Version (since = "1.18")]
+ public virtual bool negotiate ();
+ [NoWrapper]
+ public virtual bool negotiated_src_caps (Gst.Caps caps);
+ [Version (since = "1.18")]
+ public virtual Gst.Sample? peek_next_sample (Gst.Base.AggregatorPad aggregator_pad);
+ [NoWrapper]
+ public virtual bool propose_allocation (Gst.Base.AggregatorPad pad, Gst.Query decide_query, Gst.Query query);
+ [Version (since = "1.18")]
+ public void selected_samples (Gst.ClockTime pts, Gst.ClockTime dts, Gst.ClockTime duration, Gst.Structure? info);
+ [Version (since = "1.20")]
+ public void set_ignore_inactive_pads (bool ignore);
+ public void set_latency (Gst.ClockTime min_latency, Gst.ClockTime max_latency);
+ public void set_src_caps (Gst.Caps caps);
+ [Version (since = "1.16")]
+ public Gst.ClockTime simple_get_next_time ();
+ [NoWrapper]
+ public virtual bool sink_event (Gst.Base.AggregatorPad aggregator_pad, Gst.Event event);
+ [NoWrapper]
+ public virtual Gst.FlowReturn sink_event_pre_queue (Gst.Base.AggregatorPad aggregator_pad, Gst.Event event);
+ [NoWrapper]
+ public virtual bool sink_query (Gst.Base.AggregatorPad aggregator_pad, Gst.Query query);
+ [NoWrapper]
+ public virtual bool sink_query_pre_queue (Gst.Base.AggregatorPad aggregator_pad, Gst.Query query);
+ [NoWrapper]
+ public virtual bool src_activate (Gst.PadMode mode, bool active);
+ [NoWrapper]
+ public virtual bool src_event (Gst.Event event);
+ [NoWrapper]
+ public virtual bool src_query (Gst.Query query);
+ [NoWrapper]
+ public virtual bool start ();
+ [NoWrapper]
+ public virtual bool stop ();
+ [Version (since = "1.18")]
+ public void update_segment (Gst.Segment segment);
+ [NoWrapper]
+ public virtual Gst.FlowReturn update_src_caps (Gst.Caps caps, out Gst.Caps ret);
+ [NoAccessorMethod]
+ [Version (since = "1.18")]
+ public bool emit_signals { get; set; }
+ [NoAccessorMethod]
+ public uint64 latency { get; set; }
+ [NoAccessorMethod]
+ [Version (since = "1.16")]
+ public uint64 min_upstream_latency { get; set; }
+ [NoAccessorMethod]
+ public uint64 start_time { get; set; }
+ [NoAccessorMethod]
+ public Gst.Base.AggregatorStartTimeSelection start_time_selection { get; set; }
+ [Version (since = "1.18")]
+ public signal void samples_selected (Gst.Segment segment, uint64 pts, uint64 dts, uint64 duration, Gst.Structure? info);
+ }
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstAggregatorPad", lower_case_cprefix = "gst_aggregator_pad_", type_id = "gst_aggregator_pad_get_type ()")]
+ [GIR (name = "AggregatorPad")]
+ [Version (since = "1.14")]
+ public class AggregatorPad : Gst.Pad {
+ public weak Gst.Segment segment;
+ [CCode (has_construct_function = false)]
+ protected AggregatorPad ();
+ public bool drop_buffer ();
+ [NoWrapper]
+ public virtual Gst.FlowReturn flush (Gst.Base.Aggregator aggregator);
+ [Version (since = "1.14.1")]
+ public bool has_buffer ();
+ public bool is_eos ();
+ [Version (since = "1.20")]
+ public bool is_inactive ();
+ public Gst.Buffer? peek_buffer ();
+ public Gst.Buffer? pop_buffer ();
+ [NoWrapper]
+ public virtual bool skip_buffer (Gst.Base.Aggregator aggregator, Gst.Buffer buffer);
+ [NoAccessorMethod]
+ [Version (since = "1.16")]
+ public bool emit_signals { get; set; }
+ public signal void buffer_consumed (Gst.Buffer object);
+ }
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstBitReader", free_function = "gst_bit_reader_free", has_type_id = false)]
+ [Compact]
+ [GIR (name = "BitReader")]
+ public class BitReader {
+ public uint bit;
+ public uint byte;
+ [CCode (array_length_cname = "size", array_length_type = "guint")]
+ public weak uint8[] data;
+ public uint size;
+ [CCode (cname = "gst_bit_reader_new", has_construct_function = false)]
+ public BitReader ([CCode (array_length_cname = "size", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
+ [CCode (cname = "gst_bit_reader_free")]
+ [DestroysInstance]
+ public void free ();
+ [CCode (cname = "gst_bit_reader_get_bits_uint16")]
+ public bool get_bits_uint16 (out uint16 val, uint nbits);
+ [CCode (cname = "gst_bit_reader_get_bits_uint32")]
+ public bool get_bits_uint32 (out uint32 val, uint nbits);
+ [CCode (cname = "gst_bit_reader_get_bits_uint64")]
+ public bool get_bits_uint64 (out uint64 val, uint nbits);
+ [CCode (cname = "gst_bit_reader_get_bits_uint8")]
+ public bool get_bits_uint8 (out uint8 val, uint nbits);
+ [CCode (cname = "gst_bit_reader_get_pos")]
+ public uint get_pos ();
+ [CCode (cname = "gst_bit_reader_get_remaining")]
+ public uint get_remaining ();
+ [CCode (cname = "gst_bit_reader_get_size")]
+ public uint get_size ();
+ [CCode (cname = "gst_bit_reader_init")]
+ public void init ([CCode (array_length_cname = "size", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
+ [CCode (cname = "gst_bit_reader_peek_bits_uint16")]
+ public bool peek_bits_uint16 (out uint16 val, uint nbits);
+ [CCode (cname = "gst_bit_reader_peek_bits_uint32")]
+ public bool peek_bits_uint32 (out uint32 val, uint nbits);
+ [CCode (cname = "gst_bit_reader_peek_bits_uint64")]
+ public bool peek_bits_uint64 (out uint64 val, uint nbits);
+ [CCode (cname = "gst_bit_reader_peek_bits_uint8")]
+ public bool peek_bits_uint8 (out uint8 val, uint nbits);
+ [CCode (cname = "gst_bit_reader_set_pos")]
+ public bool set_pos (uint pos);
+ [CCode (cname = "gst_bit_reader_skip")]
+ public bool skip (uint nbits);
+ [CCode (cname = "gst_bit_reader_skip_to_byte")]
+ public bool skip_to_byte ();
+ }
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstByteReader", free_function = "gst_byte_reader_free", has_type_id = false)]
+ [Compact]
+ [GIR (name = "ByteReader")]
+ public class ByteReader {
+ public uint byte;
+ [CCode (array_length_cname = "size", array_length_type = "guint")]
+ public weak uint8[] data;
+ public uint size;
+ [CCode (cname = "gst_byte_reader_new", has_construct_function = false)]
+ public ByteReader ([CCode (array_length_cname = "size", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
+ [CCode (cname = "gst_byte_reader_dup_data")]
+ public bool dup_data (uint size, out uint8[] val);
+ [CCode (cname = "gst_byte_reader_dup_string_utf16")]
+ public bool dup_string_utf16 ([CCode (array_length = false, array_null_terminated = true)] out uint16[] str);
+ [CCode (cname = "gst_byte_reader_dup_string_utf32")]
+ public bool dup_string_utf32 ([CCode (array_length = false, array_null_terminated = true)] out uint32[] str);
+ [CCode (cname = "gst_byte_reader_dup_string_utf8")]
+ public bool dup_string_utf8 ([CCode (array_length = false, array_null_terminated = true)] out string[] str);
+ [CCode (cname = "gst_byte_reader_free")]
+ [DestroysInstance]
+ public void free ();
+ [CCode (cname = "gst_byte_reader_get_data")]
+ public bool get_data (uint size, out unowned uint8[] val);
+ [CCode (cname = "gst_byte_reader_get_float32_be")]
+ public bool get_float32_be (out float val);
+ [CCode (cname = "gst_byte_reader_get_float32_le")]
+ public bool get_float32_le (out float val);
+ [CCode (cname = "gst_byte_reader_get_float64_be")]
+ public bool get_float64_be (out double val);
+ [CCode (cname = "gst_byte_reader_get_float64_le")]
+ public bool get_float64_le (out double val);
+ [CCode (cname = "gst_byte_reader_get_int16_be")]
+ public bool get_int16_be (out int16 val);
+ [CCode (cname = "gst_byte_reader_get_int16_le")]
+ public bool get_int16_le (out int16 val);
+ [CCode (cname = "gst_byte_reader_get_int24_be")]
+ public bool get_int24_be (out int32 val);
+ [CCode (cname = "gst_byte_reader_get_int24_le")]
+ public bool get_int24_le (out int32 val);
+ [CCode (cname = "gst_byte_reader_get_int32_be")]
+ public bool get_int32_be (out int32 val);
+ [CCode (cname = "gst_byte_reader_get_int32_le")]
+ public bool get_int32_le (out int32 val);
+ [CCode (cname = "gst_byte_reader_get_int64_be")]
+ public bool get_int64_be (out int64 val);
+ [CCode (cname = "gst_byte_reader_get_int64_le")]
+ public bool get_int64_le (out int64 val);
+ [CCode (cname = "gst_byte_reader_get_int8")]
+ public bool get_int8 (out int8 val);
+ [CCode (cname = "gst_byte_reader_get_pos")]
+ public uint get_pos ();
+ [CCode (cname = "gst_byte_reader_get_remaining")]
+ public uint get_remaining ();
+ [CCode (cname = "gst_byte_reader_get_size")]
+ public uint get_size ();
+ [CCode (cname = "gst_byte_reader_get_string_utf8")]
+ public bool get_string_utf8 ([CCode (array_length = false, array_null_terminated = true)] out unowned string[] str);
+ [CCode (cname = "gst_byte_reader_get_uint16_be")]
+ public bool get_uint16_be (out uint16 val);
+ [CCode (cname = "gst_byte_reader_get_uint16_le")]
+ public bool get_uint16_le (out uint16 val);
+ [CCode (cname = "gst_byte_reader_get_uint24_be")]
+ public bool get_uint24_be (out uint32 val);
+ [CCode (cname = "gst_byte_reader_get_uint24_le")]
+ public bool get_uint24_le (out uint32 val);
+ [CCode (cname = "gst_byte_reader_get_uint32_be")]
+ public bool get_uint32_be (out uint32 val);
+ [CCode (cname = "gst_byte_reader_get_uint32_le")]
+ public bool get_uint32_le (out uint32 val);
+ [CCode (cname = "gst_byte_reader_get_uint64_be")]
+ public bool get_uint64_be (out uint64 val);
+ [CCode (cname = "gst_byte_reader_get_uint64_le")]
+ public bool get_uint64_le (out uint64 val);
+ [CCode (cname = "gst_byte_reader_get_uint8")]
+ public bool get_uint8 (out uint8 val);
+ [CCode (cname = "gst_byte_reader_init")]
+ public void init ([CCode (array_length_cname = "size", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
+ [CCode (cname = "gst_byte_reader_masked_scan_uint32")]
+ public uint masked_scan_uint32 (uint32 mask, uint32 pattern, uint offset, uint size);
+ [CCode (cname = "gst_byte_reader_masked_scan_uint32_peek")]
+ [Version (since = "1.6")]
+ public uint masked_scan_uint32_peek (uint32 mask, uint32 pattern, uint offset, uint size, out uint32 value);
+ [CCode (cname = "gst_byte_reader_peek_data")]
+ public bool peek_data (uint size, out unowned uint8[] val);
+ [CCode (cname = "gst_byte_reader_peek_float32_be")]
+ public bool peek_float32_be (out float val);
+ [CCode (cname = "gst_byte_reader_peek_float32_le")]
+ public bool peek_float32_le (out float val);
+ [CCode (cname = "gst_byte_reader_peek_float64_be")]
+ public bool peek_float64_be (out double val);
+ [CCode (cname = "gst_byte_reader_peek_float64_le")]
+ public bool peek_float64_le (out double val);
+ [CCode (cname = "gst_byte_reader_peek_int16_be")]
+ public bool peek_int16_be (out int16 val);
+ [CCode (cname = "gst_byte_reader_peek_int16_le")]
+ public bool peek_int16_le (out int16 val);
+ [CCode (cname = "gst_byte_reader_peek_int24_be")]
+ public bool peek_int24_be (out int32 val);
+ [CCode (cname = "gst_byte_reader_peek_int24_le")]
+ public bool peek_int24_le (out int32 val);
+ [CCode (cname = "gst_byte_reader_peek_int32_be")]
+ public bool peek_int32_be (out int32 val);
+ [CCode (cname = "gst_byte_reader_peek_int32_le")]
+ public bool peek_int32_le (out int32 val);
+ [CCode (cname = "gst_byte_reader_peek_int64_be")]
+ public bool peek_int64_be (out int64 val);
+ [CCode (cname = "gst_byte_reader_peek_int64_le")]
+ public bool peek_int64_le (out int64 val);
+ [CCode (cname = "gst_byte_reader_peek_int8")]
+ public bool peek_int8 (out int8 val);
+ [CCode (cname = "gst_byte_reader_peek_string_utf8")]
+ public bool peek_string_utf8 ([CCode (array_length = false, array_null_terminated = true)] out unowned string[] str);
+ [CCode (cname = "gst_byte_reader_peek_uint16_be")]
+ public bool peek_uint16_be (out uint16 val);
+ [CCode (cname = "gst_byte_reader_peek_uint16_le")]
+ public bool peek_uint16_le (out uint16 val);
+ [CCode (cname = "gst_byte_reader_peek_uint24_be")]
+ public bool peek_uint24_be (out uint32 val);
+ [CCode (cname = "gst_byte_reader_peek_uint24_le")]
+ public bool peek_uint24_le (out uint32 val);
+ [CCode (cname = "gst_byte_reader_peek_uint32_be")]
+ public bool peek_uint32_be (out uint32 val);
+ [CCode (cname = "gst_byte_reader_peek_uint32_le")]
+ public bool peek_uint32_le (out uint32 val);
+ [CCode (cname = "gst_byte_reader_peek_uint64_be")]
+ public bool peek_uint64_be (out uint64 val);
+ [CCode (cname = "gst_byte_reader_peek_uint64_le")]
+ public bool peek_uint64_le (out uint64 val);
+ [CCode (cname = "gst_byte_reader_peek_uint8")]
+ public bool peek_uint8 (out uint8 val);
+ [CCode (cname = "gst_byte_reader_set_pos")]
+ public bool set_pos (uint pos);
+ [CCode (cname = "gst_byte_reader_skip")]
+ public bool skip (uint nbytes);
+ [CCode (cname = "gst_byte_reader_skip_string_utf16")]
+ public bool skip_string_utf16 ();
+ [CCode (cname = "gst_byte_reader_skip_string_utf32")]
+ public bool skip_string_utf32 ();
+ [CCode (cname = "gst_byte_reader_skip_string_utf8")]
+ public bool skip_string_utf8 ();
+ }
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstByteWriter", free_function = "gst_byte_writer_free", has_type_id = false)]
+ [Compact]
+ [GIR (name = "ByteWriter")]
+ public class ByteWriter {
+ public uint alloc_size;
+ public bool fixed;
+ public bool @owned;
+ public weak Gst.Base.ByteReader parent;
+ [CCode (cname = "gst_byte_writer_new", has_construct_function = false)]
+ public ByteWriter ();
+ [CCode (cname = "gst_byte_writer_ensure_free_space")]
+ public bool ensure_free_space (uint size);
+ [CCode (cname = "gst_byte_writer_fill")]
+ public bool fill (uint8 value, uint size);
+ [CCode (cname = "gst_byte_writer_free")]
+ [DestroysInstance]
+ public void free ();
+ [CCode (cname = "gst_byte_writer_free_and_get_buffer")]
+ [DestroysInstance]
+ public Gst.Buffer free_and_get_buffer ();
+ [CCode (cname = "gst_byte_writer_free_and_get_data")]
+ [DestroysInstance]
+ public uint8 free_and_get_data ();
+ [CCode (cname = "gst_byte_writer_get_remaining")]
+ public uint get_remaining ();
+ [CCode (cname = "gst_byte_writer_init")]
+ public void init ();
+ [CCode (cname = "gst_byte_writer_init_with_data")]
+ public void init_with_data ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "guint")] uint8[] data, bool initialized);
+ [CCode (cname = "gst_byte_writer_init_with_size")]
+ public void init_with_size (uint size, bool fixed);
+ [CCode (cname = "gst_byte_writer_put_buffer")]
+ public bool put_buffer (Gst.Buffer buffer, size_t offset, ssize_t size);
+ [CCode (cname = "gst_byte_writer_put_data")]
+ public bool put_data ([CCode (array_length_cname = "size", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
+ [CCode (cname = "gst_byte_writer_put_float32_be")]
+ public bool put_float32_be (float val);
+ [CCode (cname = "gst_byte_writer_put_float32_le")]
+ public bool put_float32_le (float val);
+ [CCode (cname = "gst_byte_writer_put_float64_be")]
+ public bool put_float64_be (double val);
+ [CCode (cname = "gst_byte_writer_put_float64_le")]
+ public bool put_float64_le (double val);
+ [CCode (cname = "gst_byte_writer_put_int16_be")]
+ public bool put_int16_be (int16 val);
+ [CCode (cname = "gst_byte_writer_put_int16_le")]
+ public bool put_int16_le (int16 val);
+ [CCode (cname = "gst_byte_writer_put_int24_be")]
+ public bool put_int24_be (int32 val);
+ [CCode (cname = "gst_byte_writer_put_int24_le")]
+ public bool put_int24_le (int32 val);
+ [CCode (cname = "gst_byte_writer_put_int32_be")]
+ public bool put_int32_be (int32 val);
+ [CCode (cname = "gst_byte_writer_put_int32_le")]
+ public bool put_int32_le (int32 val);
+ [CCode (cname = "gst_byte_writer_put_int64_be")]
+ public bool put_int64_be (int64 val);
+ [CCode (cname = "gst_byte_writer_put_int64_le")]
+ public bool put_int64_le (int64 val);
+ [CCode (cname = "gst_byte_writer_put_int8")]
+ public bool put_int8 (int8 val);
+ [CCode (cname = "gst_byte_writer_put_string_utf16")]
+ public bool put_string_utf16 ([CCode (array_length = false, array_null_terminated = true)] uint16[] data);
+ [CCode (cname = "gst_byte_writer_put_string_utf32")]
+ public bool put_string_utf32 ([CCode (array_length = false, array_null_terminated = true)] uint32[] data);
+ [CCode (cname = "gst_byte_writer_put_string_utf8")]
+ public bool put_string_utf8 (string data);
+ [CCode (cname = "gst_byte_writer_put_uint16_be")]
+ public bool put_uint16_be (uint16 val);
+ [CCode (cname = "gst_byte_writer_put_uint16_le")]
+ public bool put_uint16_le (uint16 val);
+ [CCode (cname = "gst_byte_writer_put_uint24_be")]
+ public bool put_uint24_be (uint32 val);
+ [CCode (cname = "gst_byte_writer_put_uint24_le")]
+ public bool put_uint24_le (uint32 val);
+ [CCode (cname = "gst_byte_writer_put_uint32_be")]
+ public bool put_uint32_be (uint32 val);
+ [CCode (cname = "gst_byte_writer_put_uint32_le")]
+ public bool put_uint32_le (uint32 val);
+ [CCode (cname = "gst_byte_writer_put_uint64_be")]
+ public bool put_uint64_be (uint64 val);
+ [CCode (cname = "gst_byte_writer_put_uint64_le")]
+ public bool put_uint64_le (uint64 val);
+ [CCode (cname = "gst_byte_writer_put_uint8")]
+ public bool put_uint8 (uint8 val);
+ [CCode (cname = "gst_byte_writer_reset")]
+ public void reset ();
+ [CCode (cname = "gst_byte_writer_reset_and_get_buffer")]
+ public Gst.Buffer reset_and_get_buffer ();
+ [CCode (array_length = false, cname = "gst_byte_writer_reset_and_get_data")]
+ public uint8[] reset_and_get_data ();
+ [CCode (cname = "gst_byte_writer_new_with_data", has_construct_function = false)]
+ public ByteWriter.with_data ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "guint", type = "guint8*")] uint8[] data, bool initialized);
+ [CCode (cname = "gst_byte_writer_new_with_size", has_construct_function = false)]
+ public ByteWriter.with_size (uint size, bool fixed);
+ }
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstCollectPads", lower_case_cprefix = "gst_collect_pads_", type_id = "gst_collect_pads_get_type ()")]
+ [GIR (name = "CollectPads")]
+ public class CollectPads : Gst.Object {
+ public weak GLib.SList<Gst.Base.CollectData?> data;
+ [CCode (has_construct_function = false)]
+ public CollectPads ();
+ public unowned Gst.Base.CollectData? add_pad (Gst.Pad pad, uint size, [CCode (scope = "async")] Gst.Base.CollectDataDestroyNotify destroy_notify, bool @lock);
+ public uint available ();
+ public Gst.FlowReturn clip_running_time (Gst.Base.CollectData cdata, Gst.Buffer buf, out Gst.Buffer outbuf, void* user_data);
+ public bool event_default (Gst.Base.CollectData data, Gst.Event event, bool discard);
+ public uint flush (Gst.Base.CollectData data, uint size);
+ public Gst.Buffer? peek (Gst.Base.CollectData data);
+ public Gst.Buffer? pop (Gst.Base.CollectData data);
+ public bool query_default (Gst.Base.CollectData data, Gst.Query query, bool discard);
+ public Gst.Buffer? read_buffer (Gst.Base.CollectData data, uint size);
+ public bool remove_pad (Gst.Pad pad);
+ public void set_buffer_function (Gst.Base.CollectPadsBufferFunction func);
+ public void set_clip_function (Gst.Base.CollectPadsClipFunction clipfunc);
+ public void set_compare_function (Gst.Base.CollectPadsCompareFunction func);
+ public void set_event_function (Gst.Base.CollectPadsEventFunction func);
+ [Version (since = "1.4")]
+ public void set_flush_function (Gst.Base.CollectPadsFlushFunction func);
+ public void set_flushing (bool flushing);
+ public void set_function (Gst.Base.CollectPadsFunction func);
+ public void set_query_function (Gst.Base.CollectPadsQueryFunction func);
+ public void set_waiting (Gst.Base.CollectData data, bool waiting);
+ [Version (since = "1.4")]
+ public bool src_event_default (Gst.Pad pad, Gst.Event event);
+ public void start ();
+ public void stop ();
+ public Gst.Buffer? take_buffer (Gst.Base.CollectData data, uint size);
+ }
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstDataQueue", lower_case_cprefix = "gst_data_queue_", type_id = "gst_data_queue_get_type ()")]
+ [GIR (name = "DataQueue")]
+ public class DataQueue : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected DataQueue ();
+ [NoWrapper]
+ public virtual void empty ();
+ [NoWrapper]
+ public virtual void full ();
+ [NoAccessorMethod]
+ public uint current_level_bytes { get; }
+ [NoAccessorMethod]
+ public uint64 current_level_time { get; }
+ [NoAccessorMethod]
+ public uint current_level_visible { get; }
+ }
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstFlowCombiner", copy_function = "g_boxed_copy", free_function = "g_boxed_free", lower_case_cprefix = "gst_flow_combiner_", type_id = "gst_flow_combiner_get_type ()")]
+ [Compact]
+ [GIR (name = "FlowCombiner")]
+ [Version (since = "1.4")]
+ public class FlowCombiner {
+ [CCode (has_construct_function = false)]
+ public FlowCombiner ();
+ public void add_pad (Gst.Pad pad);
+ [Version (since = "1.6")]
+ public void clear ();
+ public void free ();
+ [Version (since = "1.12.1")]
+ public unowned Gst.Base.FlowCombiner @ref ();
+ public void remove_pad (Gst.Pad pad);
+ [Version (since = "1.6")]
+ public void reset ();
+ [Version (since = "1.12.1")]
+ public void unref ();
+ public Gst.FlowReturn update_flow (Gst.FlowReturn fret);
+ [Version (since = "1.6")]
+ public Gst.FlowReturn update_pad_flow (Gst.Pad pad, Gst.FlowReturn fret);
+ }
+ [CCode (cheader_filename = "gst/base/base.h", type_id = "gst_base_parse_get_type ()")]
+ [GIR (name = "BaseParse")]
+ public abstract class Parse : Gst.Element {
+ public uint flags;
+ public weak Gst.Segment segment;
+ public weak Gst.Pad sinkpad;
+ public weak Gst.Pad srcpad;
+ [CCode (has_construct_function = false)]
+ protected Parse ();
+ public bool add_index_entry (uint64 offset, Gst.ClockTime ts, bool key, bool force);
+ [NoWrapper]
+ public virtual bool convert (Gst.Format src_format, int64 src_value, Gst.Format dest_format, out int64 dest_value);
+ public bool convert_default (Gst.Format src_format, int64 src_value, Gst.Format dest_format, out int64 dest_value);
+ [NoWrapper]
+ public virtual Gst.FlowReturn detect (Gst.Buffer buffer);
+ [Version (since = "1.12")]
+ public void drain ();
+ public Gst.FlowReturn finish_frame (Gst.Base.ParseFrame frame, int size);
+ [NoWrapper]
+ public virtual Gst.Caps get_sink_caps (Gst.Caps filter);
+ [NoWrapper]
+ public virtual Gst.FlowReturn handle_frame (Gst.Base.ParseFrame frame, out int skipsize);
+ [Version (since = "1.6")]
+ public void merge_tags (Gst.TagList? tags, Gst.TagMergeMode mode);
+ [NoWrapper]
+ public virtual Gst.FlowReturn pre_push_frame (Gst.Base.ParseFrame frame);
+ public Gst.FlowReturn push_frame (Gst.Base.ParseFrame frame);
+ public void set_average_bitrate (uint bitrate);
+ public void set_duration (Gst.Format fmt, int64 duration, int interval);
+ public void set_frame_rate (uint fps_num, uint fps_den, uint lead_in, uint lead_out);
+ public void set_has_timing_info (bool has_timing);
+ public void set_infer_ts (bool infer_ts);
+ public void set_latency (Gst.ClockTime min_latency, Gst.ClockTime max_latency);
+ public void set_min_frame_size (uint min_size);
+ public void set_passthrough (bool passthrough);
+ public void set_pts_interpolation (bool pts_interpolate);
+ [NoWrapper]
+ public virtual bool set_sink_caps (Gst.Caps caps);
+ public void set_syncable (bool syncable);
+ [Version (since = "1.2")]
+ public void set_ts_at_offset (size_t offset);
+ [NoWrapper]
+ public virtual bool sink_event (Gst.Event event);
+ [NoWrapper]
+ public virtual bool sink_query (Gst.Query query);
+ [NoWrapper]
+ public virtual bool src_event (Gst.Event event);
+ [NoWrapper]
+ public virtual bool src_query (Gst.Query query);
+ [NoWrapper]
+ public virtual bool start ();
+ [NoWrapper]
+ public virtual bool stop ();
+ [NoAccessorMethod]
+ public bool disable_passthrough { get; set; }
+ }
+ [CCode (cheader_filename = "gst/base/base.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gst_base_parse_frame_get_type ()")]
+ [Compact]
+ [GIR (name = "BaseParseFrame")]
+ public class ParseFrame {
+ public weak Gst.Buffer buffer;
+ public uint flags;
+ public uint64 offset;
+ public weak Gst.Buffer out_buffer;
+ public int overhead;
+ [CCode (has_construct_function = false)]
+ public ParseFrame (Gst.Buffer buffer, Gst.Base.ParseFrameFlags flags, int overhead);
+ [Version (since = "1.12.1")]
+ public Gst.Base.ParseFrame copy ();
+ public void free ();
+ public void init ();
+ }
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstPushSrc", lower_case_cprefix = "gst_push_src_", type_id = "gst_push_src_get_type ()")]
+ [GIR (name = "PushSrc")]
+ public class PushSrc : Gst.Base.Src {
+ [CCode (has_construct_function = false)]
+ protected PushSrc ();
+ [NoWrapper]
+ public virtual Gst.FlowReturn alloc (out Gst.Buffer buf);
+ [NoWrapper]
+ public virtual Gst.FlowReturn create (out Gst.Buffer buf);
+ [NoWrapper]
+ public virtual Gst.FlowReturn fill (Gst.Buffer buf);
+ }
+ [CCode (cheader_filename = "gst/base/base.h", type_id = "gst_base_sink_get_type ()")]
+ [GIR (name = "BaseSink")]
+ public abstract class Sink : Gst.Element {
+ public bool can_activate_pull;
+ public bool can_activate_push;
+ public bool eos;
+ public bool have_newsegment;
+ public bool have_preroll;
+ public bool need_preroll;
+ public uint64 offset;
+ public Gst.PadMode pad_mode;
+ public bool playing_async;
+ public GLib.Cond preroll_cond;
+ public GLib.Mutex preroll_lock;
+ public weak Gst.Segment segment;
+ public weak Gst.Pad sinkpad;
+ [CCode (has_construct_function = false)]
+ protected Sink ();
+ [NoWrapper]
+ public virtual bool activate_pull (bool active);
+ public Gst.FlowReturn do_preroll (Gst.MiniObject obj);
+ [NoWrapper]
+ public virtual bool event (Gst.Event event);
+ [NoWrapper]
+ public virtual Gst.Caps fixate (Gst.Caps caps);
+ public uint get_blocksize ();
+ [NoWrapper]
+ public virtual Gst.Caps get_caps (Gst.Caps? filter);
+ [Version (since = "1.12")]
+ public bool get_drop_out_of_segment ();
+ public Gst.Sample? get_last_sample ();
+ public Gst.ClockTime get_latency ();
+ [Version (since = "1.2")]
+ public uint64 get_max_bitrate ();
+ public int64 get_max_lateness ();
+ [Version (since = "1.16")]
+ public Gst.ClockTime get_processing_deadline ();
+ public Gst.ClockTime get_render_delay ();
+ [Version (since = "1.18")]
+ public Gst.Structure get_stats ();
+ public bool get_sync ();
+ public uint64 get_throttle_time ();
+ [NoWrapper]
+ public virtual void get_times (Gst.Buffer buffer, out Gst.ClockTime start, out Gst.ClockTime end);
+ public Gst.ClockTimeDiff get_ts_offset ();
+ public bool is_async_enabled ();
+ public bool is_last_sample_enabled ();
+ public bool is_qos_enabled ();
+ [NoWrapper]
+ public virtual Gst.FlowReturn prepare (Gst.Buffer buffer);
+ [NoWrapper]
+ public virtual Gst.FlowReturn prepare_list (Gst.BufferList buffer_list);
+ [NoWrapper]
+ public virtual Gst.FlowReturn preroll (Gst.Buffer buffer);
+ [NoWrapper]
+ public virtual bool propose_allocation (Gst.Query query);
+ [NoWrapper]
+ public virtual bool query (Gst.Query query);
+ public bool query_latency (out bool live, out bool upstream_live, out Gst.ClockTime min_latency, out Gst.ClockTime max_latency);
+ [NoWrapper]
+ public virtual Gst.FlowReturn render (Gst.Buffer buffer);
+ [NoWrapper]
+ public virtual Gst.FlowReturn render_list (Gst.BufferList buffer_list);
+ public void set_async_enabled (bool enabled);
+ public void set_blocksize (uint blocksize);
+ [NoWrapper]
+ public virtual bool set_caps (Gst.Caps caps);
+ [Version (since = "1.12")]
+ public void set_drop_out_of_segment (bool drop_out_of_segment);
+ public void set_last_sample_enabled (bool enabled);
+ [Version (since = "1.2")]
+ public void set_max_bitrate (uint64 max_bitrate);
+ public void set_max_lateness (int64 max_lateness);
+ [Version (since = "1.16")]
+ public void set_processing_deadline (Gst.ClockTime processing_deadline);
+ public void set_qos_enabled (bool enabled);
+ public void set_render_delay (Gst.ClockTime delay);
+ public void set_sync (bool sync);
+ public void set_throttle_time (uint64 throttle);
+ public void set_ts_offset (Gst.ClockTimeDiff offset);
+ [NoWrapper]
+ public virtual bool start ();
+ [NoWrapper]
+ public virtual bool stop ();
+ [NoWrapper]
+ public virtual bool @unlock ();
+ [NoWrapper]
+ public virtual bool unlock_stop ();
+ public Gst.FlowReturn wait (Gst.ClockTime time, out Gst.ClockTimeDiff jitter);
+ public Gst.ClockReturn wait_clock (Gst.ClockTime time, out Gst.ClockTimeDiff jitter);
+ [NoWrapper]
+ public virtual Gst.FlowReturn wait_event (Gst.Event event);
+ public Gst.FlowReturn wait_preroll ();
+ [NoAccessorMethod]
+ public bool @async { get; set; }
+ public uint blocksize { get; set; }
+ [NoAccessorMethod]
+ public bool enable_last_sample { get; set; }
+ public Gst.Sample last_sample { owned get; }
+ [Version (since = "1.2")]
+ public uint64 max_bitrate { get; set; }
+ public int64 max_lateness { get; set; }
+ [Version (since = "1.16")]
+ public uint64 processing_deadline { get; set; }
+ [NoAccessorMethod]
+ public bool qos { get; set; }
+ public uint64 render_delay { get; set; }
+ [Version (since = "1.18")]
+ public Gst.Structure stats { owned get; }
+ public bool sync { get; set; }
+ public uint64 throttle_time { get; set; }
+ public int64 ts_offset { get; set; }
+ }
+ [CCode (cheader_filename = "gst/base/base.h", type_id = "gst_base_src_get_type ()")]
+ [GIR (name = "BaseSrc")]
+ public abstract class Src : Gst.Element {
+ public bool can_activate_push;
+ public Gst.ClockID clock_id;
+ public GLib.Cond live_cond;
+ public GLib.Mutex live_lock;
+ public bool live_running;
+ public bool need_newsegment;
+ public int num_buffers_left;
+ public weak Gst.Event pending_seek;
+ public bool random_access;
+ public bool running;
+ public weak Gst.Segment segment;
+ public weak Gst.Pad srcpad;
+ [CCode (has_construct_function = false)]
+ protected Src ();
+ [NoWrapper]
+ public virtual Gst.FlowReturn alloc (uint64 offset, uint size, out Gst.Buffer buf);
+ [NoWrapper]
+ public virtual Gst.FlowReturn create (uint64 offset, uint size, ref Gst.Buffer buf);
+ [NoWrapper]
+ public virtual bool decide_allocation (Gst.Query query);
+ [NoWrapper]
+ public virtual bool do_seek (Gst.Segment segment);
+ [NoWrapper]
+ public virtual bool event (Gst.Event event);
+ [NoWrapper]
+ public virtual Gst.FlowReturn fill (uint64 offset, uint size, Gst.Buffer buf);
+ [NoWrapper]
+ public virtual Gst.Caps fixate (Gst.Caps caps);
+ public void get_allocator (out Gst.Allocator? allocator, out unowned Gst.AllocationParams @params);
+ public uint get_blocksize ();
+ public Gst.BufferPool? get_buffer_pool ();
+ [NoWrapper]
+ public virtual Gst.Caps get_caps (Gst.Caps? filter);
+ public bool get_do_timestamp ();
+ [NoWrapper]
+ public virtual bool get_size (out uint64 size);
+ [NoWrapper]
+ public virtual void get_times (Gst.Buffer buffer, out Gst.ClockTime start, out Gst.ClockTime end);
+ public bool is_async ();
+ [NoWrapper]
+ public virtual bool is_seekable ();
+ [Version (since = "1.18")]
+ public virtual bool negotiate ();
+ [Version (deprecated = true, deprecated_since = "1.18")]
+ public bool new_seamless_segment (int64 start, int64 stop, int64 time);
+ [Version (since = "1.18")]
+ public bool new_segment (Gst.Segment segment);
+ [NoWrapper]
+ public virtual bool prepare_seek_segment (Gst.Event seek, Gst.Segment segment);
+ [NoWrapper]
+ public virtual bool query (Gst.Query query);
+ public bool query_latency (out bool live, out Gst.ClockTime min_latency, out Gst.ClockTime max_latency);
+ public void set_async (bool @async);
+ [Version (since = "1.4")]
+ public void set_automatic_eos (bool automatic_eos);
+ public void set_blocksize (uint blocksize);
+ public virtual bool set_caps (Gst.Caps caps);
+ public void set_do_timestamp (bool timestamp);
+ public void set_dynamic_size (bool @dynamic);
+ public void set_format (Gst.Format format);
+ public void set_live (bool live);
+ [NoWrapper]
+ public virtual bool start ();
+ public void start_complete (Gst.FlowReturn ret);
+ public Gst.FlowReturn start_wait ();
+ [NoWrapper]
+ public virtual bool stop ();
+ [Version (since = "1.14")]
+ public void submit_buffer_list (owned Gst.BufferList buffer_list);
+ [NoWrapper]
+ public virtual bool @unlock ();
+ [NoWrapper]
+ public virtual bool unlock_stop ();
+ public Gst.FlowReturn wait_playing ();
+ public uint blocksize { get; set; }
+ public bool do_timestamp { get; set; }
+ [NoAccessorMethod]
+ public int num_buffers { get; set; }
+ [NoAccessorMethod]
+ public bool typefind { get; set; }
+ }
+ [CCode (cheader_filename = "gst/base/base.h", type_id = "gst_base_transform_get_type ()")]
+ [GIR (name = "BaseTransform")]
+ public abstract class Transform : Gst.Element {
+ public bool have_segment;
+ public weak Gst.Buffer queued_buf;
+ public weak Gst.Segment segment;
+ public weak Gst.Pad sinkpad;
+ public weak Gst.Pad srcpad;
+ [CCode (has_construct_function = false)]
+ protected Transform ();
+ [NoWrapper]
+ public virtual bool accept_caps (Gst.PadDirection direction, Gst.Caps caps);
+ [NoWrapper]
+ public virtual void before_transform (Gst.Buffer buffer);
+ [NoWrapper]
+ public virtual bool copy_metadata (Gst.Buffer input, Gst.Buffer outbuf);
+ [NoWrapper]
+ public virtual bool decide_allocation (Gst.Query query);
+ [NoWrapper]
+ public virtual bool filter_meta (Gst.Query query, GLib.Type api, Gst.Structure @params);
+ [NoWrapper]
+ public virtual Gst.Caps fixate_caps (Gst.PadDirection direction, Gst.Caps caps, owned Gst.Caps othercaps);
+ [NoWrapper]
+ public virtual Gst.FlowReturn generate_output (out Gst.Buffer outbuf);
+ public void get_allocator (out Gst.Allocator? allocator, out unowned Gst.AllocationParams @params);
+ public Gst.BufferPool? get_buffer_pool ();
+ [NoWrapper]
+ public virtual bool get_unit_size (Gst.Caps caps, out size_t size);
+ public bool is_in_place ();
+ public bool is_passthrough ();
+ public bool is_qos_enabled ();
+ [NoWrapper]
+ public virtual Gst.FlowReturn prepare_output_buffer (Gst.Buffer input, out Gst.Buffer outbuf);
+ [NoWrapper]
+ public virtual bool propose_allocation (Gst.Query decide_query, Gst.Query query);
+ [NoWrapper]
+ public virtual bool query (Gst.PadDirection direction, Gst.Query query);
+ [Version (since = "1.18")]
+ public bool reconfigure ();
+ public void reconfigure_sink ();
+ public void reconfigure_src ();
+ [NoWrapper]
+ public virtual bool set_caps (Gst.Caps incaps, Gst.Caps outcaps);
+ public void set_gap_aware (bool gap_aware);
+ public void set_in_place (bool in_place);
+ public void set_passthrough (bool passthrough);
+ [Version (since = "1.0.1")]
+ public void set_prefer_passthrough (bool prefer_passthrough);
+ public void set_qos_enabled (bool enabled);
+ [NoWrapper]
+ public virtual bool sink_event (owned Gst.Event event);
+ [NoWrapper]
+ public virtual bool src_event (owned Gst.Event event);
+ [NoWrapper]
+ public virtual bool start ();
+ [NoWrapper]
+ public virtual bool stop ();
+ [NoWrapper]
+ public virtual Gst.FlowReturn submit_input_buffer (bool is_discont, Gst.Buffer input);
+ [NoWrapper]
+ public virtual Gst.FlowReturn transform (Gst.Buffer inbuf, Gst.Buffer outbuf);
+ [NoWrapper]
+ public virtual Gst.Caps transform_caps (Gst.PadDirection direction, Gst.Caps caps, Gst.Caps filter);
+ [NoWrapper]
+ public virtual Gst.FlowReturn transform_ip (Gst.Buffer buf);
+ [NoWrapper]
+ public virtual bool transform_meta (Gst.Buffer outbuf, Gst.Meta meta, Gst.Buffer inbuf);
+ [NoWrapper]
+ public virtual bool transform_size (Gst.PadDirection direction, Gst.Caps caps, size_t size, Gst.Caps othercaps, out size_t othersize);
+ public void update_qos (double proportion, Gst.ClockTimeDiff diff, Gst.ClockTime timestamp);
+ [Version (since = "1.6")]
+ public bool update_src_caps (Gst.Caps updated_caps);
+ [NoAccessorMethod]
+ public bool qos { get; set; }
+ }
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstBitWriter", has_type_id = false)]
+ [GIR (name = "BitWriter")]
+ [Version (since = "1.16")]
+ public struct BitWriter {
+ public uint8 data;
+ public uint bit_size;
+ [CCode (cname = "gst_bit_writer_align_bytes")]
+ public bool align_bytes (uint8 trailing_bit);
+ [CCode (cname = "gst_bit_writer_free")]
+ [DestroysInstance]
+ public void free ();
+ [CCode (cname = "gst_bit_writer_free_and_get_buffer")]
+ [DestroysInstance]
+ public Gst.Buffer free_and_get_buffer ();
+ [CCode (array_length = false, cname = "gst_bit_writer_free_and_get_data")]
+ [DestroysInstance]
+ public uint8[] free_and_get_data ();
+ [CCode (array_length = false, cname = "gst_bit_writer_get_data")]
+ public unowned uint8[] get_data ();
+ [CCode (cname = "gst_bit_writer_get_remaining")]
+ public uint get_remaining ();
+ [CCode (cname = "gst_bit_writer_get_size")]
+ public uint get_size ();
+ [CCode (cname = "gst_bit_writer_put_bits_uint16")]
+ public bool put_bits_uint16 (uint16 value, uint nbits);
+ [CCode (cname = "gst_bit_writer_put_bits_uint32")]
+ public bool put_bits_uint32 (uint32 value, uint nbits);
+ [CCode (cname = "gst_bit_writer_put_bits_uint64")]
+ public bool put_bits_uint64 (uint64 value, uint nbits);
+ [CCode (cname = "gst_bit_writer_put_bits_uint8")]
+ public bool put_bits_uint8 (uint8 value, uint nbits);
+ [CCode (cname = "gst_bit_writer_put_bytes")]
+ public bool put_bytes ([CCode (array_length_cname = "nbytes", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
+ [CCode (cname = "gst_bit_writer_reset")]
+ public void reset ();
+ [CCode (cname = "gst_bit_writer_reset_and_get_buffer")]
+ public Gst.Buffer reset_and_get_buffer ();
+ [CCode (array_length = false, cname = "gst_bit_writer_reset_and_get_data")]
+ public uint8[] reset_and_get_data ();
+ [CCode (cname = "gst_bit_writer_set_pos")]
+ public bool set_pos (uint pos);
+ }
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstCollectData", has_type_id = false)]
+ [GIR (name = "CollectData")]
+ public struct CollectData {
+ public weak Gst.Base.CollectPads collect;
+ public weak Gst.Pad pad;
+ public weak Gst.Buffer buffer;
+ public uint pos;
+ public weak Gst.Segment segment;
+ [CCode (cname = "ABI.abi.dts")]
+ public int64 ABI_abi_dts;
+ }
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstAggregatorStartTimeSelection", cprefix = "GST_AGGREGATOR_START_TIME_SELECTION_", type_id = "gst_aggregator_start_time_selection_get_type ()")]
+ [GIR (name = "AggregatorStartTimeSelection")]
+ [Version (since = "1.18")]
+ public enum AggregatorStartTimeSelection {
+ ZERO,
+ FIRST,
+ SET
+ }
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstCollectPadsStateFlags", cprefix = "GST_COLLECT_PADS_STATE_", has_type_id = false)]
+ [Flags]
+ [GIR (name = "CollectPadsStateFlags")]
+ public enum CollectPadsStateFlags {
+ EOS,
+ FLUSHING,
+ NEW_SEGMENT,
+ WAITING,
+ LOCKED
+ }
+ [CCode (cheader_filename = "gst/base/base.h", cprefix = "GST_BASE_PARSE_FRAME_FLAG_", has_type_id = false)]
+ [Flags]
+ [GIR (name = "BaseParseFrameFlags")]
+ public enum ParseFrameFlags {
+ NONE,
+ NEW_FRAME,
+ NO_FRAME,
+ CLIP,
+ DROP,
+ QUEUE
+ }
+ [CCode (cheader_filename = "gst/base/base.h", cprefix = "GST_BASE_SRC_FLAG_", has_type_id = false)]
+ [Flags]
+ [GIR (name = "BaseSrcFlags")]
+ public enum SrcFlags {
+ STARTING,
+ STARTED,
+ LAST
+ }
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstCollectDataDestroyNotify", has_target = false)]
+ public delegate void CollectDataDestroyNotify (Gst.Base.CollectData data);
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstCollectPadsBufferFunction", instance_pos = 3.9)]
+ public delegate Gst.FlowReturn CollectPadsBufferFunction (Gst.Base.CollectPads pads, Gst.Base.CollectData data, owned Gst.Buffer buffer);
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstCollectPadsClipFunction", instance_pos = 4.9)]
+ public delegate Gst.FlowReturn CollectPadsClipFunction (Gst.Base.CollectPads pads, Gst.Base.CollectData data, owned Gst.Buffer inbuffer, out Gst.Buffer outbuffer);
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstCollectPadsCompareFunction", instance_pos = 5.9)]
+ public delegate int CollectPadsCompareFunction (Gst.Base.CollectPads pads, Gst.Base.CollectData data1, Gst.ClockTime timestamp1, Gst.Base.CollectData data2, Gst.ClockTime timestamp2);
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstCollectPadsEventFunction", instance_pos = 3.9)]
+ public delegate bool CollectPadsEventFunction (Gst.Base.CollectPads pads, Gst.Base.CollectData pad, Gst.Event event);
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstCollectPadsFlushFunction", instance_pos = 1.9)]
+ [Version (since = "1.4")]
+ public delegate void CollectPadsFlushFunction (Gst.Base.CollectPads pads);
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstCollectPadsFunction", instance_pos = 1.9)]
+ public delegate Gst.FlowReturn CollectPadsFunction (Gst.Base.CollectPads pads);
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstCollectPadsQueryFunction", instance_pos = 3.9)]
+ public delegate bool CollectPadsQueryFunction (Gst.Base.CollectPads pads, Gst.Base.CollectData pad, Gst.Query query);
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstDataQueueEmptyCallback", has_target = false)]
+ public delegate void DataQueueEmptyCallback (Gst.Base.DataQueue queue, void* checkdata);
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstDataQueueFullCallback", has_target = false)]
+ public delegate void DataQueueFullCallback (Gst.Base.DataQueue queue, void* checkdata);
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GstTypeFindHelperGetRangeFunction", has_target = false)]
+ public delegate Gst.FlowReturn TypeFindHelperGetRangeFunction (Gst.Object obj, Gst.Object? parent, uint64 offset, uint length, out Gst.Buffer buffer);
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GST_BASE_PARSE_FLAG_DRAINING")]
+ public const int PARSE_FLAG_DRAINING;
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GST_BASE_PARSE_FLAG_LOST_SYNC")]
+ public const int PARSE_FLAG_LOST_SYNC;
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GST_BASE_TRANSFORM_SINK_NAME")]
+ public const string TRANSFORM_SINK_NAME;
+ [CCode (cheader_filename = "gst/base/base.h", cname = "GST_BASE_TRANSFORM_SRC_NAME")]
+ public const string TRANSFORM_SRC_NAME;
+ [CCode (cheader_filename = "gst/base/base.h", cname = "gst_type_find_helper")]
+ public static Gst.Caps? type_find_helper (Gst.Pad src, uint64 size);
+ [CCode (cheader_filename = "gst/base/base.h", cname = "gst_type_find_helper_for_buffer")]
+ public static Gst.Caps? type_find_helper_for_buffer (Gst.Object? obj, Gst.Buffer buf, out Gst.TypeFindProbability prob);
+ [CCode (cheader_filename = "gst/base/base.h", cname = "gst_type_find_helper_for_buffer_with_extension")]
+ [Version (since = "1.16")]
+ public static Gst.Caps? type_find_helper_for_buffer_with_extension (Gst.Object? obj, Gst.Buffer buf, string? extension, out Gst.TypeFindProbability prob);
+ [CCode (cheader_filename = "gst/base/base.h", cname = "gst_type_find_helper_for_data")]
+ public static Gst.Caps? type_find_helper_for_data (Gst.Object? obj, [CCode (array_length_cname = "size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] data, out Gst.TypeFindProbability prob);
+ [CCode (cheader_filename = "gst/base/base.h", cname = "gst_type_find_helper_for_data_with_extension")]
+ [Version (since = "1.16")]
+ public static Gst.Caps? type_find_helper_for_data_with_extension (Gst.Object? obj, [CCode (array_length_cname = "size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] data, string? extension, out Gst.TypeFindProbability prob);
+ [CCode (cheader_filename = "gst/base/base.h", cname = "gst_type_find_helper_for_extension")]
+ public static Gst.Caps? type_find_helper_for_extension (Gst.Object? obj, string extension);
+ [CCode (cheader_filename = "gst/base/base.h", cname = "gst_type_find_helper_get_range")]
+ public static Gst.Caps? type_find_helper_get_range (Gst.Object obj, Gst.Object? parent, Gst.Base.TypeFindHelperGetRangeFunction func, uint64 size, string? extension, out Gst.TypeFindProbability prob);
+ [CCode (cheader_filename = "gst/base/base.h", cname = "gst_type_find_helper_get_range_full")]
+ [Version (since = "1.14.3")]
+ public static Gst.FlowReturn type_find_helper_get_range_full (Gst.Object obj, Gst.Object? parent, Gst.Base.TypeFindHelperGetRangeFunction func, uint64 size, string? extension, out Gst.Caps caps, out Gst.TypeFindProbability prob);
+ }
+}
diff --git a/main/vapi/gstreamer-rtp-1.0.vapi b/main/vapi/gstreamer-rtp-1.0.vapi
new file mode 100644
index 00000000..35ad6619
--- /dev/null
+++ b/main/vapi/gstreamer-rtp-1.0.vapi
@@ -0,0 +1,724 @@
+// Fixme: This is fetched from development code of Vala upstream which fixed a few bugs.
+/* gstreamer-rtp-1.0.vapi generated by vapigen, do not modify. */
+
+[CCode (cprefix = "Gst", gir_namespace = "GstRtp", gir_version = "1.0", lower_case_cprefix = "gst_")]
+namespace Gst {
+ namespace RTCP {
+ [CCode (cheader_filename = "gst/rtp/rtp.h", has_type_id = false)]
+ [GIR (name = "RTCPBuffer")]
+ public struct Buffer {
+ public weak Gst.Buffer buffer;
+ public bool add_packet (Gst.RTCP.Type type, Gst.RTCP.Packet packet);
+ public bool get_first_packet (Gst.RTCP.Packet packet);
+ public uint get_packet_count ();
+ public static bool map (Gst.Buffer buffer, Gst.MapFlags flags, out Gst.RTCP.Buffer rtcp);
+ public static Gst.Buffer @new (uint mtu);
+ public static Gst.Buffer new_copy_data ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
+ public static Gst.Buffer new_take_data ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] owned uint8[] data);
+ public bool unmap ();
+ public static bool validate (Gst.Buffer buffer);
+ public static bool validate_data ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
+ [Version (since = "1.6")]
+ public static bool validate_data_reduced ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
+ [Version (since = "1.6")]
+ public static bool validate_reduced (Gst.Buffer buffer);
+ }
+ [CCode (cheader_filename = "gst/rtp/rtp.h", has_type_id = false)]
+ [GIR (name = "RTCPPacket")]
+ public struct Packet {
+ public weak Gst.RTCP.Buffer? rtcp;
+ public uint offset;
+ [Version (since = "1.10")]
+ public bool add_profile_specific_ext ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
+ public bool add_rb (uint32 ssrc, uint8 fractionlost, int32 packetslost, uint32 exthighestseq, uint32 jitter, uint32 lsr, uint32 dlsr);
+ [Version (since = "1.10")]
+ public uint8 app_get_data ();
+ [Version (since = "1.10")]
+ public uint16 app_get_data_length ();
+ [Version (since = "1.10")]
+ public unowned string app_get_name ();
+ [Version (since = "1.10")]
+ public uint32 app_get_ssrc ();
+ [Version (since = "1.10")]
+ public uint8 app_get_subtype ();
+ [Version (since = "1.10")]
+ public bool app_set_data_length (uint16 wordlen);
+ [Version (since = "1.10")]
+ public void app_set_name (string name);
+ [Version (since = "1.10")]
+ public void app_set_ssrc (uint32 ssrc);
+ [Version (since = "1.10")]
+ public void app_set_subtype (uint8 subtype);
+ public bool bye_add_ssrc (uint32 ssrc);
+ public bool bye_add_ssrcs ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] uint32[] ssrc);
+ public uint32 bye_get_nth_ssrc (uint nth);
+ public string bye_get_reason ();
+ public uint8 bye_get_reason_len ();
+ public uint bye_get_ssrc_count ();
+ public bool bye_set_reason (string reason);
+ [Version (since = "1.10")]
+ public bool copy_profile_specific_ext ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] out uint8[] data);
+ public uint8 fb_get_fci ();
+ public uint16 fb_get_fci_length ();
+ public uint32 fb_get_media_ssrc ();
+ public uint32 fb_get_sender_ssrc ();
+ public Gst.RTCP.FBType fb_get_type ();
+ public bool fb_set_fci_length (uint16 wordlen);
+ public void fb_set_media_ssrc (uint32 ssrc);
+ public void fb_set_sender_ssrc (uint32 ssrc);
+ public void fb_set_type (Gst.RTCP.FBType type);
+ public uint8 get_count ();
+ public uint16 get_length ();
+ public bool get_padding ();
+ [Version (since = "1.10")]
+ public bool get_profile_specific_ext ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] out unowned uint8[] data);
+ [Version (since = "1.10")]
+ public uint16 get_profile_specific_ext_length ();
+ public void get_rb (uint nth, out uint32 ssrc, out uint8 fractionlost, out int32 packetslost, out uint32 exthighestseq, out uint32 jitter, out uint32 lsr, out uint32 dlsr);
+ public uint get_rb_count ();
+ public Gst.RTCP.Type get_type ();
+ public bool move_to_next ();
+ public bool remove ();
+ public uint32 rr_get_ssrc ();
+ public void rr_set_ssrc (uint32 ssrc);
+ public bool sdes_add_entry (Gst.RTCP.SDESType type, [CCode (array_length_cname = "len", array_length_pos = 1.5, array_length_type = "guint8")] uint8[] data);
+ public bool sdes_add_item (uint32 ssrc);
+ public bool sdes_copy_entry (out Gst.RTCP.SDESType type, [CCode (array_length_cname = "len", array_length_pos = 1.5, array_length_type = "guint8")] out uint8[] data);
+ public bool sdes_first_entry ();
+ public bool sdes_first_item ();
+ public bool sdes_get_entry (out Gst.RTCP.SDESType type, [CCode (array_length_cname = "len", array_length_pos = 1.5, array_length_type = "guint8")] out unowned uint8[] data);
+ public uint sdes_get_item_count ();
+ public uint32 sdes_get_ssrc ();
+ public bool sdes_next_entry ();
+ public bool sdes_next_item ();
+ public void set_rb (uint nth, uint32 ssrc, uint8 fractionlost, int32 packetslost, uint32 exthighestseq, uint32 jitter, uint32 lsr, uint32 dlsr);
+ public void sr_get_sender_info (out uint32 ssrc, out uint64 ntptime, out uint32 rtptime, out uint32 packet_count, out uint32 octet_count);
+ public void sr_set_sender_info (uint32 ssrc, uint64 ntptime, uint32 rtptime, uint32 packet_count, uint32 octet_count);
+ [Version (since = "1.16")]
+ public bool xr_first_rb ();
+ [Version (since = "1.16")]
+ public uint16 xr_get_block_length ();
+ [Version (since = "1.16")]
+ public Gst.RTCP.XRType xr_get_block_type ();
+ [Version (since = "1.16")]
+ public bool xr_get_dlrr_block (uint nth, out uint32 ssrc, out uint32 last_rr, out uint32 delay);
+ [Version (since = "1.16")]
+ public bool xr_get_prt_by_seq (uint16 seq, out uint32 receipt_time);
+ [Version (since = "1.16")]
+ public bool xr_get_prt_info (out uint32 ssrc, out uint8 thinning, out uint16 begin_seq, out uint16 end_seq);
+ [Version (since = "1.16")]
+ public bool xr_get_rle_info (out uint32 ssrc, out uint8 thinning, out uint16 begin_seq, out uint16 end_seq, out uint32 chunk_count);
+ [Version (since = "1.16")]
+ public bool xr_get_rle_nth_chunk (uint nth, out uint16 chunk);
+ [Version (since = "1.16")]
+ public bool xr_get_rrt (out uint64 timestamp);
+ [Version (since = "1.16")]
+ public uint32 xr_get_ssrc ();
+ [Version (since = "1.16")]
+ public bool xr_get_summary_info (out uint32 ssrc, out uint16 begin_seq, out uint16 end_seq);
+ [Version (since = "1.16")]
+ public bool xr_get_summary_jitter (out uint32 min_jitter, out uint32 max_jitter, out uint32 mean_jitter, out uint32 dev_jitter);
+ [Version (since = "1.16")]
+ public bool xr_get_summary_pkt (out uint32 lost_packets, out uint32 dup_packets);
+ [Version (since = "1.16")]
+ public bool xr_get_summary_ttl (out bool is_ipv4, out uint8 min_ttl, out uint8 max_ttl, out uint8 mean_ttl, out uint8 dev_ttl);
+ [Version (since = "1.16")]
+ public bool xr_get_voip_burst_metrics (out uint8 burst_density, out uint8 gap_density, out uint16 burst_duration, out uint16 gap_duration);
+ [Version (since = "1.16")]
+ public bool xr_get_voip_configuration_params (out uint8 gmin, out uint8 rx_config);
+ [Version (since = "1.16")]
+ public bool xr_get_voip_delay_metrics (out uint16 roundtrip_delay, out uint16 end_system_delay);
+ [Version (since = "1.16")]
+ public bool xr_get_voip_jitter_buffer_params (out uint16 jb_nominal, out uint16 jb_maximum, out uint16 jb_abs_max);
+ [Version (since = "1.16")]
+ public bool xr_get_voip_metrics_ssrc (out uint32 ssrc);
+ [Version (since = "1.16")]
+ public bool xr_get_voip_packet_metrics (out uint8 loss_rate, out uint8 discard_rate);
+ [Version (since = "1.16")]
+ public bool xr_get_voip_quality_metrics (out uint8 r_factor, out uint8 ext_r_factor, out uint8 mos_lq, out uint8 mos_cq);
+ [Version (since = "1.16")]
+ public bool xr_get_voip_signal_metrics (out uint8 signal_level, out uint8 noise_level, out uint8 rerl, out uint8 gmin);
+ [Version (since = "1.16")]
+ public bool xr_next_rb ();
+ }
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cprefix = "GST_RTCP_", type_id = "gst_rtcpfb_type_get_type ()")]
+ [GIR (name = "RTCPFBType")]
+ public enum FBType {
+ FB_TYPE_INVALID,
+ RTPFB_TYPE_NACK,
+ RTPFB_TYPE_TMMBR,
+ RTPFB_TYPE_TMMBN,
+ RTPFB_TYPE_RTCP_SR_REQ,
+ RTPFB_TYPE_TWCC,
+ PSFB_TYPE_PLI,
+ PSFB_TYPE_SLI,
+ PSFB_TYPE_RPSI,
+ PSFB_TYPE_AFB,
+ PSFB_TYPE_FIR,
+ PSFB_TYPE_TSTR,
+ PSFB_TYPE_TSTN,
+ PSFB_TYPE_VBCN
+ }
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cprefix = "GST_RTCP_SDES_", type_id = "gst_rtcpsdes_type_get_type ()")]
+ [GIR (name = "RTCPSDESType")]
+ public enum SDESType {
+ INVALID,
+ END,
+ CNAME,
+ NAME,
+ EMAIL,
+ PHONE,
+ LOC,
+ TOOL,
+ NOTE,
+ PRIV,
+ [Version (since = "1.20")]
+ H323_CADDR,
+ [Version (since = "1.20")]
+ APSI,
+ [Version (since = "1.20")]
+ RGRP,
+ [Version (since = "1.20")]
+ RTP_STREAM_ID,
+ [Version (since = "1.20")]
+ REPAIRED_RTP_STREAM_ID,
+ [Version (since = "1.20")]
+ CCID,
+ [Version (since = "1.20")]
+ MID;
+ [CCode (cname = "gst_rtcp_sdes_name_to_type")]
+ public static Gst.RTCP.SDESType from_string (string name);
+ [CCode (cname = "gst_rtcp_sdes_type_to_name")]
+ public unowned string to_string ();
+ }
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cprefix = "GST_RTCP_TYPE_", type_id = "gst_rtcp_type_get_type ()")]
+ [GIR (name = "RTCPType")]
+ public enum Type {
+ INVALID,
+ SR,
+ RR,
+ SDES,
+ BYE,
+ APP,
+ RTPFB,
+ PSFB,
+ XR
+ }
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cprefix = "GST_RTCP_XR_TYPE_", type_id = "gst_rtcpxr_type_get_type ()")]
+ [GIR (name = "RTCPXRType")]
+ [Version (since = "1.16")]
+ public enum XRType {
+ INVALID,
+ LRLE,
+ DRLE,
+ PRT,
+ RRT,
+ DLRR,
+ SSUMM,
+ VOIP_METRICS
+ }
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_MAX_BYE_SSRC_COUNT")]
+ public const int MAX_BYE_SSRC_COUNT;
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_MAX_RB_COUNT")]
+ public const int MAX_RB_COUNT;
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_MAX_SDES")]
+ public const int MAX_SDES;
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_MAX_SDES_ITEM_COUNT")]
+ public const int MAX_SDES_ITEM_COUNT;
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_REDUCED_SIZE_VALID_MASK")]
+ public const int REDUCED_SIZE_VALID_MASK;
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_VALID_MASK")]
+ public const int VALID_MASK;
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_VALID_VALUE")]
+ public const int VALID_VALUE;
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_VERSION")]
+ public const int VERSION;
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTCPBuffer.map")]
+ public static bool buffer_map (Gst.Buffer buffer, Gst.MapFlags flags, Gst.RTCP.Buffer rtcp);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTCPBuffer.new")]
+ public static Gst.Buffer buffer_new (uint mtu);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTCPBuffer.new_copy_data")]
+ public static Gst.Buffer buffer_new_copy_data ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTCPBuffer.new_take_data")]
+ public static Gst.Buffer buffer_new_take_data ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTCPBuffer.validate")]
+ public static bool buffer_validate (Gst.Buffer buffer);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTCPBuffer.validate_data")]
+ public static bool buffer_validate_data ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTCPBuffer.validate_data_reduced", since = "1.6")]
+ public static bool buffer_validate_data_reduced ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTCPBuffer.validate_reduced", since = "1.6")]
+ public static bool buffer_validate_reduced (Gst.Buffer buffer);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ public static uint64 ntp_to_unix (uint64 ntptime);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ public static uint64 unix_to_ntp (uint64 unixtime);
+ }
+ namespace RTP {
+ [CCode (cheader_filename = "gst/rtp/rtp.h", type_id = "gst_rtp_base_audio_payload_get_type ()")]
+ [GIR (name = "RTPBaseAudioPayload")]
+ public class BaseAudioPayload : Gst.RTP.BasePayload {
+ public Gst.ClockTime base_ts;
+ public int frame_duration;
+ public int frame_size;
+ public int sample_size;
+ [CCode (has_construct_function = false)]
+ protected BaseAudioPayload ();
+ public Gst.FlowReturn flush (uint payload_len, Gst.ClockTime timestamp);
+ public Gst.Base.Adapter get_adapter ();
+ public Gst.FlowReturn push ([CCode (array_length_cname = "payload_len", array_length_pos = 1.5, array_length_type = "guint")] uint8[] data, Gst.ClockTime timestamp);
+ public void set_frame_based ();
+ public void set_frame_options (int frame_duration, int frame_size);
+ public void set_sample_based ();
+ public void set_sample_options (int sample_size);
+ public void set_samplebits_options (int sample_size);
+ [NoAccessorMethod]
+ public bool buffer_list { get; set; }
+ }
+ [CCode (cheader_filename = "gst/rtp/rtp.h", type_id = "gst_rtp_base_depayload_get_type ()")]
+ [GIR (name = "RTPBaseDepayload")]
+ public abstract class BaseDepayload : Gst.Element {
+ public uint clock_rate;
+ public bool need_newsegment;
+ public weak Gst.Segment segment;
+ public weak Gst.Pad sinkpad;
+ public weak Gst.Pad srcpad;
+ [CCode (has_construct_function = false)]
+ protected BaseDepayload ();
+ [NoWrapper]
+ public virtual bool handle_event (Gst.Event event);
+ [Version (since = "1.16")]
+ public bool is_source_info_enabled ();
+ [NoWrapper]
+ public virtual bool packet_lost (Gst.Event event);
+ [NoWrapper]
+ public virtual Gst.Buffer process (Gst.Buffer @in);
+ [NoWrapper]
+ public virtual Gst.Buffer process_rtp_packet (Gst.RTP.Buffer rtp_buffer);
+ public Gst.FlowReturn push (Gst.Buffer out_buf);
+ public Gst.FlowReturn push_list (Gst.BufferList out_list);
+ [NoWrapper]
+ public virtual bool set_caps (Gst.Caps caps);
+ [Version (since = "1.16")]
+ public void set_source_info_enabled (bool enable);
+ [NoAccessorMethod]
+ [Version (since = "1.20")]
+ public bool auto_header_extension { get; set; }
+ [NoAccessorMethod]
+ [Version (since = "1.18")]
+ public int max_reorder { get; set; }
+ [NoAccessorMethod]
+ [Version (since = "1.16")]
+ public bool source_info { get; set; }
+ [NoAccessorMethod]
+ public Gst.Structure stats { owned get; }
+ [Version (since = "1.20")]
+ public signal void add_extension (owned Gst.RTP.HeaderExtension ext);
+ [Version (since = "1.20")]
+ public signal void clear_extensions ();
+ [Version (since = "1.20")]
+ public signal Gst.RTP.HeaderExtension request_extension (uint ext_id, string? ext_uri);
+ }
+ [CCode (cheader_filename = "gst/rtp/rtp.h", type_id = "gst_rtp_base_payload_get_type ()")]
+ [GIR (name = "RTPBasePayload")]
+ public abstract class BasePayload : Gst.Element {
+ [CCode (has_construct_function = false)]
+ protected BasePayload ();
+ [Version (since = "1.16")]
+ public Gst.Buffer allocate_output_buffer (uint payload_len, uint8 pad_len, uint8 csrc_count);
+ [NoWrapper]
+ public virtual Gst.Caps get_caps (Gst.Pad pad, Gst.Caps filter);
+ [Version (since = "1.16")]
+ public uint get_source_count (Gst.Buffer buffer);
+ [NoWrapper]
+ public virtual Gst.FlowReturn handle_buffer (Gst.Buffer buffer);
+ public bool is_filled (uint size, Gst.ClockTime duration);
+ [Version (since = "1.16")]
+ public bool is_source_info_enabled ();
+ public Gst.FlowReturn push (owned Gst.Buffer buffer);
+ public Gst.FlowReturn push_list (owned Gst.BufferList list);
+ [NoWrapper]
+ public virtual bool query (Gst.Pad pad, Gst.Query query);
+ [NoWrapper]
+ public virtual bool set_caps (Gst.Caps caps);
+ public void set_options (string media, bool @dynamic, string encoding_name, uint32 clock_rate);
+ [Version (since = "1.20")]
+ public bool set_outcaps_structure (Gst.Structure? s);
+ [Version (since = "1.16")]
+ public void set_source_info_enabled (bool enable);
+ [NoWrapper]
+ public virtual bool sink_event (Gst.Event event);
+ [NoWrapper]
+ public virtual bool src_event (Gst.Event event);
+ [NoAccessorMethod]
+ [Version (since = "1.20")]
+ public bool auto_header_extension { get; set; }
+ [NoAccessorMethod]
+ public int64 max_ptime { get; set; }
+ [NoAccessorMethod]
+ public int64 min_ptime { get; set; }
+ [NoAccessorMethod]
+ public uint mtu { get; set; }
+ [NoAccessorMethod]
+ [Version (since = "1.16")]
+ public bool onvif_no_rate_control { get; set; }
+ [NoAccessorMethod]
+ public bool perfect_rtptime { get; set; }
+ [NoAccessorMethod]
+ public uint pt { get; set; }
+ [NoAccessorMethod]
+ public int64 ptime_multiple { get; set; }
+ [NoAccessorMethod]
+ [Version (since = "1.18")]
+ public bool scale_rtptime { get; set; }
+ [NoAccessorMethod]
+ public uint seqnum { get; }
+ [NoAccessorMethod]
+ public int seqnum_offset { get; set; }
+ [NoAccessorMethod]
+ [Version (since = "1.16")]
+ public bool source_info { get; set; }
+ [NoAccessorMethod]
+ public uint ssrc { get; set; }
+ [NoAccessorMethod]
+ public Gst.Structure stats { owned get; }
+ [NoAccessorMethod]
+ public uint timestamp { get; }
+ [NoAccessorMethod]
+ public uint timestamp_offset { get; set; }
+ [Version (since = "1.20")]
+ public signal void add_extension (owned Gst.RTP.HeaderExtension ext);
+ [Version (since = "1.20")]
+ public signal void clear_extensions ();
+ [Version (since = "1.20")]
+ public signal Gst.RTP.HeaderExtension request_extension (uint ext_id, string ext_uri);
+ }
+ [CCode (cheader_filename = "gst/rtp/rtp.h", type_id = "gst_rtp_header_extension_get_type ()")]
+ [GIR (name = "RTPHeaderExtension")]
+ [Version (since = "1.20")]
+ public abstract class HeaderExtension : Gst.Element {
+ [CCode (has_construct_function = false)]
+ protected HeaderExtension ();
+ public static Gst.RTP.HeaderExtension? create_from_uri (string uri);
+ public Gst.RTP.HeaderExtensionDirection get_direction ();
+ public uint get_id ();
+ public virtual size_t get_max_size (Gst.Buffer input_meta);
+ public string get_sdp_caps_field_name ();
+ public virtual Gst.RTP.HeaderExtensionFlags get_supported_flags ();
+ public unowned string get_uri ();
+ public virtual bool read (Gst.RTP.HeaderExtensionFlags read_flags, [CCode (array_length_cname = "size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] data, Gst.Buffer buffer);
+ [NoWrapper]
+ public virtual bool set_attributes (Gst.RTP.HeaderExtensionDirection direction, string attributes);
+ public bool set_attributes_from_caps (Gst.Caps caps);
+ public virtual bool set_caps_from_attributes (Gst.Caps caps);
+ public bool set_caps_from_attributes_helper (Gst.Caps caps, string attributes);
+ public void set_direction (Gst.RTP.HeaderExtensionDirection direction);
+ public void set_id (uint ext_id);
+ public virtual bool set_non_rtp_sink_caps (Gst.Caps caps);
+ [CCode (cname = "gst_rtp_header_extension_class_set_uri")]
+ public class void set_uri (string uri);
+ public void set_wants_update_non_rtp_src_caps (bool state);
+ public virtual bool update_non_rtp_src_caps (Gst.Caps caps);
+ public bool wants_update_non_rtp_src_caps ();
+ public virtual ssize_t write (Gst.Buffer input_meta, Gst.RTP.HeaderExtensionFlags write_flags, Gst.Buffer output, [CCode (array_length_cname = "size", array_length_pos = 4.1, array_length_type = "gsize")] uint8[] data);
+ }
+ [CCode (cheader_filename = "gst/rtp/rtp.h", has_type_id = false)]
+ [GIR (name = "RTPBuffer")]
+ public struct Buffer {
+ public weak Gst.Buffer buffer;
+ public uint state;
+ [CCode (array_length = false)]
+ public weak void* data[4];
+ [CCode (array_length = false)]
+ public weak size_t size[4];
+ public bool add_extension_onebyte_header (uint8 id, [CCode (array_length_cname = "size", array_length_pos = 2.1, array_length_type = "guint")] uint8[] data);
+ public bool add_extension_twobytes_header (uint8 appbits, uint8 id, [CCode (array_length_cname = "size", array_length_pos = 3.1, array_length_type = "guint")] uint8[] data);
+ public static void allocate_data (Gst.Buffer buffer, uint payload_len, uint8 pad_len, uint8 csrc_count);
+ public static uint calc_header_len (uint8 csrc_count);
+ public static uint calc_packet_len (uint payload_len, uint8 pad_len, uint8 csrc_count);
+ public static uint calc_payload_len (uint packet_len, uint8 pad_len, uint8 csrc_count);
+ public static int compare_seqnum (uint16 seqnum1, uint16 seqnum2);
+ public static uint32 default_clock_rate (uint8 payload_type);
+ public static uint64 ext_timestamp (ref uint64 exttimestamp, uint32 timestamp);
+ public uint32 get_csrc (uint8 idx);
+ public uint8 get_csrc_count ();
+ public bool get_extension ();
+ [Version (since = "1.2")]
+ public GLib.Bytes get_extension_bytes (out uint16 bits);
+ public bool get_extension_data (out uint16 bits, [CCode (array_length = false)] out unowned uint8[] data, out uint wordlen);
+ public bool get_extension_onebyte_header (uint8 id, uint nth, [CCode (array_length_cname = "size", array_length_pos = 3.1, array_length_type = "guint")] out unowned uint8[] data);
+ [Version (since = "1.18")]
+ public static bool get_extension_onebyte_header_from_bytes (GLib.Bytes bytes, uint16 bit_pattern, uint8 id, uint nth, [CCode (array_length_cname = "size", array_length_pos = 5.1, array_length_type = "guint")] out unowned uint8[] data);
+ public bool get_extension_twobytes_header (out uint8 appbits, uint8 id, uint nth, [CCode (array_length_cname = "size", array_length_pos = 4.1, array_length_type = "guint")] out unowned uint8[] data);
+ public uint get_header_len ();
+ public bool get_marker ();
+ public uint get_packet_len ();
+ public bool get_padding ();
+ [CCode (array_length = false)]
+ public unowned uint8[] get_payload ();
+ public Gst.Buffer get_payload_buffer ();
+ [Version (since = "1.2")]
+ public GLib.Bytes get_payload_bytes ();
+ public uint get_payload_len ();
+ public Gst.Buffer get_payload_subbuffer (uint offset, uint len);
+ public uint8 get_payload_type ();
+ public uint16 get_seq ();
+ public uint32 get_ssrc ();
+ public uint32 get_timestamp ();
+ public uint8 get_version ();
+ public static bool map (Gst.Buffer buffer, Gst.MapFlags flags, out Gst.RTP.Buffer rtp);
+ public static Gst.Buffer new_allocate (uint payload_len, uint8 pad_len, uint8 csrc_count);
+ public static Gst.Buffer new_allocate_len (uint packet_len, uint8 pad_len, uint8 csrc_count);
+ public static Gst.Buffer new_copy_data ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] data);
+ public static Gst.Buffer new_take_data ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "gsize")] owned uint8[] data);
+ public void pad_to (uint len);
+ [Version (since = "1.20")]
+ public void remove_extension_data ();
+ public void set_csrc (uint8 idx, uint32 csrc);
+ public void set_extension (bool extension);
+ public bool set_extension_data (uint16 bits, uint16 length);
+ public void set_marker (bool marker);
+ public void set_packet_len (uint len);
+ public void set_padding (bool padding);
+ public void set_payload_type (uint8 payload_type);
+ public void set_seq (uint16 seq);
+ public void set_ssrc (uint32 ssrc);
+ public void set_timestamp (uint32 timestamp);
+ public void set_version (uint8 version);
+ public void unmap ();
+ }
+ [CCode (cheader_filename = "gst/rtp/rtp.h", has_type_id = false)]
+ [GIR (name = "RTPPayloadInfo")]
+ public struct PayloadInfo {
+ public uint8 payload_type;
+ public weak string media;
+ public weak string encoding_name;
+ public uint clock_rate;
+ public weak string encoding_parameters;
+ public uint bitrate;
+ public static unowned Gst.RTP.PayloadInfo? for_name (string media, string encoding_name);
+ public static unowned Gst.RTP.PayloadInfo? for_pt (uint8 payload_type);
+ }
+ [CCode (cheader_filename = "gst/rtp/rtp.h", has_type_id = false)]
+ [GIR (name = "RTPSourceMeta")]
+ [Version (since = "1.16")]
+ public struct SourceMeta {
+ public Gst.Meta meta;
+ public uint32 ssrc;
+ public bool ssrc_valid;
+ [CCode (array_length = false)]
+ public weak uint32 csrc[15];
+ public uint csrc_count;
+ public bool append_csrc ([CCode (array_length_cname = "csrc_count", array_length_pos = 1.1, array_length_type = "guint", type = "const guint32*")] uint32[] csrc);
+ public static unowned Gst.MetaInfo? get_info ();
+ public uint get_source_count ();
+ public bool set_ssrc (uint32? ssrc);
+ }
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cprefix = "GST_RTP_BUFFER_FLAG_", type_id = "gst_rtp_buffer_flags_get_type ()")]
+ [Flags]
+ [GIR (name = "RTPBufferFlags")]
+ [Version (since = "1.10")]
+ public enum BufferFlags {
+ RETRANSMISSION,
+ REDUNDANT,
+ LAST
+ }
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cprefix = "GST_RTP_BUFFER_MAP_FLAG_", type_id = "gst_rtp_buffer_map_flags_get_type ()")]
+ [Flags]
+ [GIR (name = "RTPBufferMapFlags")]
+ [Version (since = "1.6.1")]
+ public enum BufferMapFlags {
+ SKIP_PADDING,
+ LAST
+ }
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cprefix = "GST_RTP_HEADER_EXTENSION_DIRECTION_", type_id = "gst_rtp_header_extension_direction_get_type ()")]
+ [Flags]
+ [GIR (name = "RTPHeaderExtensionDirection")]
+ [Version (since = "1.20")]
+ public enum HeaderExtensionDirection {
+ INACTIVE,
+ SENDONLY,
+ RECVONLY,
+ SENDRECV,
+ INHERITED
+ }
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cprefix = "GST_RTP_HEADER_EXTENSION_", type_id = "gst_rtp_header_extension_flags_get_type ()")]
+ [Flags]
+ [GIR (name = "RTPHeaderExtensionFlags")]
+ [Version (since = "1.20")]
+ public enum HeaderExtensionFlags {
+ ONE_BYTE,
+ TWO_BYTE
+ }
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cprefix = "GST_RTP_PAYLOAD_", type_id = "gst_rtp_payload_get_type ()")]
+ [GIR (name = "RTPPayload")]
+ public enum Payload {
+ PCMU,
+ @1016,
+ G721,
+ GSM,
+ G723,
+ DVI4_8000,
+ DVI4_16000,
+ LPC,
+ PCMA,
+ G722,
+ L16_STEREO,
+ L16_MONO,
+ QCELP,
+ CN,
+ MPA,
+ G728,
+ DVI4_11025,
+ DVI4_22050,
+ G729,
+ CELLB,
+ JPEG,
+ NV,
+ H261,
+ MPV,
+ MP2T,
+ H263;
+ public const string @1016_STRING;
+ public const string CELLB_STRING;
+ public const string CN_STRING;
+ public const string DVI4_11025_STRING;
+ public const string DVI4_16000_STRING;
+ public const string DVI4_22050_STRING;
+ public const string DVI4_8000_STRING;
+ public const string DYNAMIC_STRING;
+ public const string G721_STRING;
+ public const string G722_STRING;
+ public const int G723_53;
+ public const string G723_53_STRING;
+ public const int G723_63;
+ public const string G723_63_STRING;
+ public const string G723_STRING;
+ public const string G728_STRING;
+ public const string G729_STRING;
+ public const string GSM_STRING;
+ public const string H261_STRING;
+ public const string H263_STRING;
+ public const string JPEG_STRING;
+ public const string L16_MONO_STRING;
+ public const string L16_STEREO_STRING;
+ public const string LPC_STRING;
+ public const string MP2T_STRING;
+ public const string MPA_STRING;
+ public const string MPV_STRING;
+ public const string NV_STRING;
+ public const string PCMA_STRING;
+ public const string PCMU_STRING;
+ public const string QCELP_STRING;
+ public const int TS41;
+ public const string TS41_STRING;
+ public const int TS48;
+ public const string TS48_STRING;
+ }
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cprefix = "GST_RTP_PROFILE_", type_id = "gst_rtp_profile_get_type ()")]
+ [GIR (name = "RTPProfile")]
+ [Version (since = "1.6")]
+ public enum Profile {
+ UNKNOWN,
+ AVP,
+ SAVP,
+ AVPF,
+ SAVPF
+ }
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HDREXT_BASE")]
+ public const string HDREXT_BASE;
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HDREXT_ELEMENT_CLASS")]
+ [Version (since = "1.20")]
+ public const string HDREXT_ELEMENT_CLASS;
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HDREXT_NTP_56")]
+ public const string HDREXT_NTP_56;
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HDREXT_NTP_56_SIZE")]
+ public const int HDREXT_NTP_56_SIZE;
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HDREXT_NTP_64")]
+ public const string HDREXT_NTP_64;
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HDREXT_NTP_64_SIZE")]
+ public const int HDREXT_NTP_64_SIZE;
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HEADER_EXTENSION_URI_METADATA_KEY")]
+ [Version (since = "1.20")]
+ public const string HEADER_EXTENSION_URI_METADATA_KEY;
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_SOURCE_META_MAX_CSRC_COUNT")]
+ public const int SOURCE_META_MAX_CSRC_COUNT;
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_VERSION")]
+ public const int VERSION;
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_buffer_add_rtp_source_meta")]
+ [Version (since = "1.16")]
+ public static unowned Gst.RTP.SourceMeta? buffer_add_rtp_source_meta (Gst.Buffer buffer, uint32? ssrc, uint32? csrc, uint csrc_count);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTPBuffer.allocate_data")]
+ public static void buffer_allocate_data (Gst.Buffer buffer, uint payload_len, uint8 pad_len, uint8 csrc_count);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTPBuffer.calc_header_len")]
+ public static uint buffer_calc_header_len (uint8 csrc_count);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTPBuffer.calc_packet_len")]
+ public static uint buffer_calc_packet_len (uint payload_len, uint8 pad_len, uint8 csrc_count);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTPBuffer.calc_payload_len")]
+ public static uint buffer_calc_payload_len (uint packet_len, uint8 pad_len, uint8 csrc_count);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTPBuffer.compare_seqnum")]
+ public static int buffer_compare_seqnum (uint16 seqnum1, uint16 seqnum2);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTPBuffer.default_clock_rate")]
+ public static uint32 buffer_default_clock_rate (uint8 payload_type);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTPBuffer.ext_timestamp")]
+ public static uint64 buffer_ext_timestamp (ref uint64 exttimestamp, uint32 timestamp);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTPBuffer.get_extension_onebyte_header_from_bytes", since = "1.18")]
+ public static bool buffer_get_extension_onebyte_header_from_bytes (GLib.Bytes bytes, uint16 bit_pattern, uint8 id, uint nth, [CCode (array_length_cname = "size", array_length_pos = 5.1, array_length_type = "guint")] out unowned uint8[] data);
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_buffer_get_rtp_source_meta")]
+ [Version (since = "1.16")]
+ public static unowned Gst.RTP.SourceMeta? buffer_get_rtp_source_meta (Gst.Buffer buffer);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTPBuffer.map")]
+ public static bool buffer_map (Gst.Buffer buffer, Gst.MapFlags flags, out Gst.RTP.Buffer rtp);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTPBuffer.new_allocate")]
+ public static Gst.Buffer buffer_new_allocate (uint payload_len, uint8 pad_len, uint8 csrc_count);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTPBuffer.new_allocate_len")]
+ public static Gst.Buffer buffer_new_allocate_len (uint packet_len, uint8 pad_len, uint8 csrc_count);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTPBuffer.new_copy_data")]
+ public static Gst.Buffer buffer_new_copy_data ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] data);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTPBuffer.new_take_data")]
+ public static Gst.Buffer buffer_new_take_data ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "gsize")] owned uint8[] data);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (since = "1.20")]
+ public static GLib.List<Gst.ElementFactory> get_header_extension_list ();
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ public static bool hdrext_get_ntp_56 ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "guint")] uint8[] data, out uint64 ntptime);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ public static bool hdrext_get_ntp_64 ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "guint")] uint8[] data, out uint64 ntptime);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ public static bool hdrext_set_ntp_56 (void* data, uint size, uint64 ntptime);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ public static bool hdrext_set_ntp_64 (void* data, uint size, uint64 ntptime);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTPPayloadInfo.for_name")]
+ public static unowned Gst.RTP.PayloadInfo? payload_info_for_name (string media, string encoding_name);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTPPayloadInfo.for_pt")]
+ public static unowned Gst.RTP.PayloadInfo? payload_info_for_pt (uint8 payload_type);
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ public static GLib.Type source_meta_api_get_type ();
+ [CCode (cheader_filename = "gst/rtp/rtp.h")]
+ [Version (replacement = "RTPSourceMeta.get_info")]
+ public static unowned Gst.MetaInfo? source_meta_get_info ();
+ }
+}
diff --git a/main/vapi/gstreamer-video-1.0.vapi b/main/vapi/gstreamer-video-1.0.vapi
new file mode 100644
index 00000000..c71a84aa
--- /dev/null
+++ b/main/vapi/gstreamer-video-1.0.vapi
@@ -0,0 +1,2339 @@
+// Fixme: This is fetched from development code of Vala upstream which fixed a few bugs.
+/* gstreamer-video-1.0.vapi generated by vapigen, do not modify. */
+
+[CCode (cprefix = "Gst", gir_namespace = "GstVideo", gir_version = "1.0", lower_case_cprefix = "gst_")]
+namespace Gst {
+ namespace Video {
+ [CCode (cheader_filename = "gst/video/video.h", type_id = "gst_video_aggregator_get_type ()")]
+ [GIR (name = "VideoAggregator")]
+ [Version (since = "1.16")]
+ public abstract class Aggregator : Gst.Base.Aggregator {
+ public weak Gst.Video.Info info;
+ [CCode (has_construct_function = false)]
+ protected Aggregator ();
+ [NoWrapper]
+ public virtual Gst.FlowReturn aggregate_frames (Gst.Buffer outbuffer);
+ [NoWrapper]
+ public virtual Gst.FlowReturn create_output_buffer (Gst.Buffer outbuffer);
+ [NoWrapper]
+ public virtual void find_best_format (Gst.Caps downstream_caps, Gst.Video.Info best_info, out bool at_least_one_alpha);
+ [Version (since = "1.20")]
+ public Gst.TaskPool get_execution_task_pool ();
+ [NoWrapper]
+ public virtual Gst.Caps update_caps (Gst.Caps caps);
+ }
+ [CCode (cheader_filename = "gst/video/video.h", type_id = "gst_video_aggregator_convert_pad_get_type ()")]
+ [GIR (name = "VideoAggregatorConvertPad")]
+ [Version (since = "1.16")]
+ public class AggregatorConvertPad : Gst.Video.AggregatorPad {
+ [CCode (has_construct_function = false)]
+ protected AggregatorConvertPad ();
+ [NoWrapper]
+ public virtual void create_conversion_info (Gst.Video.Aggregator agg, Gst.Video.Info conversion_info);
+ public void update_conversion_info ();
+ [NoAccessorMethod]
+ public Gst.Structure converter_config { owned get; set; }
+ }
+ [CCode (cheader_filename = "gst/video/video.h", type_id = "gst_video_aggregator_pad_get_type ()")]
+ [GIR (name = "VideoAggregatorPad")]
+ [Version (since = "1.16")]
+ public class AggregatorPad : Gst.Base.AggregatorPad {
+ public weak Gst.Video.Info info;
+ [CCode (has_construct_function = false)]
+ protected AggregatorPad ();
+ [NoWrapper]
+ public virtual void clean_frame (Gst.Video.Aggregator videoaggregator, Gst.Video.Frame prepared_frame);
+ public unowned Gst.Buffer get_current_buffer ();
+ public unowned Gst.Video.Frame? get_prepared_frame ();
+ public bool has_current_buffer ();
+ [NoWrapper]
+ public virtual bool prepare_frame (Gst.Video.Aggregator videoaggregator, Gst.Buffer buffer, Gst.Video.Frame prepared_frame);
+ [NoWrapper]
+ [Version (since = "1.20")]
+ public virtual void prepare_frame_finish (Gst.Video.Aggregator videoaggregator, Gst.Video.Frame prepared_frame);
+ [NoWrapper]
+ [Version (since = "1.20")]
+ public virtual void prepare_frame_start (Gst.Video.Aggregator videoaggregator, Gst.Buffer buffer, Gst.Video.Frame prepared_frame);
+ public void set_needs_alpha (bool needs_alpha);
+ [NoWrapper]
+ public virtual void update_conversion_info ();
+ [NoAccessorMethod]
+ public uint64 max_last_buffer_repeat { get; set; }
+ [NoAccessorMethod]
+ public bool repeat_after_eos { get; set; }
+ [NoAccessorMethod]
+ public uint zorder { get; set; }
+ }
+ [CCode (cheader_filename = "gst/video/video.h", type_id = "gst_video_aggregator_parallel_convert_pad_get_type ()")]
+ [GIR (name = "VideoAggregatorParallelConvertPad")]
+ [Version (since = "1.20")]
+ public class AggregatorParallelConvertPad : Gst.Video.AggregatorConvertPad {
+ [CCode (has_construct_function = false)]
+ protected AggregatorParallelConvertPad ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", type_id = "gst_video_buffer_pool_get_type ()")]
+ [GIR (name = "VideoBufferPool")]
+ public class BufferPool : Gst.BufferPool {
+ [CCode (has_construct_function = false, type = "GstBufferPool*")]
+ public BufferPool ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [Compact]
+ [GIR (name = "VideoChromaResample")]
+ public class ChromaResample {
+ [CCode (cname = "gst_video_chroma_resample_new", has_construct_function = false)]
+ public ChromaResample (Gst.Video.ChromaMethod method, Gst.Video.ChromaSite site, Gst.Video.ChromaFlags flags, Gst.Video.Format format, int h_factor, int v_factor);
+ public void free ();
+ public void get_info (out uint n_lines, out int offset);
+ [CCode (cname = "gst_video_chroma_resample")]
+ public void resample (void* lines, int width);
+ }
+ [CCode (cheader_filename = "gst/video/gstvideoutils.h", ref_function = "gst_video_codec_frame_ref", type_id = "gst_video_codec_frame_get_type ()", unref_function = "gst_video_codec_frame_unref")]
+ [Compact]
+ [GIR (name = "VideoCodecFrame")]
+ public class CodecFrame {
+ public Gst.ClockTime deadline;
+ public int distance_from_sync;
+ public Gst.ClockTime dts;
+ public Gst.ClockTime duration;
+ public weak Gst.Buffer input_buffer;
+ public weak Gst.Buffer output_buffer;
+ public Gst.ClockTime pts;
+ public uint32 system_frame_number;
+ [CCode (simple_generics = true)]
+ public T get_user_data<T> ();
+ public unowned Gst.Video.CodecFrame @ref ();
+ [CCode (simple_generics = true)]
+ public void set_user_data<T> (owned T user_data);
+ public void unref ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", ref_function = "gst_video_codec_state_ref", type_id = "gst_video_codec_state_get_type ()", unref_function = "gst_video_codec_state_unref")]
+ [Compact]
+ [GIR (name = "VideoCodecState")]
+ public class CodecState {
+ public weak Gst.Caps allocation_caps;
+ public weak Gst.Caps caps;
+ public weak Gst.Buffer codec_data;
+ [Version (since = "1.20")]
+ public Gst.Video.ContentLightLevel content_light_level;
+ public weak Gst.Video.Info info;
+ [Version (since = "1.20")]
+ public Gst.Video.MasteringDisplayInfo mastering_display_info;
+ public unowned Gst.Video.CodecState @ref ();
+ public void unref ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GstColorBalanceChannel", lower_case_cprefix = "gst_color_balance_channel_", type_id = "gst_color_balance_channel_get_type ()")]
+ [GIR (name = "ColorBalanceChannel")]
+ public class ColorBalanceChannel : GLib.Object {
+ public weak string label;
+ public int max_value;
+ public int min_value;
+ [CCode (has_construct_function = false)]
+ protected ColorBalanceChannel ();
+ public virtual signal void value_changed (int value);
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [Compact]
+ [GIR (name = "VideoConverter")]
+ public class Converter {
+ [Version (since = "1.6")]
+ public void frame (Gst.Video.Frame src, Gst.Video.Frame dest);
+ [Version (since = "1.20")]
+ public void frame_finish ();
+ [Version (since = "1.6")]
+ public void free ();
+ public unowned Gst.Structure get_config ();
+ [Version (since = "1.6")]
+ public bool set_config (owned Gst.Structure config);
+ }
+ [CCode (cheader_filename = "gst/video/video.h", type_id = "gst_video_decoder_get_type ()")]
+ [GIR (name = "VideoDecoder")]
+ public abstract class Decoder : Gst.Element {
+ [CCode (has_construct_function = false)]
+ protected Decoder ();
+ public void add_to_frame (int n_bytes);
+ public Gst.Buffer allocate_output_buffer ();
+ public Gst.FlowReturn allocate_output_frame (Gst.Video.CodecFrame frame);
+ [Version (since = "1.12")]
+ public Gst.FlowReturn allocate_output_frame_with_params (Gst.Video.CodecFrame frame, Gst.BufferPoolAcquireParams @params);
+ [NoWrapper]
+ public virtual bool close ();
+ [NoWrapper]
+ public virtual bool decide_allocation (Gst.Query query);
+ [NoWrapper]
+ public virtual Gst.FlowReturn drain ();
+ public Gst.FlowReturn drop_frame (owned Gst.Video.CodecFrame frame);
+ [Version (since = "1.20")]
+ public Gst.FlowReturn drop_subframe (owned Gst.Video.CodecFrame frame);
+ [NoWrapper]
+ public virtual Gst.FlowReturn finish ();
+ public Gst.FlowReturn finish_frame (owned Gst.Video.CodecFrame frame);
+ [Version (since = "1.20")]
+ public Gst.FlowReturn finish_subframe (owned Gst.Video.CodecFrame frame);
+ [NoWrapper]
+ public virtual bool flush ();
+ public void get_allocator (out Gst.Allocator allocator, out Gst.AllocationParams @params);
+ public Gst.BufferPool get_buffer_pool ();
+ public int get_estimate_rate ();
+ public Gst.Video.CodecFrame get_frame (int frame_number);
+ public GLib.List<Gst.Video.CodecFrame> get_frames ();
+ [Version (since = "1.20")]
+ public uint get_input_subframe_index (Gst.Video.CodecFrame frame);
+ public void get_latency (out Gst.ClockTime min_latency, out Gst.ClockTime max_latency);
+ public Gst.ClockTimeDiff get_max_decode_time (Gst.Video.CodecFrame frame);
+ public int get_max_errors ();
+ [Version (since = "1.4")]
+ public bool get_needs_format ();
+ [Version (since = "1.20")]
+ public bool get_needs_sync_point ();
+ public Gst.Video.CodecFrame get_oldest_frame ();
+ public Gst.Video.CodecState get_output_state ();
+ public bool get_packetized ();
+ [Version (since = "1.4")]
+ public size_t get_pending_frame_size ();
+ [Version (since = "1.20")]
+ public uint get_processed_subframe_index (Gst.Video.CodecFrame frame);
+ [Version (since = "1.0.3")]
+ public double get_qos_proportion ();
+ [Version (since = "1.20")]
+ public bool get_subframe_mode ();
+ [NoWrapper]
+ public virtual Gst.Caps getcaps (Gst.Caps filter);
+ [NoWrapper]
+ public virtual Gst.FlowReturn handle_frame (owned Gst.Video.CodecFrame frame);
+ [NoWrapper]
+ [Version (since = "1.20")]
+ public virtual bool handle_missing_data (Gst.ClockTime timestamp, Gst.ClockTime duration);
+ public Gst.FlowReturn have_frame ();
+ [Version (since = "1.20")]
+ public Gst.FlowReturn have_last_subframe (Gst.Video.CodecFrame frame);
+ public void merge_tags (Gst.TagList? tags, Gst.TagMergeMode mode);
+ public virtual bool negotiate ();
+ [NoWrapper]
+ public virtual bool open ();
+ [NoWrapper]
+ public virtual Gst.FlowReturn parse (Gst.Video.CodecFrame frame, Gst.Base.Adapter adapter, bool at_eos);
+ [NoWrapper]
+ public virtual bool propose_allocation (Gst.Query query);
+ [Version (since = "1.6")]
+ public Gst.Caps proxy_getcaps (Gst.Caps? caps, Gst.Caps? filter);
+ [Version (since = "1.2.2")]
+ public void release_frame (owned Gst.Video.CodecFrame frame);
+ [Version (since = "1.20")]
+ public void request_sync_point (Gst.Video.CodecFrame frame, Gst.Video.DecoderRequestSyncPointFlags flags);
+ [NoWrapper]
+ public virtual bool reset (bool hard);
+ public void set_estimate_rate (bool enabled);
+ [NoWrapper]
+ public virtual bool set_format (Gst.Video.CodecState state);
+ [Version (since = "1.16.")]
+ public Gst.Video.CodecState set_interlaced_output_state (Gst.Video.Format fmt, Gst.Video.InterlaceMode interlace_mode, uint width, uint height, Gst.Video.CodecState? reference);
+ public void set_latency (Gst.ClockTime min_latency, Gst.ClockTime max_latency);
+ public void set_max_errors (int num);
+ [Version (since = "1.4")]
+ public void set_needs_format (bool enabled);
+ [Version (since = "1.20")]
+ public void set_needs_sync_point (bool enabled);
+ public Gst.Video.CodecState set_output_state (Gst.Video.Format fmt, uint width, uint height, Gst.Video.CodecState? reference);
+ public void set_packetized (bool packetized);
+ [Version (since = "1.20")]
+ public void set_subframe_mode (bool subframe_mode);
+ [Version (since = "1.6")]
+ public void set_use_default_pad_acceptcaps (bool use);
+ [NoWrapper]
+ public virtual bool sink_event (Gst.Event event);
+ [NoWrapper]
+ public virtual bool sink_query (Gst.Query query);
+ [NoWrapper]
+ public virtual bool src_event (Gst.Event event);
+ [NoWrapper]
+ public virtual bool src_query (Gst.Query query);
+ [NoWrapper]
+ public virtual bool start ();
+ [NoWrapper]
+ public virtual bool stop ();
+ [NoWrapper]
+ public virtual bool transform_meta (Gst.Video.CodecFrame frame, Gst.Meta meta);
+ [NoAccessorMethod]
+ [Version (since = "1.20")]
+ public Gst.Video.DecoderRequestSyncPointFlags automatic_request_sync_point_flags { get; set; }
+ [NoAccessorMethod]
+ [Version (since = "1.20")]
+ public bool automatic_request_sync_points { get; set; }
+ [NoAccessorMethod]
+ [Version (since = "1.20")]
+ public bool discard_corrupted_frames { get; set; }
+ [Version (since = "1.18")]
+ public int max_errors { get; set; }
+ [NoAccessorMethod]
+ [Version (since = "1.20")]
+ public uint64 min_force_key_unit_interval { get; set; }
+ [NoAccessorMethod]
+ [Version (since = "1.18")]
+ public bool qos { get; set; }
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [Compact]
+ [GIR (name = "VideoDither")]
+ public class Dither {
+ public void free ();
+ public void line (void* line, uint x, uint y, uint width);
+ }
+ [CCode (cheader_filename = "gst/video/video.h", type_id = "gst_video_encoder_get_type ()")]
+ [GIR (name = "VideoEncoder")]
+ public abstract class Encoder : Gst.Element, Gst.Preset {
+ [CCode (has_construct_function = false)]
+ protected Encoder ();
+ public Gst.Buffer allocate_output_buffer (size_t size);
+ public Gst.FlowReturn allocate_output_frame (Gst.Video.CodecFrame frame, size_t size);
+ [NoWrapper]
+ public virtual bool close ();
+ [NoWrapper]
+ public virtual bool decide_allocation (Gst.Query query);
+ [NoWrapper]
+ public virtual Gst.FlowReturn finish ();
+ public Gst.FlowReturn finish_frame (owned Gst.Video.CodecFrame frame);
+ [Version (since = "1.18")]
+ public Gst.FlowReturn finish_subframe (Gst.Video.CodecFrame frame);
+ [NoWrapper]
+ public virtual bool flush ();
+ public void get_allocator (out Gst.Allocator allocator, out Gst.AllocationParams @params);
+ public Gst.Video.CodecFrame get_frame (int frame_number);
+ public GLib.List<Gst.Video.CodecFrame> get_frames ();
+ public void get_latency (out Gst.ClockTime min_latency, out Gst.ClockTime max_latency);
+ [Version (since = "1.14")]
+ public Gst.ClockTimeDiff get_max_encode_time (Gst.Video.CodecFrame frame);
+ [Version (since = "1.18")]
+ public Gst.ClockTime get_min_force_key_unit_interval ();
+ public Gst.Video.CodecFrame get_oldest_frame ();
+ public Gst.Video.CodecState get_output_state ();
+ [NoWrapper]
+ public virtual Gst.Caps getcaps (Gst.Caps filter);
+ [NoWrapper]
+ public virtual Gst.FlowReturn handle_frame (Gst.Video.CodecFrame frame);
+ [Version (since = "1.14")]
+ public bool is_qos_enabled ();
+ public void merge_tags (Gst.TagList? tags, Gst.TagMergeMode mode);
+ public virtual bool negotiate ();
+ [NoWrapper]
+ public virtual bool open ();
+ [NoWrapper]
+ public virtual Gst.FlowReturn pre_push (Gst.Video.CodecFrame frame);
+ [NoWrapper]
+ public virtual bool propose_allocation (Gst.Query query);
+ public Gst.Caps proxy_getcaps (Gst.Caps? caps, Gst.Caps? filter);
+ [NoWrapper]
+ public virtual bool reset (bool hard);
+ [NoWrapper]
+ public virtual bool set_format (Gst.Video.CodecState state);
+ public void set_headers (owned GLib.List<Gst.Buffer> headers);
+ public void set_latency (Gst.ClockTime min_latency, Gst.ClockTime max_latency);
+ [Version (since = "1.18")]
+ public void set_min_force_key_unit_interval (Gst.ClockTime interval);
+ [Version (since = "1.6")]
+ public void set_min_pts (Gst.ClockTime min_pts);
+ public Gst.Video.CodecState set_output_state (owned Gst.Caps caps, Gst.Video.CodecState? reference);
+ [Version (since = "1.14")]
+ public void set_qos_enabled (bool enabled);
+ [NoWrapper]
+ public virtual bool sink_event (Gst.Event event);
+ [NoWrapper]
+ public virtual bool sink_query (Gst.Query query);
+ [NoWrapper]
+ public virtual bool src_event (Gst.Event event);
+ [NoWrapper]
+ public virtual bool src_query (Gst.Query query);
+ [NoWrapper]
+ public virtual bool start ();
+ [NoWrapper]
+ public virtual bool stop ();
+ [NoWrapper]
+ public virtual bool transform_meta (Gst.Video.CodecFrame frame, Gst.Meta meta);
+ [Version (since = "1.18")]
+ public uint64 min_force_key_unit_interval { get; set; }
+ [NoAccessorMethod]
+ public bool qos { get; set; }
+ }
+ [CCode (cheader_filename = "gst/video/video.h", type_id = "gst_video_filter_get_type ()")]
+ [GIR (name = "VideoFilter")]
+ public abstract class Filter : Gst.Base.Transform {
+ public weak Gst.Video.Info in_info;
+ public bool negotiated;
+ public weak Gst.Video.Info out_info;
+ [CCode (has_construct_function = false)]
+ protected Filter ();
+ [NoWrapper]
+ public virtual bool set_info (Gst.Caps incaps, Gst.Video.Info in_info, Gst.Caps outcaps, Gst.Video.Info out_info);
+ [NoWrapper]
+ public virtual Gst.FlowReturn transform_frame (Gst.Video.Frame inframe, Gst.Video.Frame outframe);
+ [NoWrapper]
+ public virtual Gst.FlowReturn transform_frame_ip (Gst.Video.Frame frame);
+ }
+ [CCode (cheader_filename = "gst/video/video.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gst_video_info_get_type ()")]
+ [Compact]
+ [GIR (name = "VideoInfo")]
+ public class Info {
+ [CCode (cname = "ABI.abi.field_order")]
+ public Gst.Video.FieldOrder ABI_abi_field_order;
+ [CCode (cname = "ABI.abi.multiview_flags")]
+ public Gst.Video.MultiviewFlags ABI_abi_multiview_flags;
+ [CCode (cname = "ABI.abi.multiview_mode")]
+ public Gst.Video.MultiviewMode ABI_abi_multiview_mode;
+ public Gst.Video.ChromaSite chroma_site;
+ public Gst.Video.Colorimetry colorimetry;
+ public weak Gst.Video.FormatInfo? finfo;
+ public Gst.Video.Flags flags;
+ public int fps_d;
+ public int fps_n;
+ public int height;
+ public Gst.Video.InterlaceMode interlace_mode;
+ [CCode (array_length = false)]
+ public weak size_t offset[4];
+ public int par_d;
+ public int par_n;
+ public size_t size;
+ [CCode (array_length = false)]
+ public weak int stride[4];
+ public int views;
+ public int width;
+ [CCode (has_construct_function = false)]
+ [Version (since = "1.6")]
+ public Info ();
+ public bool align (Gst.Video.Alignment align);
+ [Version (since = "1.18")]
+ public bool align_full (Gst.Video.Alignment align, out size_t plane_size);
+ public bool convert (Gst.Format src_format, int64 src_value, Gst.Format dest_format, out int64 dest_value);
+ [Version (since = "1.6")]
+ public Gst.Video.Info copy ();
+ [Version (since = "1.6")]
+ public void free ();
+ public bool from_caps (Gst.Caps caps);
+ public void init ();
+ public bool is_equal (Gst.Video.Info other);
+ public bool set_format (Gst.Video.Format format, uint width, uint height);
+ [Version (since = "1.16")]
+ public bool set_interlaced_format (Gst.Video.Format format, Gst.Video.InterlaceMode mode, uint width, uint height);
+ public Gst.Caps to_caps ();
+ [CCode (cname = "gst_video_info_new_from_caps", has_construct_function = false)]
+ [Version (since = "1.20")]
+ public Info.with_caps (Gst.Caps caps);
+ }
+ [CCode (cheader_filename = "gst/video/video.h", lower_case_cprefix = "gst_video_multiview_flagset_", type_id = "gst_video_multiview_flagset_get_type ()")]
+ [GIR (name = "VideoMultiviewFlagsSet")]
+ public class MultiviewFlagsSet : Gst.FlagSet {
+ [CCode (has_construct_function = false)]
+ protected MultiviewFlagsSet ();
+ }
+ [CCode (cheader_filename = "gst/video/video-overlay-composition.h", ref_function = "gst_video_overlay_composition_ref", type_id = "gst_video_overlay_composition_get_type ()", unref_function = "gst_video_overlay_composition_unref")]
+ [Compact]
+ [GIR (name = "VideoOverlayComposition")]
+ public class OverlayComposition : Gst.MiniObject {
+ [CCode (has_construct_function = false)]
+ public OverlayComposition (Gst.Video.OverlayRectangle? rectangle);
+ public void add_rectangle (Gst.Video.OverlayRectangle rectangle);
+ public bool blend (Gst.Video.Frame video_buf);
+ public Gst.Video.OverlayComposition copy ();
+ public unowned Gst.Video.OverlayRectangle get_rectangle (uint n);
+ public uint get_seqnum ();
+ [DestroysInstance]
+ [ReturnsModifiedPointer]
+ public Gst.Video.OverlayComposition make_writable ();
+ public uint n_rectangles ();
+ }
+ [CCode (cheader_filename = "gst/video/video-overlay-composition.h", ref_function = "gst_video_overlay_rectangle_ref", type_id = "gst_video_overlay_rectangle_get_type ()", unref_function = "gst_video_overlay_rectangle_unref")]
+ [Compact]
+ [GIR (name = "VideoOverlayRectangle")]
+ public class OverlayRectangle : Gst.MiniObject {
+ public Gst.Video.OverlayRectangle copy ();
+ public Gst.Video.OverlayFormatFlags get_flags ();
+ public float get_global_alpha ();
+ public unowned Gst.Buffer get_pixels_argb (Gst.Video.OverlayFormatFlags flags);
+ public unowned Gst.Buffer get_pixels_ayuv (Gst.Video.OverlayFormatFlags flags);
+ public unowned Gst.Buffer get_pixels_raw (Gst.Video.OverlayFormatFlags flags);
+ public unowned Gst.Buffer get_pixels_unscaled_argb (Gst.Video.OverlayFormatFlags flags);
+ public unowned Gst.Buffer get_pixels_unscaled_ayuv (Gst.Video.OverlayFormatFlags flags);
+ public unowned Gst.Buffer get_pixels_unscaled_raw (Gst.Video.OverlayFormatFlags flags);
+ public bool get_render_rectangle (out int render_x, out int render_y, out uint render_width, out uint render_height);
+ public uint get_seqnum ();
+ [CCode (has_construct_function = false)]
+ public OverlayRectangle.raw (Gst.Buffer pixels, int render_x, int render_y, uint render_width, uint render_height, Gst.Video.OverlayFormatFlags flags);
+ public void set_global_alpha (float global_alpha);
+ public void set_render_rectangle (int render_x, int render_y, uint render_width, uint render_height);
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [Compact]
+ [GIR (name = "VideoScaler")]
+ public class Scaler {
+ public void @2d (Gst.Video.Scaler vscale, Gst.Video.Format format, void* src, int src_stride, void* dest, int dest_stride, uint x, uint y, uint width, uint height);
+ public void free ();
+ public double get_coeff (uint out_offset, out uint in_offset, out uint n_taps);
+ public uint get_max_taps ();
+ public void horizontal (Gst.Video.Format format, void* src, void* dest, uint dest_offset, uint width);
+ public void vertical (Gst.Video.Format format, void* src_lines, void* dest, uint dest_offset, uint width);
+ }
+ [CCode (cheader_filename = "gst/video/video.h", type_id = "gst_video_sink_get_type ()")]
+ [GIR (name = "VideoSink")]
+ public class Sink : Gst.Base.Sink {
+ public int height;
+ public int width;
+ [CCode (has_construct_function = false)]
+ protected Sink ();
+ [Version (deprecated = true, deprecated_since = "1.20")]
+ public static void center_rect (Gst.Video.Rectangle src, Gst.Video.Rectangle dst, out Gst.Video.Rectangle result, bool scaling);
+ [NoWrapper]
+ [Version (since = "1.20")]
+ public virtual bool set_info (Gst.Caps caps, Gst.Video.Info info);
+ [NoWrapper]
+ public virtual Gst.FlowReturn show_frame (Gst.Buffer buf);
+ [NoAccessorMethod]
+ public bool show_preroll_frame { get; set construct; }
+ }
+ [CCode (cheader_filename = "gst/video/video.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gst_video_time_code_get_type ()")]
+ [Compact]
+ [GIR (name = "VideoTimeCode")]
+ [Version (since = "1.10")]
+ public class TimeCode {
+ public Gst.Video.TimeCodeConfig config;
+ public uint field_count;
+ public uint frames;
+ public uint hours;
+ public uint minutes;
+ public uint seconds;
+ [CCode (has_construct_function = false)]
+ public TimeCode (uint fps_n, uint fps_d, GLib.DateTime latest_daily_jam, Gst.Video.TimeCodeFlags flags, uint hours, uint minutes, uint seconds, uint frames, uint field_count);
+ public void add_frames (int64 frames);
+ [Version (since = "1.12")]
+ public Gst.Video.TimeCode? add_interval (Gst.Video.TimeCodeInterval tc_inter);
+ public void clear ();
+ public int compare (Gst.Video.TimeCode tc2);
+ public Gst.Video.TimeCode copy ();
+ [CCode (has_construct_function = false)]
+ public TimeCode.empty ();
+ public uint64 frames_since_daily_jam ();
+ public void free ();
+ [CCode (has_construct_function = false)]
+ [Version (since = "1.12")]
+ public TimeCode.from_date_time (uint fps_n, uint fps_d, GLib.DateTime dt, Gst.Video.TimeCodeFlags flags, uint field_count);
+ [CCode (has_construct_function = false)]
+ [Version (since = "1.16")]
+ public TimeCode.from_date_time_full (uint fps_n, uint fps_d, GLib.DateTime dt, Gst.Video.TimeCodeFlags flags, uint field_count);
+ [CCode (has_construct_function = false)]
+ [Version (since = "1.12")]
+ public TimeCode.from_string (string tc_str);
+ public void increment_frame ();
+ public void init (uint fps_n, uint fps_d, GLib.DateTime? latest_daily_jam, Gst.Video.TimeCodeFlags flags, uint hours, uint minutes, uint seconds, uint frames, uint field_count);
+ [Version (since = "1.12")]
+ public void init_from_date_time (uint fps_n, uint fps_d, GLib.DateTime dt, Gst.Video.TimeCodeFlags flags, uint field_count);
+ [Version (since = "1.16")]
+ public bool init_from_date_time_full (uint fps_n, uint fps_d, GLib.DateTime dt, Gst.Video.TimeCodeFlags flags, uint field_count);
+ public bool is_valid ();
+ public uint64 nsec_since_daily_jam ();
+ public GLib.DateTime? to_date_time ();
+ public string to_string ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gst_video_time_code_interval_get_type ()")]
+ [Compact]
+ [GIR (name = "VideoTimeCodeInterval")]
+ [Version (since = "1.12")]
+ public class TimeCodeInterval {
+ public uint frames;
+ public uint hours;
+ public uint minutes;
+ public uint seconds;
+ [CCode (has_construct_function = false)]
+ public TimeCodeInterval (uint hours, uint minutes, uint seconds, uint frames);
+ public void clear ();
+ public Gst.Video.TimeCodeInterval copy ();
+ public void free ();
+ [CCode (has_construct_function = false)]
+ public TimeCodeInterval.from_string (string tc_inter_str);
+ public void init (uint hours, uint minutes, uint seconds, uint frames);
+ }
+ [CCode (cheader_filename = "gst/video/video.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gst_video_vbi_encoder_get_type ()")]
+ [Compact]
+ [GIR (name = "VideoVBIEncoder")]
+ [Version (since = "1.16")]
+ public class VBIEncoder {
+ [CCode (has_construct_function = false)]
+ public VBIEncoder (Gst.Video.Format format, uint32 pixel_width);
+ public bool add_ancillary (bool composite, uint8 DID, uint8 SDID_block_number, [CCode (array_length_cname = "data_count", array_length_pos = 4.1, array_length_type = "guint")] uint8[] data);
+ public Gst.Video.VBIEncoder copy ();
+ public void free ();
+ public void write_line ([CCode (array_length = false, type = "guint8*")] uint8[] data);
+ }
+ [CCode (cheader_filename = "gst/video/video.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gst_video_vbi_parser_get_type ()")]
+ [Compact]
+ [GIR (name = "VideoVBIParser")]
+ [Version (since = "1.16")]
+ public class VBIParser {
+ [CCode (has_construct_function = false)]
+ public VBIParser (Gst.Video.Format format, uint32 pixel_width);
+ public void add_line ([CCode (array_length = false)] uint8[] data);
+ public Gst.Video.VBIParser copy ();
+ public void free ();
+ public Gst.Video.VBIParserResult get_ancillary (out Gst.Video.Ancillary anc);
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GstColorBalance", lower_case_cprefix = "gst_color_balance_", type_cname = "GstColorBalanceInterface", type_id = "gst_color_balance_get_type ()")]
+ [GIR (name = "ColorBalance")]
+ public interface ColorBalance : GLib.Object {
+ public abstract Gst.Video.ColorBalanceType get_balance_type ();
+ public abstract int get_value (Gst.Video.ColorBalanceChannel channel);
+ public abstract unowned GLib.List<Gst.Video.ColorBalanceChannel> list_channels ();
+ public abstract void set_value (Gst.Video.ColorBalanceChannel channel, int value);
+ [HasEmitter]
+ public virtual signal void value_changed (Gst.Video.ColorBalanceChannel channel, int value);
+ }
+ [CCode (cheader_filename = "gst/video/video.h", type_cname = "GstVideoDirectionInterface", type_id = "gst_video_direction_get_type ()")]
+ [GIR (name = "VideoDirection")]
+ [Version (since = "1.10")]
+ public interface Direction : GLib.Object {
+ [NoAccessorMethod]
+ public abstract Gst.Video.OrientationMethod video_direction { get; set construct; }
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GstNavigation", lower_case_cprefix = "gst_navigation_", type_cname = "GstNavigationInterface", type_id = "gst_navigation_get_type ()")]
+ [GIR (name = "Navigation")]
+ public interface Navigation : GLib.Object {
+ [Version (since = "1.22")]
+ public static bool event_get_coordinates (Gst.Event event, out double x, out double y);
+ public static Gst.Video.NavigationEventType event_get_type (Gst.Event event);
+ [Version (since = "1.22")]
+ public static Gst.Event event_new_command (Gst.Video.NavigationCommand command);
+ [Version (since = "1.22")]
+ public static Gst.Event event_new_key_press (string key, Gst.Video.NavigationModifierType state);
+ [Version (since = "1.22")]
+ public static Gst.Event event_new_key_release (string key, Gst.Video.NavigationModifierType state);
+ [Version (since = "1.22")]
+ public static Gst.Event event_new_mouse_button_press (int button, double x, double y, Gst.Video.NavigationModifierType state);
+ [Version (since = "1.22")]
+ public static Gst.Event event_new_mouse_button_release (int button, double x, double y, Gst.Video.NavigationModifierType state);
+ [Version (since = "1.22")]
+ public static Gst.Event event_new_mouse_move (double x, double y, Gst.Video.NavigationModifierType state);
+ [Version (since = "1.22")]
+ public static Gst.Event event_new_mouse_scroll (double x, double y, double delta_x, double delta_y, Gst.Video.NavigationModifierType state);
+ [Version (since = "1.22")]
+ public static Gst.Event event_new_touch_cancel (Gst.Video.NavigationModifierType state);
+ [Version (since = "1.22")]
+ public static Gst.Event event_new_touch_down (uint identifier, double x, double y, double pressure, Gst.Video.NavigationModifierType state);
+ [Version (since = "1.22")]
+ public static Gst.Event event_new_touch_frame (Gst.Video.NavigationModifierType state);
+ [Version (since = "1.22")]
+ public static Gst.Event event_new_touch_motion (uint identifier, double x, double y, double pressure, Gst.Video.NavigationModifierType state);
+ [Version (since = "1.22")]
+ public static Gst.Event event_new_touch_up (uint identifier, double x, double y, Gst.Video.NavigationModifierType state);
+ public static bool event_parse_command (Gst.Event event, out Gst.Video.NavigationCommand command);
+ public static bool event_parse_key_event (Gst.Event event, out unowned string key);
+ [Version (since = "1.22")]
+ public static bool event_parse_modifier_state (Gst.Event event, Gst.Video.NavigationModifierType state);
+ public static bool event_parse_mouse_button_event (Gst.Event event, out int button, out double x, out double y);
+ public static bool event_parse_mouse_move_event (Gst.Event event, out double x, out double y);
+ [Version (since = "1.18")]
+ public static bool event_parse_mouse_scroll_event (Gst.Event event, out double x, out double y, out double delta_x, out double delta_y);
+ [Version (since = "1.22")]
+ public static bool event_parse_touch_event (Gst.Event event, out uint identifier, out double x, out double y, out double pressure);
+ [Version (since = "1.22")]
+ public static bool event_parse_touch_up_event (Gst.Event event, out uint identifier, out double x, out double y);
+ [Version (since = "1.22")]
+ public static bool event_set_coordinates (Gst.Event event, double x, double y);
+ public static Gst.Video.NavigationMessageType message_get_type (Gst.Message message);
+ public static Gst.Message message_new_angles_changed (Gst.Object src, uint cur_angle, uint n_angles);
+ public static Gst.Message message_new_commands_changed (Gst.Object src);
+ [Version (since = "1.6")]
+ public static Gst.Message message_new_event (Gst.Object src, Gst.Event event);
+ public static Gst.Message message_new_mouse_over (Gst.Object src, bool active);
+ public static bool message_parse_angles_changed (Gst.Message message, out uint cur_angle, out uint n_angles);
+ [Version (since = "1.6")]
+ public static bool message_parse_event (Gst.Message message, out Gst.Event event);
+ public static bool message_parse_mouse_over (Gst.Message message, out bool active);
+ public static Gst.Video.NavigationQueryType query_get_type (Gst.Query query);
+ public static Gst.Query query_new_angles ();
+ public static Gst.Query query_new_commands ();
+ public static bool query_parse_angles (Gst.Query query, out uint cur_angle, out uint n_angles);
+ public static bool query_parse_commands_length (Gst.Query query, out uint n_cmds);
+ public static bool query_parse_commands_nth (Gst.Query query, uint nth, out Gst.Video.NavigationCommand cmd);
+ public static void query_set_angles (Gst.Query query, uint cur_angle, uint n_angles);
+ public static void query_set_commandsv (Gst.Query query, [CCode (array_length_cname = "n_cmds", array_length_pos = 1.5)] Gst.Video.NavigationCommand[] cmds);
+ public void send_command (Gst.Video.NavigationCommand command);
+ [Version (deprecated = true, deprecated_since = "1.22")]
+ public abstract void send_event (Gst.Structure structure);
+ [Version (since = "1.22")]
+ public abstract void send_event_simple (owned Gst.Event event);
+ public void send_key_event (string event, string key);
+ public void send_mouse_event (string event, int button, double x, double y);
+ [Version (since = "1.18")]
+ public void send_mouse_scroll_event (double x, double y, double delta_x, double delta_y);
+ }
+ [CCode (cheader_filename = "gst/video/video.h", type_cname = "GstVideoOrientationInterface", type_id = "gst_video_orientation_get_type ()")]
+ [GIR (name = "VideoOrientation")]
+ public interface Orientation : GLib.Object {
+ [Version (since = "1.20")]
+ public static bool from_tag (Gst.TagList taglist, out Gst.Video.OrientationMethod method);
+ public abstract bool get_hcenter (out int center);
+ public abstract bool get_hflip (out bool flip);
+ public abstract bool get_vcenter (out int center);
+ public abstract bool get_vflip (out bool flip);
+ public abstract bool set_hcenter (int center);
+ public abstract bool set_hflip (bool flip);
+ public abstract bool set_vcenter (int center);
+ public abstract bool set_vflip (bool flip);
+ }
+ [CCode (cheader_filename = "gst/video/video.h", type_cname = "GstVideoOverlayInterface", type_id = "gst_video_overlay_get_type ()")]
+ [GIR (name = "VideoOverlay")]
+ public interface Overlay : GLib.Object {
+ public abstract void expose ();
+ public void got_window_handle ([CCode (type = "guintptr")] uint* handle);
+ public abstract void handle_events (bool handle_events);
+ [Version (since = "1.14")]
+ public static void install_properties (GLib.ObjectClass oclass, int last_prop_id);
+ public void prepare_window_handle ();
+ [Version (since = "1.14")]
+ public static bool set_property (GLib.Object object, int last_prop_id, uint property_id, GLib.Value value);
+ [NoWrapper]
+ public virtual void set_render_rectangle (int x, int y, int width, int height);
+ public abstract void set_window_handle ([CCode (type = "guintptr")] uint* handle);
+ [CCode (cname = "gst_video_overlay_set_render_rectangle")]
+ public bool try_set_render_rectangle (int x, int y, int width, int height);
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoAFDMeta")]
+ [Version (since = "1.18")]
+ public struct AFDMeta {
+ public Gst.Meta meta;
+ public uint8 field;
+ public Gst.Video.AFDSpec spec;
+ public Gst.Video.AFDValue afd;
+ public static unowned Gst.MetaInfo? get_info ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoAffineTransformationMeta")]
+ [Version (since = "1.8")]
+ public struct AffineTransformationMeta {
+ public Gst.Meta meta;
+ [CCode (array_length = false)]
+ public weak float matrix[16];
+ public void apply_matrix ([CCode (array_length = false)] float matrix[16]);
+ public static unowned Gst.MetaInfo? get_info ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoAlignment")]
+ public struct Alignment {
+ public uint padding_top;
+ public uint padding_bottom;
+ public uint padding_left;
+ public uint padding_right;
+ [CCode (array_length = false)]
+ public weak uint stride_align[4];
+ public void reset ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoAncillary")]
+ [Version (since = "1.16")]
+ public struct Ancillary {
+ public uint8 DID;
+ public uint8 SDID_block_number;
+ public uint8 data_count;
+ [CCode (array_length_cname = "data_count", array_length_type = "guint8")]
+ public weak uint8[] data;
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoBarMeta")]
+ [Version (since = "1.18")]
+ public struct BarMeta {
+ public Gst.Meta meta;
+ public uint8 field;
+ public bool is_letterbox;
+ public uint bar_data1;
+ public uint bar_data2;
+ public static unowned Gst.MetaInfo? get_info ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoCaptionMeta")]
+ [Version (since = "1.16")]
+ public struct CaptionMeta {
+ public Gst.Meta meta;
+ public Gst.Video.CaptionType caption_type;
+ [CCode (array_length_cname = "size", array_length_type = "gsize")]
+ public weak uint8[] data;
+ public size_t size;
+ public static unowned Gst.MetaInfo? get_info ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoCodecAlphaMeta")]
+ [Version (since = "1.20")]
+ public struct CodecAlphaMeta {
+ public Gst.Meta meta;
+ public weak Gst.Buffer buffer;
+ public static unowned Gst.MetaInfo? get_info ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoColorPrimariesInfo")]
+ [Version (since = "1.6")]
+ public struct ColorPrimariesInfo {
+ public Gst.Video.ColorPrimaries primaries;
+ public double Wx;
+ public double Wy;
+ public double Rx;
+ public double Ry;
+ public double Gx;
+ public double Gy;
+ public double Bx;
+ public double By;
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoColorimetry")]
+ public struct Colorimetry {
+ public Gst.Video.ColorRange range;
+ public Gst.Video.ColorMatrix matrix;
+ public Gst.Video.TransferFunction transfer;
+ public Gst.Video.ColorPrimaries primaries;
+ public bool from_string (string color);
+ [Version (since = "1.6")]
+ public bool is_equal (Gst.Video.Colorimetry other);
+ [Version (since = "1.22")]
+ public bool is_equivalent (uint bitdepth, Gst.Video.Colorimetry other, uint other_bitdepth);
+ public bool matches (string color);
+ public string? to_string ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoContentLightLevel")]
+ [Version (since = "1.18")]
+ public struct ContentLightLevel {
+ public uint16 max_content_light_level;
+ public uint16 max_frame_average_light_level;
+ public bool add_to_caps (Gst.Caps caps);
+ public bool from_caps (Gst.Caps caps);
+ public bool from_string (string level);
+ public void init ();
+ [Version (since = "1.20")]
+ public bool is_equal (Gst.Video.ContentLightLevel other);
+ public string to_string ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoCropMeta")]
+ public struct CropMeta {
+ public Gst.Meta meta;
+ public uint x;
+ public uint y;
+ public uint width;
+ public uint height;
+ public static unowned Gst.MetaInfo? get_info ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoFormatInfo")]
+ public struct FormatInfo {
+ public Gst.Video.Format format;
+ public weak string name;
+ public weak string description;
+ public Gst.Video.FormatFlags flags;
+ public uint bits;
+ public uint n_components;
+ [CCode (array_length = false)]
+ public weak uint shift[4];
+ [CCode (array_length = false)]
+ public weak uint depth[4];
+ [CCode (array_length = false)]
+ public weak int pixel_stride[4];
+ public uint n_planes;
+ [CCode (array_length = false)]
+ public weak uint plane[4];
+ [CCode (array_length = false)]
+ public weak uint poffset[4];
+ [CCode (array_length = false)]
+ public weak uint w_sub[4];
+ [CCode (array_length = false)]
+ public weak uint h_sub[4];
+ public Gst.Video.Format unpack_format;
+ public weak Gst.Video.FormatUnpack unpack_func;
+ public int pack_lines;
+ public weak Gst.Video.FormatPack pack_func;
+ public Gst.Video.TileMode tile_mode;
+ public uint tile_ws;
+ public uint tile_hs;
+ [Version (since = "1.18")]
+ public void component (uint plane, out int components);
+ [Version (since = "1.22")]
+ public int extrapolate_stride (int plane, int stride);
+ [Version (since = "1.22")]
+ public uint get_tile_sizes (uint plane, uint? out_ws, uint? out_hs);
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoFrame")]
+ public struct Frame {
+ public weak Gst.Video.Info info;
+ public Gst.Video.FrameFlags flags;
+ public weak Gst.Buffer buffer;
+ public void* meta;
+ public int id;
+ [CCode (array_length = false)]
+ public void* data[4];
+ [CCode (array_length = false, cname = "map")]
+ public Gst.MapInfo map_info[4];
+ public bool copy (Gst.Video.Frame src);
+ public bool copy_plane (Gst.Video.Frame src, uint plane);
+ public bool map (Gst.Video.Info info, Gst.Buffer buffer, Gst.MapFlags flags);
+ public bool map_id (Gst.Video.Info info, Gst.Buffer buffer, int id, Gst.MapFlags flags);
+ public void unmap ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoGLTextureUploadMeta")]
+ public struct GLTextureUploadMeta {
+ public Gst.Meta meta;
+ public Gst.Video.GLTextureOrientation texture_orientation;
+ public uint n_textures;
+ [CCode (array_length = false)]
+ public weak Gst.Video.GLTextureType texture_type[4];
+ public static unowned Gst.MetaInfo? get_info ();
+ public bool upload (uint texture_id);
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoMasteringDisplayInfo")]
+ [Version (since = "1.18")]
+ public struct MasteringDisplayInfo {
+ [CCode (array_length = false)]
+ public weak Gst.Video.MasteringDisplayInfoCoordinates display_primaries[3];
+ public Gst.Video.MasteringDisplayInfoCoordinates white_point;
+ public uint32 max_display_mastering_luminance;
+ public uint32 min_display_mastering_luminance;
+ public bool add_to_caps (Gst.Caps caps);
+ public bool from_caps (Gst.Caps caps);
+ public bool from_string (string mastering);
+ public void init ();
+ public bool is_equal (Gst.Video.MasteringDisplayInfo other);
+ public string to_string ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoMasteringDisplayInfoCoordinates")]
+ [Version (since = "1.18")]
+ public struct MasteringDisplayInfoCoordinates {
+ public uint16 x;
+ public uint16 y;
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoMeta")]
+ public struct Meta {
+ public Gst.Meta meta;
+ public weak Gst.Buffer buffer;
+ public Gst.Video.FrameFlags flags;
+ public Gst.Video.Format format;
+ public int id;
+ public uint width;
+ public uint height;
+ public uint n_planes;
+ [CCode (array_length = false)]
+ public weak size_t offset[4];
+ [CCode (array_length = false)]
+ public weak int stride[4];
+ [CCode (cname = "map")]
+ public weak Gst.Video.MetaMapVFunc map_v;
+ [CCode (cname = "unmap")]
+ public weak Gst.Video.MetaUnmapVFunc unmap_v;
+ public Gst.Video.Alignment alignment;
+ public static unowned Gst.MetaInfo? get_info ();
+ [Version (since = "1.18")]
+ public bool get_plane_height ([CCode (array_length = false)] out unowned uint plane_height[4]);
+ [Version (since = "1.18")]
+ public bool get_plane_size ([CCode (array_length = false)] out unowned size_t plane_size[4]);
+ public bool map (uint plane, Gst.MapInfo info, out void* data, out int stride, Gst.MapFlags flags);
+ [Version (since = "1.18")]
+ public bool set_alignment (Gst.Video.Alignment alignment);
+ public bool unmap (uint plane, Gst.MapInfo info);
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoMetaTransform")]
+ public struct MetaTransform {
+ public weak Gst.Video.Info in_info;
+ public weak Gst.Video.Info out_info;
+ public static GLib.Quark scale_get_quark ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoOverlayCompositionMeta")]
+ public struct OverlayCompositionMeta {
+ public Gst.Meta meta;
+ public weak Gst.Video.OverlayComposition overlay;
+ public static unowned Gst.MetaInfo? get_info ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoRectangle")]
+ public struct Rectangle {
+ public int x;
+ public int y;
+ public int w;
+ public int h;
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoRegionOfInterestMeta")]
+ public struct RegionOfInterestMeta {
+ public Gst.Meta meta;
+ public GLib.Quark roi_type;
+ public int id;
+ public int parent_id;
+ public uint x;
+ public uint y;
+ public uint w;
+ public uint h;
+ public weak GLib.List<void*> @params;
+ [Version (since = "1.14")]
+ public void add_param (owned Gst.Structure s);
+ public static unowned Gst.MetaInfo? get_info ();
+ [Version (since = "1.14")]
+ public unowned Gst.Structure? get_param (string name);
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoResampler")]
+ [Version (since = "1.6")]
+ public struct Resampler {
+ public int in_size;
+ public int out_size;
+ public uint max_taps;
+ public uint n_phases;
+ public uint32 offset;
+ public uint32 phase;
+ public uint32 n_taps;
+ public double taps;
+ public void clear ();
+ public bool init (Gst.Video.ResamplerMethod method, Gst.Video.ResamplerFlags flags, uint n_phases, uint n_taps, double shift, uint in_size, uint out_size, Gst.Structure options);
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoSEIUserDataUnregisteredMeta")]
+ [Version (since = "1.22")]
+ public struct SEIUserDataUnregisteredMeta {
+ public Gst.Meta meta;
+ [CCode (array_length = false)]
+ public weak uint8 uuid[16];
+ public uint8 data;
+ public size_t size;
+ public static unowned Gst.MetaInfo? get_info ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoTimeCodeConfig")]
+ [Version (since = "1.10")]
+ public struct TimeCodeConfig {
+ public uint fps_n;
+ public uint fps_d;
+ public Gst.Video.TimeCodeFlags flags;
+ public weak GLib.DateTime latest_daily_jam;
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoTimeCodeMeta")]
+ [Version (since = "1.10")]
+ public struct TimeCodeMeta {
+ public Gst.Meta meta;
+ public weak Gst.Video.TimeCode tc;
+ public static unowned Gst.MetaInfo? get_info ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_AFD_SPEC_", type_id = "gst_video_afd_spec_get_type ()")]
+ [GIR (name = "VideoAFDSpec")]
+ [Version (since = "1.18")]
+ public enum AFDSpec {
+ DVB_ETSI,
+ ATSC_A53,
+ SMPTE_ST2016_1
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_AFD_", type_id = "gst_video_afd_value_get_type ()")]
+ [GIR (name = "VideoAFDValue")]
+ [Version (since = "1.18")]
+ public enum AFDValue {
+ UNAVAILABLE,
+ @16_9_TOP_ALIGNED,
+ @14_9_TOP_ALIGNED,
+ GREATER_THAN_16_9,
+ @4_3_FULL_16_9_FULL,
+ @4_3_FULL_4_3_PILLAR,
+ @16_9_LETTER_16_9_FULL,
+ @14_9_LETTER_14_9_PILLAR,
+ @4_3_FULL_14_9_CENTER,
+ @16_9_LETTER_14_9_CENTER,
+ @16_9_LETTER_4_3_CENTER
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_ALPHA_MODE_", type_id = "gst_video_alpha_mode_get_type ()")]
+ [GIR (name = "VideoAlphaMode")]
+ [Version (since = "1.6")]
+ public enum AlphaMode {
+ COPY,
+ SET,
+ MULT
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_ANCILLARY_DID_", type_id = "gst_video_ancillary_did_get_type ()")]
+ [GIR (name = "VideoAncillaryDID")]
+ [Version (since = "1.16")]
+ public enum AncillaryDID {
+ UNDEFINED,
+ DELETION,
+ HANC_3G_AUDIO_DATA_FIRST,
+ HANC_3G_AUDIO_DATA_LAST,
+ HANC_HDTV_AUDIO_DATA_FIRST,
+ HANC_HDTV_AUDIO_DATA_LAST,
+ HANC_SDTV_AUDIO_DATA_1_FIRST,
+ HANC_SDTV_AUDIO_DATA_1_LAST,
+ CAMERA_POSITION,
+ HANC_ERROR_DETECTION,
+ HANC_SDTV_AUDIO_DATA_2_FIRST,
+ HANC_SDTV_AUDIO_DATA_2_LAST
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_ANCILLARY_DID16_", type_id = "gst_video_ancillary_di_d16_get_type ()")]
+ [GIR (name = "VideoAncillaryDID16")]
+ [Version (since = "1.16")]
+ public enum AncillaryDID16 {
+ S334_EIA_708,
+ S334_EIA_608,
+ S2016_3_AFD_BAR
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_BUFFER_FLAG_", type_id = "gst_video_buffer_flags_get_type ()")]
+ [Flags]
+ [GIR (name = "VideoBufferFlags")]
+ public enum BufferFlags {
+ INTERLACED,
+ TFF,
+ RFF,
+ ONEFIELD,
+ MULTIPLE_VIEW,
+ FIRST_IN_BUNDLE,
+ TOP_FIELD,
+ BOTTOM_FIELD,
+ MARKER,
+ LAST
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_CAPTION_TYPE_", type_id = "gst_video_caption_type_get_type ()")]
+ [GIR (name = "VideoCaptionType")]
+ [Version (since = "1.16")]
+ public enum CaptionType {
+ UNKNOWN,
+ CEA608_RAW,
+ CEA608_S334_1A,
+ CEA708_RAW,
+ CEA708_CDP;
+ public static Gst.Video.CaptionType from_caps (Gst.Caps caps);
+ public Gst.Caps to_caps ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_CHROMA_FLAG_", type_id = "gst_video_chroma_flags_get_type ()")]
+ [Flags]
+ [GIR (name = "VideoChromaFlags")]
+ public enum ChromaFlags {
+ NONE,
+ INTERLACED
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_CHROMA_METHOD_", type_id = "gst_video_chroma_method_get_type ()")]
+ [GIR (name = "VideoChromaMethod")]
+ public enum ChromaMethod {
+ NEAREST,
+ LINEAR
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_CHROMA_MODE_", type_id = "gst_video_chroma_mode_get_type ()")]
+ [GIR (name = "VideoChromaMode")]
+ [Version (since = "1.6")]
+ public enum ChromaMode {
+ FULL,
+ UPSAMPLE_ONLY,
+ DOWNSAMPLE_ONLY,
+ NONE
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_CHROMA_SITE_", type_id = "gst_video_chroma_site_get_type ()")]
+ [Flags]
+ [GIR (name = "VideoChromaSite")]
+ public enum ChromaSite {
+ UNKNOWN,
+ NONE,
+ H_COSITED,
+ V_COSITED,
+ ALT_LINE,
+ COSITED,
+ JPEG,
+ MPEG2,
+ DV;
+ [Version (since = "1.20")]
+ public static Gst.Video.ChromaSite from_string (string s);
+ [Version (since = "1.20")]
+ public string? to_string ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_CODEC_FRAME_FLAG_", type_id = "gst_video_codec_frame_flags_get_type ()")]
+ [Flags]
+ [GIR (name = "VideoCodecFrameFlags")]
+ public enum CodecFrameFlags {
+ DECODE_ONLY,
+ SYNC_POINT,
+ FORCE_KEYFRAME,
+ FORCE_KEYFRAME_HEADERS,
+ [Version (since = "1.20")]
+ CORRUPTED
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GstColorBalanceType", cprefix = "GST_COLOR_BALANCE_", type_id = "gst_color_balance_type_get_type ()")]
+ [GIR (name = "ColorBalanceType")]
+ public enum ColorBalanceType {
+ HARDWARE,
+ SOFTWARE
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_COLOR_MATRIX_", type_id = "gst_video_color_matrix_get_type ()")]
+ [GIR (name = "VideoColorMatrix")]
+ public enum ColorMatrix {
+ UNKNOWN,
+ RGB,
+ FCC,
+ BT709,
+ BT601,
+ SMPTE240M,
+ BT2020;
+ [Version (since = "1.18")]
+ public static Gst.Video.ColorMatrix from_iso (uint value);
+ [Version (since = "1.6")]
+ public bool get_Kr_Kb (out double Kr, out double Kb);
+ [Version (since = "1.18")]
+ public uint to_iso ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_COLOR_PRIMARIES_", type_id = "gst_video_color_primaries_get_type ()")]
+ [GIR (name = "VideoColorPrimaries")]
+ public enum ColorPrimaries {
+ UNKNOWN,
+ BT709,
+ BT470M,
+ BT470BG,
+ SMPTE170M,
+ SMPTE240M,
+ FILM,
+ BT2020,
+ ADOBERGB,
+ SMPTEST428,
+ SMPTERP431,
+ SMPTEEG432,
+ EBU3213;
+ [Version (since = "1.18")]
+ public static Gst.Video.ColorPrimaries from_iso (uint value);
+ [Version (since = "1.6")]
+ public unowned Gst.Video.ColorPrimariesInfo? get_info ();
+ [Version (since = "1.22")]
+ public bool is_equivalent (Gst.Video.ColorPrimaries other);
+ [Version (since = "1.18")]
+ public uint to_iso ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_COLOR_RANGE_", type_id = "gst_video_color_range_get_type ()")]
+ [GIR (name = "VideoColorRange")]
+ public enum ColorRange {
+ UNKNOWN,
+ @0_255,
+ @16_235;
+ public void offsets (Gst.Video.FormatInfo info, [CCode (array_length = false)] out unowned int offset[4], [CCode (array_length = false)] out unowned int scale[4]);
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_DECODER_REQUEST_SYNC_POINT_", type_id = "gst_video_decoder_request_sync_point_flags_get_type ()")]
+ [Flags]
+ [GIR (name = "VideoDecoderRequestSyncPointFlags")]
+ [Version (since = "1.20")]
+ public enum DecoderRequestSyncPointFlags {
+ DISCARD_INPUT,
+ CORRUPT_OUTPUT
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_DITHER_FLAG_", type_id = "gst_video_dither_flags_get_type ()")]
+ [Flags]
+ [GIR (name = "VideoDitherFlags")]
+ public enum DitherFlags {
+ NONE,
+ INTERLACED,
+ QUANTIZE
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_DITHER_", type_id = "gst_video_dither_method_get_type ()")]
+ [GIR (name = "VideoDitherMethod")]
+ public enum DitherMethod {
+ NONE,
+ VERTERR,
+ FLOYD_STEINBERG,
+ SIERRA_LITE,
+ BAYER
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_FIELD_ORDER_", type_id = "gst_video_field_order_get_type ()")]
+ [GIR (name = "VideoFieldOrder")]
+ [Version (since = "1.12")]
+ public enum FieldOrder {
+ UNKNOWN,
+ TOP_FIELD_FIRST,
+ BOTTOM_FIELD_FIRST;
+ public static Gst.Video.FieldOrder from_string (string order);
+ public unowned string to_string ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_FLAG_", type_id = "gst_video_flags_get_type ()")]
+ [Flags]
+ [GIR (name = "VideoFlags")]
+ public enum Flags {
+ NONE,
+ VARIABLE_FPS,
+ PREMULTIPLIED_ALPHA
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_FORMAT_", type_id = "gst_video_format_get_type ()")]
+ [GIR (name = "VideoFormat")]
+ public enum Format {
+ UNKNOWN,
+ ENCODED,
+ I420,
+ YV12,
+ YUY2,
+ UYVY,
+ AYUV,
+ [CCode (cname = "GST_VIDEO_FORMAT_RGBx")]
+ RGBX,
+ [CCode (cname = "GST_VIDEO_FORMAT_BGRx")]
+ BGRX,
+ [CCode (cname = "GST_VIDEO_FORMAT_xRGB")]
+ XRGB,
+ [CCode (cname = "GST_VIDEO_FORMAT_xBGR")]
+ XBGR,
+ RGBA,
+ BGRA,
+ ARGB,
+ ABGR,
+ RGB,
+ BGR,
+ Y41B,
+ Y42B,
+ YVYU,
+ Y444,
+ [CCode (cname = "GST_VIDEO_FORMAT_v210")]
+ V210,
+ [CCode (cname = "GST_VIDEO_FORMAT_v216")]
+ V216,
+ NV12,
+ NV21,
+ GRAY8,
+ GRAY16_BE,
+ GRAY16_LE,
+ [CCode (cname = "GST_VIDEO_FORMAT_v308")]
+ V308,
+ RGB16,
+ BGR16,
+ RGB15,
+ BGR15,
+ UYVP,
+ A420,
+ RGB8P,
+ YUV9,
+ YVU9,
+ IYU1,
+ ARGB64,
+ AYUV64,
+ [CCode (cname = "GST_VIDEO_FORMAT_r210")]
+ R210,
+ I420_10BE,
+ I420_10LE,
+ I422_10BE,
+ I422_10LE,
+ Y444_10BE,
+ Y444_10LE,
+ GBR,
+ GBR_10BE,
+ GBR_10LE,
+ NV16,
+ NV24,
+ NV12_64Z32,
+ A420_10BE,
+ A420_10LE,
+ A422_10BE,
+ A422_10LE,
+ A444_10BE,
+ A444_10LE,
+ NV61,
+ P010_10BE,
+ P010_10LE,
+ IYU2,
+ VYUY,
+ GBRA,
+ GBRA_10BE,
+ GBRA_10LE,
+ GBR_12BE,
+ GBR_12LE,
+ GBRA_12BE,
+ GBRA_12LE,
+ I420_12BE,
+ I420_12LE,
+ I422_12BE,
+ I422_12LE,
+ Y444_12BE,
+ Y444_12LE,
+ GRAY10_LE32,
+ NV12_10LE32,
+ NV16_10LE32,
+ NV12_10LE40,
+ Y210,
+ Y410,
+ VUYA,
+ BGR10A2_LE,
+ RGB10A2_LE,
+ Y444_16BE,
+ Y444_16LE,
+ P016_BE,
+ P016_LE,
+ P012_BE,
+ P012_LE,
+ Y212_BE,
+ Y212_LE,
+ Y412_BE,
+ Y412_LE,
+ [Version (since = "1.18")]
+ NV12_4L4,
+ [Version (since = "1.18")]
+ NV12_32L32,
+ [Version (since = "1.20")]
+ RGBP,
+ [Version (since = "1.20")]
+ BGRP,
+ [Version (since = "1.20")]
+ AV12,
+ [Version (since = "1.20")]
+ ARGB64_LE,
+ [Version (since = "1.20")]
+ ARGB64_BE,
+ [Version (since = "1.20")]
+ RGBA64_LE,
+ [Version (since = "1.20")]
+ RGBA64_BE,
+ [Version (since = "1.20")]
+ BGRA64_LE,
+ [Version (since = "1.20")]
+ BGRA64_BE,
+ [Version (since = "1.20")]
+ ABGR64_LE,
+ [Version (since = "1.20")]
+ ABGR64_BE,
+ [Version (since = "1.22")]
+ NV12_16L32S,
+ [Version (since = "1.22")]
+ NV12_8L128,
+ [Version (since = "1.22")]
+ NV12_10BE_8L128;
+ public static Gst.Video.Format from_fourcc (uint32 fourcc);
+ public static Gst.Video.Format from_masks (int depth, int bpp, int endianness, uint red_mask, uint green_mask, uint blue_mask, uint alpha_mask);
+ public static Gst.Video.Format from_string (string format);
+ public unowned Gst.Video.FormatInfo? get_info ();
+ [Version (since = "1.2")]
+ public void* get_palette (out size_t size);
+ public uint32 to_fourcc ();
+ public unowned string to_string ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_FORMAT_FLAG_", type_id = "gst_video_format_flags_get_type ()")]
+ [Flags]
+ [GIR (name = "VideoFormatFlags")]
+ public enum FormatFlags {
+ YUV,
+ RGB,
+ GRAY,
+ ALPHA,
+ LE,
+ PALETTE,
+ COMPLEX,
+ UNPACK,
+ TILED,
+ [Version (since = "1.22")]
+ SUBTILES
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_FRAME_FLAG_", type_id = "gst_video_frame_flags_get_type ()")]
+ [Flags]
+ [GIR (name = "VideoFrameFlags")]
+ public enum FrameFlags {
+ NONE,
+ INTERLACED,
+ TFF,
+ RFF,
+ ONEFIELD,
+ MULTIPLE_VIEW,
+ FIRST_IN_BUNDLE,
+ TOP_FIELD,
+ BOTTOM_FIELD
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_FRAME_MAP_FLAG_", type_id = "gst_video_frame_map_flags_get_type ()")]
+ [Flags]
+ [GIR (name = "VideoFrameMapFlags")]
+ [Version (since = "1.6")]
+ public enum FrameMapFlags {
+ NO_REF,
+ LAST
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_GL_TEXTURE_ORIENTATION_X_", type_id = "gst_video_gl_texture_orientation_get_type ()")]
+ [GIR (name = "VideoGLTextureOrientation")]
+ public enum GLTextureOrientation {
+ NORMAL_Y_NORMAL,
+ NORMAL_Y_FLIP,
+ FLIP_Y_NORMAL,
+ FLIP_Y_FLIP
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_GL_TEXTURE_TYPE_", type_id = "gst_video_gl_texture_type_get_type ()")]
+ [GIR (name = "VideoGLTextureType")]
+ public enum GLTextureType {
+ LUMINANCE,
+ LUMINANCE_ALPHA,
+ RGB16,
+ RGB,
+ RGBA,
+ R,
+ RG
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_GAMMA_MODE_", type_id = "gst_video_gamma_mode_get_type ()")]
+ [GIR (name = "VideoGammaMode")]
+ [Version (since = "1.6")]
+ public enum GammaMode {
+ NONE,
+ REMAP
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_INTERLACE_MODE_", type_id = "gst_video_interlace_mode_get_type ()")]
+ [GIR (name = "VideoInterlaceMode")]
+ public enum InterlaceMode {
+ PROGRESSIVE,
+ INTERLEAVED,
+ MIXED,
+ FIELDS,
+ ALTERNATE;
+ [Version (since = "1.6")]
+ public static Gst.Video.InterlaceMode from_string (string mode);
+ [Version (since = "1.6")]
+ public unowned string to_string ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_MATRIX_MODE_", type_id = "gst_video_matrix_mode_get_type ()")]
+ [GIR (name = "VideoMatrixMode")]
+ [Version (since = "1.6")]
+ public enum MatrixMode {
+ FULL,
+ INPUT_ONLY,
+ OUTPUT_ONLY,
+ NONE
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_MULTIVIEW_FLAGS_", type_id = "gst_video_multiview_flags_get_type ()")]
+ [Flags]
+ [GIR (name = "VideoMultiviewFlags")]
+ public enum MultiviewFlags {
+ NONE,
+ RIGHT_VIEW_FIRST,
+ LEFT_FLIPPED,
+ LEFT_FLOPPED,
+ RIGHT_FLIPPED,
+ RIGHT_FLOPPED,
+ HALF_ASPECT,
+ MIXED_MONO
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_MULTIVIEW_FRAME_PACKING_", type_id = "gst_video_multiview_frame_packing_get_type ()")]
+ [GIR (name = "VideoMultiviewFramePacking")]
+ public enum MultiviewFramePacking {
+ NONE,
+ MONO,
+ LEFT,
+ RIGHT,
+ SIDE_BY_SIDE,
+ SIDE_BY_SIDE_QUINCUNX,
+ COLUMN_INTERLEAVED,
+ ROW_INTERLEAVED,
+ TOP_BOTTOM,
+ CHECKERBOARD
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_MULTIVIEW_MODE_", type_id = "gst_video_multiview_mode_get_type ()")]
+ [GIR (name = "VideoMultiviewMode")]
+ public enum MultiviewMode {
+ NONE,
+ MONO,
+ LEFT,
+ RIGHT,
+ SIDE_BY_SIDE,
+ SIDE_BY_SIDE_QUINCUNX,
+ COLUMN_INTERLEAVED,
+ ROW_INTERLEAVED,
+ TOP_BOTTOM,
+ CHECKERBOARD,
+ FRAME_BY_FRAME,
+ MULTIVIEW_FRAME_BY_FRAME,
+ SEPARATED;
+ [Version (since = "1.6")]
+ public static Gst.Video.MultiviewMode from_caps_string (string caps_mview_mode);
+ [Version (since = "1.6")]
+ public unowned string to_caps_string ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GstNavigationCommand", cprefix = "GST_NAVIGATION_COMMAND_", type_id = "gst_navigation_command_get_type ()")]
+ [GIR (name = "NavigationCommand")]
+ public enum NavigationCommand {
+ INVALID,
+ MENU1,
+ MENU2,
+ MENU3,
+ MENU4,
+ MENU5,
+ MENU6,
+ MENU7,
+ LEFT,
+ RIGHT,
+ UP,
+ DOWN,
+ ACTIVATE,
+ PREV_ANGLE,
+ NEXT_ANGLE
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GstNavigationEventType", cprefix = "GST_NAVIGATION_EVENT_", type_id = "gst_navigation_event_type_get_type ()")]
+ [GIR (name = "NavigationEventType")]
+ public enum NavigationEventType {
+ INVALID,
+ KEY_PRESS,
+ KEY_RELEASE,
+ MOUSE_BUTTON_PRESS,
+ MOUSE_BUTTON_RELEASE,
+ MOUSE_MOVE,
+ COMMAND,
+ [Version (since = "1.18")]
+ MOUSE_SCROLL,
+ [Version (since = "1.22")]
+ TOUCH_DOWN,
+ [Version (since = "1.22")]
+ TOUCH_MOTION,
+ [Version (since = "1.22")]
+ TOUCH_UP,
+ [Version (since = "1.22")]
+ TOUCH_FRAME,
+ [Version (since = "1.22")]
+ TOUCH_CANCEL
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GstNavigationMessageType", cprefix = "GST_NAVIGATION_MESSAGE_", type_id = "gst_navigation_message_type_get_type ()")]
+ [GIR (name = "NavigationMessageType")]
+ public enum NavigationMessageType {
+ INVALID,
+ MOUSE_OVER,
+ COMMANDS_CHANGED,
+ ANGLES_CHANGED,
+ EVENT
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GstNavigationModifierType", cprefix = "GST_NAVIGATION_MODIFIER_", type_id = "gst_navigation_modifier_type_get_type ()")]
+ [Flags]
+ [GIR (name = "NavigationModifierType")]
+ [Version (since = "1.22")]
+ public enum NavigationModifierType {
+ NONE,
+ SHIFT_MASK,
+ LOCK_MASK,
+ CONTROL_MASK,
+ ALT_MASK,
+ BUTTON1_MASK,
+ BUTTON2_MASK,
+ BUTTON3_MASK,
+ BUTTON4_MASK,
+ BUTTON5_MASK,
+ SUPER_MASK,
+ HYPER_MASK,
+ META_MASK,
+ MASK
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GstNavigationQueryType", cprefix = "GST_NAVIGATION_QUERY_", type_id = "gst_navigation_query_type_get_type ()")]
+ [GIR (name = "NavigationQueryType")]
+ public enum NavigationQueryType {
+ INVALID,
+ COMMANDS,
+ ANGLES
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_ORIENTATION_", type_id = "gst_video_orientation_method_get_type ()")]
+ [GIR (name = "VideoOrientationMethod")]
+ [Version (since = "1.10")]
+ public enum OrientationMethod {
+ IDENTITY,
+ @90R,
+ @180,
+ @90L,
+ HORIZ,
+ VERT,
+ UL_LR,
+ UR_LL,
+ AUTO,
+ CUSTOM
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_OVERLAY_FORMAT_FLAG_", type_id = "gst_video_overlay_format_flags_get_type ()")]
+ [Flags]
+ [GIR (name = "VideoOverlayFormatFlags")]
+ public enum OverlayFormatFlags {
+ NONE,
+ PREMULTIPLIED_ALPHA,
+ GLOBAL_ALPHA
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_PACK_FLAG_", type_id = "gst_video_pack_flags_get_type ()")]
+ [Flags]
+ [GIR (name = "VideoPackFlags")]
+ public enum PackFlags {
+ NONE,
+ TRUNCATE_RANGE,
+ INTERLACED
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_PRIMARIES_MODE_", type_id = "gst_video_primaries_mode_get_type ()")]
+ [GIR (name = "VideoPrimariesMode")]
+ [Version (since = "1.6")]
+ public enum PrimariesMode {
+ NONE,
+ MERGE_ONLY,
+ FAST
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_RESAMPLER_FLAG_", type_id = "gst_video_resampler_flags_get_type ()")]
+ [Flags]
+ [GIR (name = "VideoResamplerFlags")]
+ [Version (since = "1.6")]
+ public enum ResamplerFlags {
+ NONE,
+ HALF_TAPS
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_RESAMPLER_METHOD_", type_id = "gst_video_resampler_method_get_type ()")]
+ [GIR (name = "VideoResamplerMethod")]
+ [Version (since = "1.6")]
+ public enum ResamplerMethod {
+ NEAREST,
+ LINEAR,
+ CUBIC,
+ SINC,
+ LANCZOS
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_SCALER_FLAG_", type_id = "gst_video_scaler_flags_get_type ()")]
+ [Flags]
+ [GIR (name = "VideoScalerFlags")]
+ public enum ScalerFlags {
+ NONE,
+ INTERLACED
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_TILE_MODE_", type_id = "gst_video_tile_mode_get_type ()")]
+ [GIR (name = "VideoTileMode")]
+ public enum TileMode {
+ UNKNOWN,
+ ZFLIPZ_2X2,
+ [Version (since = "1.18")]
+ LINEAR
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_TILE_TYPE_", type_id = "gst_video_tile_type_get_type ()")]
+ [GIR (name = "VideoTileType")]
+ public enum TileType {
+ INDEXED
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_TIME_CODE_FLAGS_", type_id = "gst_video_time_code_flags_get_type ()")]
+ [Flags]
+ [GIR (name = "VideoTimeCodeFlags")]
+ [Version (since = "1.10")]
+ public enum TimeCodeFlags {
+ NONE,
+ DROP_FRAME,
+ INTERLACED
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_TRANSFER_", type_id = "gst_video_transfer_function_get_type ()")]
+ [GIR (name = "VideoTransferFunction")]
+ public enum TransferFunction {
+ UNKNOWN,
+ GAMMA10,
+ GAMMA18,
+ GAMMA20,
+ GAMMA22,
+ BT709,
+ SMPTE240M,
+ SRGB,
+ GAMMA28,
+ LOG100,
+ LOG316,
+ BT2020_12,
+ ADOBERGB,
+ BT2020_10,
+ SMPTE2084,
+ ARIB_STD_B67,
+ [Version (since = "1.18")]
+ BT601;
+ [Version (since = "1.20")]
+ public double decode (double val);
+ [Version (since = "1.20")]
+ public double encode (double val);
+ [Version (since = "1.18")]
+ public static Gst.Video.TransferFunction from_iso (uint value);
+ [Version (since = "1.18")]
+ public bool is_equivalent (uint from_bpp, Gst.Video.TransferFunction to_func, uint to_bpp);
+ [Version (since = "1.18")]
+ public uint to_iso ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_VBI_PARSER_RESULT_", type_id = "gst_video_vbi_parser_result_get_type ()")]
+ [GIR (name = "VideoVBIParserResult")]
+ [Version (since = "1.16")]
+ public enum VBIParserResult {
+ DONE,
+ OK,
+ ERROR
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_target = false)]
+ public delegate bool AffineTransformationGetMatrix (Gst.Video.AffineTransformationMeta meta, float matrix);
+ [CCode (cheader_filename = "gst/video/video.h", instance_pos = 2.9)]
+ public delegate void ConvertSampleCallback (Gst.Sample sample, GLib.Error error);
+ [CCode (cheader_filename = "gst/video/video.h", has_target = false)]
+ public delegate void FormatPack (Gst.Video.FormatInfo info, Gst.Video.PackFlags flags, void* src, int sstride, void* data, int stride, Gst.Video.ChromaSite chroma_site, int y, int width);
+ [CCode (cheader_filename = "gst/video/video.h", has_target = false)]
+ public delegate void FormatUnpack (Gst.Video.FormatInfo info, Gst.Video.PackFlags flags, void* dest, void* data, int stride, int x, int y, int width);
+ [CCode (cheader_filename = "gst/video/video.h", has_target = false)]
+ public delegate bool GLTextureUpload (Gst.Video.GLTextureUploadMeta meta, uint texture_id);
+ [CCode (cheader_filename = "gst/video/video.h", has_target = false, has_typedef = false)]
+ public delegate bool MetaMapVFunc (Gst.Video.Meta meta, uint plane, Gst.MapInfo info, void* data, int stride, Gst.MapFlags flags);
+ [CCode (cheader_filename = "gst/video/video.h", has_target = false, has_typedef = false)]
+ public delegate bool MetaUnmapVFunc (Gst.Video.Meta meta, uint plane, Gst.MapInfo info);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_BUFFER_POOL_OPTION_VIDEO_AFFINE_TRANSFORMATION_META")]
+ public const string BUFFER_POOL_OPTION_VIDEO_AFFINE_TRANSFORMATION_META;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT")]
+ public const string BUFFER_POOL_OPTION_VIDEO_ALIGNMENT;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_BUFFER_POOL_OPTION_VIDEO_GL_TEXTURE_UPLOAD_META")]
+ [Version (since = "1.2.2")]
+ public const string BUFFER_POOL_OPTION_VIDEO_GL_TEXTURE_UPLOAD_META;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_BUFFER_POOL_OPTION_VIDEO_META")]
+ public const string BUFFER_POOL_OPTION_VIDEO_META;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_CAPS_FEATURE_FORMAT_INTERLACED")]
+ [Version (since = "1.16.")]
+ public const string CAPS_FEATURE_FORMAT_INTERLACED;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_CAPS_FEATURE_META_GST_VIDEO_AFFINE_TRANSFORMATION_META")]
+ public const string CAPS_FEATURE_META_GST_VIDEO_AFFINE_TRANSFORMATION_META;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META")]
+ public const string CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_CAPS_FEATURE_META_GST_VIDEO_META")]
+ public const string CAPS_FEATURE_META_GST_VIDEO_META;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION")]
+ public const string CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_COLORIMETRY_BT2020")]
+ public const string COLORIMETRY_BT2020;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_COLORIMETRY_BT2020_10")]
+ public const string COLORIMETRY_BT2020_10;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_COLORIMETRY_BT2100_HLG")]
+ public const string COLORIMETRY_BT2100_HLG;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_COLORIMETRY_BT2100_PQ")]
+ public const string COLORIMETRY_BT2100_PQ;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_COLORIMETRY_BT601")]
+ public const string COLORIMETRY_BT601;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_COLORIMETRY_BT709")]
+ public const string COLORIMETRY_BT709;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_COLORIMETRY_SMPTE240M")]
+ public const string COLORIMETRY_SMPTE240M;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_COLORIMETRY_SRGB")]
+ public const string COLORIMETRY_SRGB;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_COMP_A")]
+ public const int COMP_A;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_COMP_B")]
+ public const int COMP_B;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_COMP_G")]
+ public const int COMP_G;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_COMP_INDEX")]
+ public const int COMP_INDEX;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_COMP_PALETTE")]
+ public const int COMP_PALETTE;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_COMP_R")]
+ public const int COMP_R;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_COMP_U")]
+ public const int COMP_U;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_COMP_V")]
+ public const int COMP_V;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_COMP_Y")]
+ public const int COMP_Y;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_ALPHA_MODE")]
+ public const string CONVERTER_OPT_ALPHA_MODE;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_ALPHA_VALUE")]
+ public const string CONVERTER_OPT_ALPHA_VALUE;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_ASYNC_TASKS")]
+ [Version (since = "1.20")]
+ public const string CONVERTER_OPT_ASYNC_TASKS;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_BORDER_ARGB")]
+ public const string CONVERTER_OPT_BORDER_ARGB;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_CHROMA_MODE")]
+ public const string CONVERTER_OPT_CHROMA_MODE;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_CHROMA_RESAMPLER_METHOD")]
+ public const string CONVERTER_OPT_CHROMA_RESAMPLER_METHOD;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_DEST_HEIGHT")]
+ public const string CONVERTER_OPT_DEST_HEIGHT;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_DEST_WIDTH")]
+ public const string CONVERTER_OPT_DEST_WIDTH;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_DEST_X")]
+ public const string CONVERTER_OPT_DEST_X;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_DEST_Y")]
+ public const string CONVERTER_OPT_DEST_Y;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_DITHER_METHOD")]
+ public const string CONVERTER_OPT_DITHER_METHOD;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_DITHER_QUANTIZATION")]
+ public const string CONVERTER_OPT_DITHER_QUANTIZATION;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_FILL_BORDER")]
+ public const string CONVERTER_OPT_FILL_BORDER;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_GAMMA_MODE")]
+ public const string CONVERTER_OPT_GAMMA_MODE;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_MATRIX_MODE")]
+ public const string CONVERTER_OPT_MATRIX_MODE;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_PRIMARIES_MODE")]
+ public const string CONVERTER_OPT_PRIMARIES_MODE;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_RESAMPLER_METHOD")]
+ public const string CONVERTER_OPT_RESAMPLER_METHOD;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_RESAMPLER_TAPS")]
+ public const string CONVERTER_OPT_RESAMPLER_TAPS;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_SRC_HEIGHT")]
+ public const string CONVERTER_OPT_SRC_HEIGHT;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_SRC_WIDTH")]
+ public const string CONVERTER_OPT_SRC_WIDTH;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_SRC_X")]
+ public const string CONVERTER_OPT_SRC_X;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_SRC_Y")]
+ public const string CONVERTER_OPT_SRC_Y;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_CONVERTER_OPT_THREADS")]
+ public const string CONVERTER_OPT_THREADS;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_DECODER_MAX_ERRORS")]
+ public const int DECODER_MAX_ERRORS;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_DECODER_SINK_NAME")]
+ public const string DECODER_SINK_NAME;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_DECODER_SRC_NAME")]
+ public const string DECODER_SRC_NAME;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_ENCODER_SINK_NAME")]
+ public const string ENCODER_SINK_NAME;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_ENCODER_SRC_NAME")]
+ public const string ENCODER_SRC_NAME;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_FORMATS_ALL")]
+ public const string FORMATS_ALL;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_FPS_RANGE")]
+ public const string FPS_RANGE;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_MAX_COMPONENTS")]
+ public const int MAX_COMPONENTS;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_MAX_PLANES")]
+ public const int MAX_PLANES;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_META_TAG_VIDEO_COLORSPACE_STR")]
+ [Version (since = "1.2")]
+ public const string META_TAG_VIDEO_COLORSPACE_STR;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_META_TAG_VIDEO_ORIENTATION_STR")]
+ [Version (since = "1.2")]
+ public const string META_TAG_VIDEO_ORIENTATION_STR;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_META_TAG_VIDEO_SIZE_STR")]
+ [Version (since = "1.2")]
+ public const string META_TAG_VIDEO_SIZE_STR;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_META_TAG_VIDEO_STR")]
+ [Version (since = "1.2")]
+ public const string META_TAG_VIDEO_STR;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_RESAMPLER_OPT_CUBIC_B")]
+ public const string RESAMPLER_OPT_CUBIC_B;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_RESAMPLER_OPT_CUBIC_C")]
+ public const string RESAMPLER_OPT_CUBIC_C;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_RESAMPLER_OPT_ENVELOPE")]
+ public const string RESAMPLER_OPT_ENVELOPE;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_RESAMPLER_OPT_MAX_TAPS")]
+ public const string RESAMPLER_OPT_MAX_TAPS;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_RESAMPLER_OPT_SHARPEN")]
+ public const string RESAMPLER_OPT_SHARPEN;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_RESAMPLER_OPT_SHARPNESS")]
+ public const string RESAMPLER_OPT_SHARPNESS;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_SCALER_OPT_DITHER_METHOD")]
+ public const string SCALER_OPT_DITHER_METHOD;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_SIZE_RANGE")]
+ public const string SIZE_RANGE;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_TILE_TYPE_MASK")]
+ public const int TILE_TYPE_MASK;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_TILE_TYPE_SHIFT")]
+ public const int TILE_TYPE_SHIFT;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_TILE_X_TILES_MASK")]
+ public const int TILE_X_TILES_MASK;
+ [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_TILE_Y_TILES_SHIFT")]
+ public const int TILE_Y_TILES_SHIFT;
+ [CCode (cheader_filename = "gst/video/video.h")]
+ public static GLib.Type afd_meta_api_get_type ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoAFDMeta.get_info")]
+ public static unowned Gst.MetaInfo? afd_meta_get_info ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ public static GLib.Type affine_transformation_meta_api_get_type ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoAffineTransformationMeta.get_info")]
+ public static unowned Gst.MetaInfo? affine_transformation_meta_get_info ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ public static GLib.Type bar_meta_api_get_type ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoBarMeta.get_info")]
+ public static unowned Gst.MetaInfo? bar_meta_get_info ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ public static bool blend (Gst.Video.Frame dest, Gst.Video.Frame src, int x, int y, float global_alpha);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ public static void blend_scale_linear_RGBA (Gst.Video.Info src, Gst.Buffer src_buffer, int dest_height, int dest_width, out unowned Gst.Video.Info dest, out Gst.Buffer dest_buffer);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_add_video_afd_meta")]
+ [Version (since = "1.18")]
+ public static unowned Gst.Video.AFDMeta? buffer_add_video_afd_meta (Gst.Buffer buffer, uint8 field, Gst.Video.AFDSpec spec, Gst.Video.AFDValue afd);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_add_video_affine_transformation_meta")]
+ [Version (since = "1.8")]
+ public static unowned Gst.Video.AffineTransformationMeta? buffer_add_video_affine_transformation_meta (Gst.Buffer buffer);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_add_video_bar_meta")]
+ [Version (since = "1.18")]
+ public static unowned Gst.Video.BarMeta? buffer_add_video_bar_meta (Gst.Buffer buffer, uint8 field, bool is_letterbox, uint bar_data1, uint bar_data2);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_add_video_caption_meta")]
+ [Version (since = "1.16")]
+ public static unowned Gst.Video.CaptionMeta? buffer_add_video_caption_meta (Gst.Buffer buffer, Gst.Video.CaptionType caption_type, [CCode (array_length_cname = "size", array_length_pos = 3.1, array_length_type = "gsize")] uint8[] data);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_add_video_codec_alpha_meta")]
+ [Version (since = "1.20")]
+ public static unowned Gst.Video.CodecAlphaMeta? buffer_add_video_codec_alpha_meta (Gst.Buffer buffer, owned Gst.Buffer alpha_buffer);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_add_video_gl_texture_upload_meta")]
+ public static unowned Gst.Video.GLTextureUploadMeta? buffer_add_video_gl_texture_upload_meta (Gst.Buffer buffer, Gst.Video.GLTextureOrientation texture_orientation, uint n_textures, Gst.Video.GLTextureType texture_type, [CCode (delegate_target_pos = 5.5)] Gst.Video.GLTextureUpload upload, GLib.BoxedCopyFunc user_data_copy, GLib.BoxedFreeFunc user_data_free);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_add_video_meta")]
+ public static unowned Gst.Video.Meta? buffer_add_video_meta (Gst.Buffer buffer, Gst.Video.FrameFlags flags, Gst.Video.Format format, uint width, uint height);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_add_video_meta_full")]
+ public static unowned Gst.Video.Meta? buffer_add_video_meta_full (Gst.Buffer buffer, Gst.Video.FrameFlags flags, Gst.Video.Format format, uint width, uint height, uint n_planes, [CCode (array_length = false)] size_t offset[4], [CCode (array_length = false)] int stride[4]);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_add_video_overlay_composition_meta")]
+ public static unowned Gst.Video.OverlayCompositionMeta? buffer_add_video_overlay_composition_meta (Gst.Buffer buf, Gst.Video.OverlayComposition? comp);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_add_video_region_of_interest_meta")]
+ public static unowned Gst.Video.RegionOfInterestMeta? buffer_add_video_region_of_interest_meta (Gst.Buffer buffer, string roi_type, uint x, uint y, uint w, uint h);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_add_video_region_of_interest_meta_id")]
+ public static unowned Gst.Video.RegionOfInterestMeta? buffer_add_video_region_of_interest_meta_id (Gst.Buffer buffer, GLib.Quark roi_type, uint x, uint y, uint w, uint h);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_add_video_sei_user_data_unregistered_meta")]
+ [Version (since = "1.22")]
+ public static unowned Gst.Video.SEIUserDataUnregisteredMeta? buffer_add_video_sei_user_data_unregistered_meta (Gst.Buffer buffer, uint8 uuid, uint8 data, size_t size);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_add_video_time_code_meta")]
+ [Version (since = "1.10")]
+ public static unowned Gst.Video.TimeCodeMeta? buffer_add_video_time_code_meta (Gst.Buffer buffer, Gst.Video.TimeCode tc);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_add_video_time_code_meta_full")]
+ [Version (since = "1.10")]
+ public static unowned Gst.Video.TimeCodeMeta? buffer_add_video_time_code_meta_full (Gst.Buffer buffer, uint fps_n, uint fps_d, GLib.DateTime latest_daily_jam, Gst.Video.TimeCodeFlags flags, uint hours, uint minutes, uint seconds, uint frames, uint field_count);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_get_video_meta")]
+ public static unowned Gst.Video.Meta? buffer_get_video_meta (Gst.Buffer buffer);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_get_video_meta_id")]
+ public static unowned Gst.Video.Meta? buffer_get_video_meta_id (Gst.Buffer buffer, int id);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_get_video_region_of_interest_meta_id")]
+ public static unowned Gst.Video.RegionOfInterestMeta? buffer_get_video_region_of_interest_meta_id (Gst.Buffer buffer, int id);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_pool_config_get_video_alignment")]
+ public static bool buffer_pool_config_get_video_alignment (Gst.Structure config, Gst.Video.Alignment align);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_pool_config_set_video_alignment")]
+ public static void buffer_pool_config_set_video_alignment (Gst.Structure config, Gst.Video.Alignment align);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ public static bool calculate_display_ratio (out uint dar_n, out uint dar_d, uint video_width, uint video_height, uint video_par_n, uint video_par_d, uint display_par_n, uint display_par_d);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ public static GLib.Type caption_meta_api_get_type ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoCaptionMeta.get_info")]
+ public static unowned Gst.MetaInfo? caption_meta_get_info ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoCaptionType.from_caps", since = "1.16")]
+ public static Gst.Video.CaptionType caption_type_from_caps (Gst.Caps caps);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoCaptionType.to_caps", since = "1.16")]
+ public static Gst.Caps caption_type_to_caps (Gst.Video.CaptionType type);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (since = "1.20")]
+ public static void center_rect (Gst.Video.Rectangle src, Gst.Video.Rectangle dst, out Gst.Video.Rectangle result, bool scaling);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (deprecated = true, deprecated_since = "1.20")]
+ public static Gst.Video.ChromaSite chroma_from_string (string s);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoChromaSite.from_string", since = "1.20")]
+ public static Gst.Video.ChromaSite chroma_site_from_string (string s);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoChromaSite.to_string", since = "1.20")]
+ public static string? chroma_site_to_string (Gst.Video.ChromaSite site);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (deprecated = true, deprecated_since = "1.20")]
+ public static unowned string chroma_to_string (Gst.Video.ChromaSite site);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (since = "1.20")]
+ public static GLib.Type codec_alpha_meta_api_get_type ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoCodecAlphaMeta.get_info", since = "1.20")]
+ public static unowned Gst.MetaInfo? codec_alpha_meta_get_info ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoColorMatrix.from_iso", since = "1.18")]
+ public static Gst.Video.ColorMatrix color_matrix_from_iso (uint value);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoColorMatrix.get_Kr_Kb", since = "1.6")]
+ public static bool color_matrix_get_Kr_Kb (Gst.Video.ColorMatrix matrix, out double Kr, out double Kb);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoColorMatrix.to_iso", since = "1.18")]
+ public static uint color_matrix_to_iso (Gst.Video.ColorMatrix matrix);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoColorPrimaries.from_iso", since = "1.18")]
+ public static Gst.Video.ColorPrimaries color_primaries_from_iso (uint value);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoColorPrimaries.get_info", since = "1.6")]
+ public static unowned Gst.Video.ColorPrimariesInfo? color_primaries_get_info (Gst.Video.ColorPrimaries primaries);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoColorPrimaries.is_equivalent", since = "1.22")]
+ public static bool color_primaries_is_equivalent (Gst.Video.ColorPrimaries primaries, Gst.Video.ColorPrimaries other);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoColorPrimaries.to_iso", since = "1.18")]
+ public static uint color_primaries_to_iso (Gst.Video.ColorPrimaries primaries);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoColorRange.offsets")]
+ public static void color_range_offsets (Gst.Video.ColorRange range, Gst.Video.FormatInfo info, [CCode (array_length = false)] out unowned int offset[4], [CCode (array_length = false)] out unowned int scale[4]);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (deprecated = true, deprecated_since = "1.20", since = "1.6")]
+ public static double color_transfer_decode (Gst.Video.TransferFunction func, double val);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (deprecated = true, deprecated_since = "1.20", since = "1.6")]
+ public static double color_transfer_encode (Gst.Video.TransferFunction func, double val);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ public static Gst.Sample convert_sample (Gst.Sample sample, Gst.Caps to_caps, Gst.ClockTime timeout) throws GLib.Error;
+ [CCode (cheader_filename = "gst/video/video.h")]
+ public static void convert_sample_async (Gst.Sample sample, Gst.Caps to_caps, Gst.ClockTime timeout, owned Gst.Video.ConvertSampleCallback callback);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ public static GLib.Type crop_meta_api_get_type ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoCropMeta.get_info")]
+ public static unowned Gst.MetaInfo? crop_meta_get_info ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ public static bool event_is_force_key_unit (Gst.Event event);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ public static Gst.Event event_new_downstream_force_key_unit (Gst.ClockTime timestamp, Gst.ClockTime stream_time, Gst.ClockTime running_time, bool all_headers, uint count);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ public static Gst.Event event_new_still_frame (bool in_still);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ public static Gst.Event event_new_upstream_force_key_unit (Gst.ClockTime running_time, bool all_headers, uint count);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ public static bool event_parse_downstream_force_key_unit (Gst.Event event, out Gst.ClockTime timestamp, out Gst.ClockTime stream_time, out Gst.ClockTime running_time, out bool all_headers, out uint count);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ public static bool event_parse_still_frame (Gst.Event event, out bool in_still);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ public static bool event_parse_upstream_force_key_unit (Gst.Event event, out Gst.ClockTime running_time, out bool all_headers, out uint count);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoFieldOrder.from_string", since = "1.12")]
+ public static Gst.Video.FieldOrder field_order_from_string (string order);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoFieldOrder.to_string", since = "1.12")]
+ public static unowned string field_order_to_string (Gst.Video.FieldOrder order);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoFormat.from_fourcc")]
+ public static Gst.Video.Format format_from_fourcc (uint32 fourcc);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoFormat.from_masks")]
+ public static Gst.Video.Format format_from_masks (int depth, int bpp, int endianness, uint red_mask, uint green_mask, uint blue_mask, uint alpha_mask);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoFormat.from_string")]
+ public static Gst.Video.Format format_from_string (string format);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoFormat.get_info")]
+ public static unowned Gst.Video.FormatInfo? format_get_info (Gst.Video.Format format);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoFormat.get_palette", since = "1.2")]
+ public static void* format_get_palette (Gst.Video.Format format, out size_t size);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoFormat.to_fourcc")]
+ public static uint32 format_to_fourcc (Gst.Video.Format format);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoFormat.to_string")]
+ public static unowned string format_to_string (Gst.Video.Format format);
+ [CCode (array_length_pos = 0.1, array_length_type = "guint", cheader_filename = "gst/video/video.h")]
+ [Version (since = "1.18")]
+ public static unowned Gst.Video.Format[] formats_raw ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoFrame.map")]
+ public static bool frame_map (out Gst.Video.Frame frame, Gst.Video.Info info, Gst.Buffer buffer, Gst.MapFlags flags);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoFrame.map_id")]
+ public static bool frame_map_id (out Gst.Video.Frame frame, Gst.Video.Info info, Gst.Buffer buffer, int id, Gst.MapFlags flags);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ public static GLib.Type gl_texture_upload_meta_api_get_type ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoGLTextureUploadMeta.get_info")]
+ public static unowned Gst.MetaInfo? gl_texture_upload_meta_get_info ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (since = "1.6")]
+ public static bool guess_framerate (Gst.ClockTime duration, out int dest_n, out int dest_d);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoInfo.from_caps")]
+ public static bool info_from_caps (out unowned Gst.Video.Info info, Gst.Caps caps);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoInfo.init")]
+ public static void info_init (out unowned Gst.Video.Info info);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoInterlaceMode.from_string", since = "1.6")]
+ public static Gst.Video.InterlaceMode interlace_mode_from_string (string mode);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoInterlaceMode.to_string", since = "1.6")]
+ public static unowned string interlace_mode_to_string (Gst.Video.InterlaceMode mode);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (since = "1.22")]
+ public static bool is_common_aspect_ratio (int width, int height, int par_n, int par_d);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_is_video_overlay_prepare_window_handle_message")]
+ public static bool is_video_overlay_prepare_window_handle_message (Gst.Message msg);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (since = "1.18")]
+ public static Gst.Caps make_raw_caps ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] Gst.Video.Format[]? formats);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (since = "1.18")]
+ public static Gst.Caps make_raw_caps_with_features ([CCode (array_length_cname = "len", array_length_pos = 1.5, array_length_type = "guint")] Gst.Video.Format[]? formats, owned Gst.CapsFeatures? features);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoMasteringDisplayInfo.from_string", since = "1.18")]
+ public static bool mastering_display_info_from_string (out Gst.Video.MasteringDisplayInfo minfo, string mastering);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ public static GLib.Type meta_api_get_type ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoMeta.get_info")]
+ public static unowned Gst.MetaInfo? meta_get_info ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoMetaTransform.scale_get_quark")]
+ public static GLib.Quark meta_transform_scale_get_quark ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (since = "1.6")]
+ public static unowned GLib.Value? multiview_get_doubled_height_modes ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (since = "1.6")]
+ public static unowned GLib.Value? multiview_get_doubled_size_modes ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (since = "1.6")]
+ public static unowned GLib.Value? multiview_get_doubled_width_modes ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (since = "1.6")]
+ public static unowned GLib.Value? multiview_get_mono_modes ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (since = "1.6")]
+ public static unowned GLib.Value? multiview_get_unpacked_modes ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (since = "1.6")]
+ public static bool multiview_guess_half_aspect (Gst.Video.MultiviewMode mv_mode, uint width, uint height, uint par_n, uint par_d);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoMultiviewMode.from_caps_string", since = "1.6")]
+ public static Gst.Video.MultiviewMode multiview_mode_from_caps_string (string caps_mview_mode);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoMultiviewMode.to_caps_string", since = "1.6")]
+ public static unowned string multiview_mode_to_caps_string (Gst.Video.MultiviewMode mview_mode);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (since = "1.6")]
+ public static void multiview_video_info_change_mode (Gst.Video.Info info, Gst.Video.MultiviewMode out_mview_mode, Gst.Video.MultiviewFlags out_mview_flags);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_get_coordinates")]
+ [Version (replacement = "Navigation.event_get_coordinates", since = "1.22")]
+ public static bool navigation_event_get_coordinates (Gst.Event event, out double x, out double y);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_get_type")]
+ [Version (replacement = "Navigation.event_get_type")]
+ public static Gst.Video.NavigationEventType navigation_event_get_type (Gst.Event event);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_new_command")]
+ [Version (replacement = "Navigation.event_new_command", since = "1.22")]
+ public static Gst.Event navigation_event_new_command (Gst.Video.NavigationCommand command);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_new_key_press")]
+ [Version (replacement = "Navigation.event_new_key_press", since = "1.22")]
+ public static Gst.Event navigation_event_new_key_press (string key, Gst.Video.NavigationModifierType state);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_new_key_release")]
+ [Version (replacement = "Navigation.event_new_key_release", since = "1.22")]
+ public static Gst.Event navigation_event_new_key_release (string key, Gst.Video.NavigationModifierType state);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_new_mouse_button_press")]
+ [Version (replacement = "Navigation.event_new_mouse_button_press", since = "1.22")]
+ public static Gst.Event navigation_event_new_mouse_button_press (int button, double x, double y, Gst.Video.NavigationModifierType state);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_new_mouse_button_release")]
+ [Version (replacement = "Navigation.event_new_mouse_button_release", since = "1.22")]
+ public static Gst.Event navigation_event_new_mouse_button_release (int button, double x, double y, Gst.Video.NavigationModifierType state);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_new_mouse_move")]
+ [Version (replacement = "Navigation.event_new_mouse_move", since = "1.22")]
+ public static Gst.Event navigation_event_new_mouse_move (double x, double y, Gst.Video.NavigationModifierType state);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_new_mouse_scroll")]
+ [Version (replacement = "Navigation.event_new_mouse_scroll", since = "1.22")]
+ public static Gst.Event navigation_event_new_mouse_scroll (double x, double y, double delta_x, double delta_y, Gst.Video.NavigationModifierType state);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_new_touch_cancel")]
+ [Version (replacement = "Navigation.event_new_touch_cancel", since = "1.22")]
+ public static Gst.Event navigation_event_new_touch_cancel (Gst.Video.NavigationModifierType state);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_new_touch_down")]
+ [Version (replacement = "Navigation.event_new_touch_down", since = "1.22")]
+ public static Gst.Event navigation_event_new_touch_down (uint identifier, double x, double y, double pressure, Gst.Video.NavigationModifierType state);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_new_touch_frame")]
+ [Version (replacement = "Navigation.event_new_touch_frame", since = "1.22")]
+ public static Gst.Event navigation_event_new_touch_frame (Gst.Video.NavigationModifierType state);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_new_touch_motion")]
+ [Version (replacement = "Navigation.event_new_touch_motion", since = "1.22")]
+ public static Gst.Event navigation_event_new_touch_motion (uint identifier, double x, double y, double pressure, Gst.Video.NavigationModifierType state);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_new_touch_up")]
+ [Version (replacement = "Navigation.event_new_touch_up", since = "1.22")]
+ public static Gst.Event navigation_event_new_touch_up (uint identifier, double x, double y, Gst.Video.NavigationModifierType state);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_parse_command")]
+ [Version (replacement = "Navigation.event_parse_command")]
+ public static bool navigation_event_parse_command (Gst.Event event, out Gst.Video.NavigationCommand command);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_parse_key_event")]
+ [Version (replacement = "Navigation.event_parse_key_event")]
+ public static bool navigation_event_parse_key_event (Gst.Event event, out unowned string key);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_parse_modifier_state")]
+ [Version (replacement = "Navigation.event_parse_modifier_state", since = "1.22")]
+ public static bool navigation_event_parse_modifier_state (Gst.Event event, Gst.Video.NavigationModifierType state);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_parse_mouse_button_event")]
+ [Version (replacement = "Navigation.event_parse_mouse_button_event")]
+ public static bool navigation_event_parse_mouse_button_event (Gst.Event event, out int button, out double x, out double y);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_parse_mouse_move_event")]
+ [Version (replacement = "Navigation.event_parse_mouse_move_event")]
+ public static bool navigation_event_parse_mouse_move_event (Gst.Event event, out double x, out double y);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_parse_mouse_scroll_event")]
+ [Version (replacement = "Navigation.event_parse_mouse_scroll_event", since = "1.18")]
+ public static bool navigation_event_parse_mouse_scroll_event (Gst.Event event, out double x, out double y, out double delta_x, out double delta_y);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_parse_touch_event")]
+ [Version (replacement = "Navigation.event_parse_touch_event", since = "1.22")]
+ public static bool navigation_event_parse_touch_event (Gst.Event event, out uint identifier, out double x, out double y, out double pressure);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_parse_touch_up_event")]
+ [Version (replacement = "Navigation.event_parse_touch_up_event", since = "1.22")]
+ public static bool navigation_event_parse_touch_up_event (Gst.Event event, out uint identifier, out double x, out double y);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_event_set_coordinates")]
+ [Version (replacement = "Navigation.event_set_coordinates", since = "1.22")]
+ public static bool navigation_event_set_coordinates (Gst.Event event, double x, double y);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_message_get_type")]
+ [Version (replacement = "Navigation.message_get_type")]
+ public static Gst.Video.NavigationMessageType navigation_message_get_type (Gst.Message message);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_message_new_angles_changed")]
+ [Version (replacement = "Navigation.message_new_angles_changed")]
+ public static Gst.Message navigation_message_new_angles_changed (Gst.Object src, uint cur_angle, uint n_angles);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_message_new_commands_changed")]
+ [Version (replacement = "Navigation.message_new_commands_changed")]
+ public static Gst.Message navigation_message_new_commands_changed (Gst.Object src);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_message_new_event")]
+ [Version (replacement = "Navigation.message_new_event", since = "1.6")]
+ public static Gst.Message navigation_message_new_event (Gst.Object src, Gst.Event event);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_message_new_mouse_over")]
+ [Version (replacement = "Navigation.message_new_mouse_over")]
+ public static Gst.Message navigation_message_new_mouse_over (Gst.Object src, bool active);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_message_parse_angles_changed")]
+ [Version (replacement = "Navigation.message_parse_angles_changed")]
+ public static bool navigation_message_parse_angles_changed (Gst.Message message, out uint cur_angle, out uint n_angles);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_message_parse_event")]
+ [Version (replacement = "Navigation.message_parse_event", since = "1.6")]
+ public static bool navigation_message_parse_event (Gst.Message message, out Gst.Event event);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_message_parse_mouse_over")]
+ [Version (replacement = "Navigation.message_parse_mouse_over")]
+ public static bool navigation_message_parse_mouse_over (Gst.Message message, out bool active);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_query_get_type")]
+ [Version (replacement = "Navigation.query_get_type")]
+ public static Gst.Video.NavigationQueryType navigation_query_get_type (Gst.Query query);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_query_new_angles")]
+ [Version (replacement = "Navigation.query_new_angles")]
+ public static Gst.Query navigation_query_new_angles ();
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_query_new_commands")]
+ [Version (replacement = "Navigation.query_new_commands")]
+ public static Gst.Query navigation_query_new_commands ();
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_query_parse_angles")]
+ [Version (replacement = "Navigation.query_parse_angles")]
+ public static bool navigation_query_parse_angles (Gst.Query query, out uint cur_angle, out uint n_angles);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_query_parse_commands_length")]
+ [Version (replacement = "Navigation.query_parse_commands_length")]
+ public static bool navigation_query_parse_commands_length (Gst.Query query, out uint n_cmds);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_query_parse_commands_nth")]
+ [Version (replacement = "Navigation.query_parse_commands_nth")]
+ public static bool navigation_query_parse_commands_nth (Gst.Query query, uint nth, out Gst.Video.NavigationCommand cmd);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_query_set_angles")]
+ [Version (replacement = "Navigation.query_set_angles")]
+ public static void navigation_query_set_angles (Gst.Query query, uint cur_angle, uint n_angles);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_navigation_query_set_commandsv")]
+ [Version (replacement = "Navigation.query_set_commandsv")]
+ public static void navigation_query_set_commandsv (Gst.Query query, [CCode (array_length_cname = "n_cmds", array_length_pos = 1.5)] Gst.Video.NavigationCommand[] cmds);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoOrientation.from_tag", since = "1.20")]
+ public static bool orientation_from_tag (Gst.TagList taglist, out Gst.Video.OrientationMethod method);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ public static GLib.Type overlay_composition_meta_api_get_type ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoOverlayCompositionMeta.get_info")]
+ public static unowned Gst.MetaInfo? overlay_composition_meta_get_info ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoOverlay.install_properties", since = "1.14")]
+ public static void overlay_install_properties (GLib.ObjectClass oclass, int last_prop_id);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoOverlay.set_property", since = "1.14")]
+ public static bool overlay_set_property (GLib.Object object, int last_prop_id, uint property_id, GLib.Value value);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ public static GLib.Type region_of_interest_meta_api_get_type ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoRegionOfInterestMeta.get_info")]
+ public static unowned Gst.MetaInfo? region_of_interest_meta_get_info ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (since = "1.22")]
+ public static GLib.Type sei_user_data_unregistered_meta_api_get_type ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoSEIUserDataUnregisteredMeta.get_info", since = "1.22")]
+ public static unowned Gst.MetaInfo? sei_user_data_unregistered_meta_get_info ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (since = "1.22")]
+ public static bool sei_user_data_unregistered_parse_precision_time_stamp (Gst.Video.SEIUserDataUnregisteredMeta user_data, out uint8 status, out uint64 precision_time_stamp);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (since = "1.4")]
+ public static uint tile_get_index (Gst.Video.TileMode mode, int x, int y, int x_tiles, int y_tiles);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ public static GLib.Type time_code_meta_api_get_type ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoTimeCodeMeta.get_info")]
+ public static unowned Gst.MetaInfo? time_code_meta_get_info ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoTransferFunction.decode", since = "1.20")]
+ public static double transfer_function_decode (Gst.Video.TransferFunction func, double val);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoTransferFunction.encode", since = "1.20")]
+ public static double transfer_function_encode (Gst.Video.TransferFunction func, double val);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoTransferFunction.from_iso", since = "1.18")]
+ public static Gst.Video.TransferFunction transfer_function_from_iso (uint value);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoTransferFunction.is_equivalent", since = "1.18")]
+ public static bool transfer_function_is_equivalent (Gst.Video.TransferFunction from_func, uint from_bpp, Gst.Video.TransferFunction to_func, uint to_bpp);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoTransferFunction.to_iso", since = "1.18")]
+ public static uint transfer_function_to_iso (Gst.Video.TransferFunction func);
+ }
+}
diff --git a/main/vapi/libgcrypt.vapi b/main/vapi/libgcrypt.vapi
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/main/vapi/libgcrypt.vapi
diff --git a/main/vapi/libomemo-c.vapi b/main/vapi/libomemo-c.vapi
new file mode 100644
index 00000000..8a2b17d3
--- /dev/null
+++ b/main/vapi/libomemo-c.vapi
@@ -0,0 +1,692 @@
+namespace Omemo {
+
+ [CCode (cname = "int", cprefix = "SG_ERR_", cheader_filename = "omemo/signal_protocol.h", has_type_id = false)]
+ public enum ErrorCode {
+ [CCode (cname = "SG_SUCCESS")]
+ SUCCESS,
+ NOMEM,
+ INVAL,
+ UNKNOWN,
+ DUPLICATE_MESSAGE,
+ INVALID_KEY,
+ INVALID_KEY_ID,
+ INVALID_MAC,
+ INVALID_MESSAGE,
+ INVALID_VERSION,
+ LEGACY_MESSAGE,
+ NO_SESSION,
+ STALE_KEY_EXCHANGE,
+ UNTRUSTED_IDENTITY,
+ VRF_SIG_VERIF_FAILED,
+ INVALID_PROTO_BUF,
+ FP_VERSION_MISMATCH,
+ FP_IDENT_MISMATCH;
+ }
+
+ [CCode (cname = "SG_ERR_MINIMUM", cheader_filename = "omemo/signal_protocol.h")]
+ public const int MIN_ERROR_CODE;
+
+ [CCode (cname = "int", cprefix = "SG_LOG_", cheader_filename = "omemo/signal_protocol.h", has_type_id = false)]
+ public enum LogLevel {
+ ERROR,
+ WARNING,
+ NOTICE,
+ INFO,
+ DEBUG
+ }
+
+ [CCode (cname = "signal_throw_gerror_by_code_", cheader_filename = "omemo/signal_protocol.h")]
+ private int throw_by_code(int code, string? message = null) throws GLib.Error {
+ if (code < 0 && code > MIN_ERROR_CODE) {
+ throw new GLib.Error(-1, code, "%s: %s", message ?? "libomemo-c error", ((ErrorCode)code).to_string());
+ }
+ return code;
+ }
+
+ [CCode (cname = "int", cprefix = "SG_CIPHER_", cheader_filename = "omemo/signal_protocol.h", has_type_id = false)]
+ public enum Cipher {
+ AES_CTR_NOPADDING,
+ AES_CBC_PKCS5,
+ AES_GCM_NOPADDING
+ }
+
+ [Compact]
+ [CCode (cname = "signal_type_base", ref_function="signal_type_ref_vapi", unref_function="signal_type_unref_vapi", cheader_filename="omemo/signal_protocol_types.h,src/crypto/omemo/helper.h")]
+ public class TypeBase {
+ }
+
+ [Compact]
+ [CCode (cname = "signal_buffer", cprefix = "signal_buffer_", cheader_filename = "omemo/signal_protocol_types.h", free_function="signal_buffer_free")]
+ public class Buffer {
+ [CCode (cname = "signal_buffer_alloc")]
+ public Buffer(size_t len);
+ [CCode (cname = "signal_buffer_create")]
+ public Buffer.from(uint8[] data);
+
+ public Buffer copy();
+ public Buffer append(uint8[] data);
+ public int compare(Buffer other);
+
+ public uint8 get(int i) { return data[i]; }
+ public void set(int i, uint8 val) { data[i] = val; }
+
+ public uint8[] data { get { int x = (int)len(); unowned uint8[] res = _data(); res.length = x; return res; } }
+
+ [CCode (array_length = false, cname = "signal_buffer_data")]
+ private unowned uint8[] _data();
+ private size_t len();
+ }
+
+ [Compact]
+ [CCode (cname = "signal_int_list", cheader_filename = "omemo/signal_protocol_types.h", free_function="signal_int_list_free")]
+ public class IntList {
+ [CCode (cname = "signal_int_list_alloc")]
+ public IntList();
+ [CCode (cname = "signal_int_list_push_back")]
+ public int add(int value);
+ public uint size { [CCode (cname = "signal_int_list_size")] get; }
+ [CCode (cname = "signal_int_list_at")]
+ public int get(uint index);
+ }
+
+ [Compact]
+ [CCode (cname = "session_builder", cprefix = "session_builder_", free_function="session_builder_free", cheader_filename = "omemo/session_builder.h")]
+ public class SessionBuilder {
+ [CCode (cname = "session_builder_process_pre_key_bundle")]
+ private int process_pre_key_bundle_(PreKeyBundle pre_key_bundle);
+ [CCode (cname = "session_builder_process_pre_key_bundle_")]
+ public void process_pre_key_bundle(PreKeyBundle pre_key_bundle) throws GLib.Error {
+ throw_by_code(process_pre_key_bundle_(pre_key_bundle));
+ }
+ public int version { get; set; }
+ }
+
+ [Compact]
+ [CCode (cname = "session_pre_key_bundle", cprefix = "session_pre_key_bundle_", cheader_filename = "omemo/session_pre_key.h")]
+ public class PreKeyBundle : TypeBase {
+ public static int create(out PreKeyBundle bundle, uint32 registration_id, int device_id, uint32 pre_key_id, ECPublicKey? pre_key_public,
+ uint32 signed_pre_key_id, ECPublicKey? signed_pre_key_public, uint8[]? signed_pre_key_signature, ECPublicKey? identity_key);
+ public uint32 registration_id { get; }
+ public int device_id { get; }
+ public uint32 pre_key_id { get; }
+ public ECPublicKey pre_key { owned get; }
+ public uint32 signed_pre_key_id { get; }
+ public ECPublicKey signed_pre_key { owned get; }
+ public Buffer signed_pre_key_signature { owned get; }
+ public ECPublicKey identity_key { owned get; }
+ }
+
+ [Compact]
+ [CCode (cname = "session_pre_key", cprefix = "session_pre_key_", cheader_filename = "omemo/session_pre_key.h,src/crypto/omemo/helper.h")]
+ public class PreKeyRecord : TypeBase {
+ public static int create(out PreKeyRecord pre_key, uint32 id, ECKeyPair key_pair);
+ //public static int deserialize(out PreKeyRecord pre_key, uint8[] data, NativeContext global_context);
+ [CCode (instance_pos = 2)]
+ public int serialze(out Buffer buffer);
+ public uint32 id { get; }
+ public ECKeyPair key_pair { get; }
+ }
+
+ [Compact]
+ [CCode (cname = "session_record", cprefix = "session_record_", cheader_filename = "omemo/signal_protocol_types.h")]
+ public class SessionRecord : TypeBase {
+ public SessionState state { get; }
+ public Buffer user_record { get; }
+ }
+
+ [Compact]
+ [CCode (cname = "session_state", cprefix = "session_state_", cheader_filename = "omemo/session_state.h")]
+ public class SessionState : TypeBase {
+ //public static int create(out SessionState state, NativeContext context);
+ //public static int deserialize(out SessionState state, uint8[] data, NativeContext context);
+ //public static int copy(out SessionState state, SessionState other_state, NativeContext context);
+ [CCode (instance_pos = 2)]
+ public int serialze(out Buffer buffer);
+
+ public uint32 session_version { get; set; }
+ public ECPublicKey local_identity_key { get; set; }
+ public ECPublicKey remote_identity_key { get; set; }
+ //public Ratchet.RootKey root_key { get; set; }
+ public uint32 previous_counter { get; set; }
+ public ECPublicKey sender_ratchet_key { get; }
+ public ECKeyPair sender_ratchet_key_pair { get; }
+ //public Ratchet.ChainKey sender_chain_key { get; set; }
+ public uint32 remote_registration_id { get; set; }
+ public uint32 local_registration_id { get; set; }
+ public int needs_refresh { get; set; }
+ public ECPublicKey alice_base_key { get; set; }
+ }
+
+ [Compact]
+ [CCode (cname = "session_signed_pre_key", cprefix = "session_signed_pre_key_", cheader_filename = "omemo/session_pre_key.h")]
+ public class SignedPreKeyRecord : TypeBase {
+ public static int create(out SignedPreKeyRecord pre_key, uint32 id, uint64 timestamp, ECKeyPair key_pair, uint8[] signature, uint8[]? signature_omemo);
+ [CCode (instance_pos = 2)]
+ public int serialize(out Buffer buffer);
+
+ public uint32 id { get; }
+ public uint64 timestamp { get; }
+ public ECKeyPair key_pair { get; }
+ public uint8[] signature { [CCode (cname = "session_signed_pre_key_get_signature_")] get { int x = (int)get_signature_len(); unowned uint8[] res = get_signature(); res.length = x; return res; } }
+ public uint8[] signature_omemo { [CCode (cname = "session_signed_pre_key_get_signature_omemo_")] get { int x = (int)get_signature_omemo_len(); unowned uint8[] res = get_signature_omemo(); res.length = x; return res; } }
+
+ [CCode (array_length = false, cname = "session_signed_pre_key_get_signature")]
+ private unowned uint8[] get_signature();
+ private size_t get_signature_len();
+ [CCode (array_length = false, cname = "session_signed_pre_key_get_signature_omemo")]
+ private unowned uint8[] get_signature_omemo();
+ private size_t get_signature_omemo_len();
+ }
+
+ /**
+ * Address of an OMEMO message recipient
+ */
+ [Compact]
+ [CCode (cname = "signal_protocol_address", cprefix = "signal_protocol_address_", cheader_filename = "omemo/signal_protocol.h,src/crypto/omemo/helper.h")]
+ public class Address {
+ public Address(string name, int32 device_id);
+ public int32 device_id { get; set; }
+ public string name { owned get; set; }
+ }
+
+ /**
+ * A representation of a (group + sender + device) tuple
+ */
+ [Compact]
+ [CCode (cname = "signal_protocol_sender_key_name")]
+ public class SenderKeyName {
+ [CCode (cname = "group_id", array_length_cname="group_id_len")]
+ private char* group_id_;
+ private size_t group_id_len;
+ public Address sender;
+ }
+
+ [Compact]
+ [CCode (cname = "ec_public_key", cprefix = "ec_public_key_", cheader_filename = "omemo/curve.h,src/crypto/omemo/helper.h")]
+ public class ECPublicKey : TypeBase {
+ [CCode (cname = "curve_generate_public_key")]
+ public static int generate(out ECPublicKey public_key, ECPrivateKey private_key);
+ [CCode (instance_pos = 1, cname = "ec_public_key_serialize")]
+ private int serialize_([CCode (pos = 0)] out Buffer buffer);
+ [CCode (cname = "ec_public_key_serialize_")]
+ public uint8[] serialize() {
+ Buffer buffer;
+ int code = serialize_(out buffer);
+ if (code < 0 && code > MIN_ERROR_CODE) {
+ // Can only throw for invalid arguments or out of memory.
+ GLib.assert_not_reached();
+ }
+ return buffer.data;
+ }
+ [CCode (instance_pos = 1, cname = "ec_public_key_serialize_omemo")]
+ private int serialize_omemo_([CCode (pos = 0)] out Buffer buffer);
+ [CCode (cname = "ec_public_key_serialize_omemo_")]
+ public uint8[] serialize_omemo() {
+ Buffer buffer;
+ int code = serialize_omemo_(out buffer);
+ if (code < 0 && code > MIN_ERROR_CODE) {
+ // Can only throw for invalid arguments or out of memory.
+ GLib.assert_not_reached();
+ }
+ return buffer.data;
+ }
+ public Buffer ed { owned get; }
+ public Buffer mont { owned get; }
+ public int compare(ECPublicKey other);
+ public int memcmp(ECPublicKey other);
+ }
+
+ [Compact]
+ [CCode (cname = "ec_private_key", cprefix = "ec_private_key_", cheader_filename = "omemo/curve.h,src/crypto/omemo/helper.h")]
+ public class ECPrivateKey : TypeBase {
+ [CCode (instance_pos = 1, cname = "ec_private_key_serialize")]
+ private int serialize_([CCode (pos = 0)] out Buffer buffer);
+ [CCode (cname = "ec_private_key_serialize_")]
+ public uint8[] serialize() throws GLib.Error {
+ Buffer buffer;
+ int code = serialize_(out buffer);
+ if (code < 0 && code > MIN_ERROR_CODE) {
+ // Can only throw for invalid arguments or out of memory.
+ GLib.assert_not_reached();
+ }
+ return buffer.data;
+ }
+ public int compare(ECPublicKey other);
+ }
+
+ [Compact]
+ [CCode (cname = "ec_key_pair", cprefix="ec_key_pair_", cheader_filename = "omemo/curve.h,src/crypto/omemo/helper.h")]
+ public class ECKeyPair : TypeBase {
+ public static int create(out ECKeyPair key_pair, ECPublicKey public_key, ECPrivateKey private_key);
+ public ECPublicKey public { get; }
+ public ECPrivateKey private { get; }
+ }
+
+ [CCode (cname = "ratchet_message_keys", cheader_filename = "omemo/ratchet.h")]
+ public class MessageKeys {
+ }
+
+ [Compact]
+ [CCode (cname = "ratchet_identity_key_pair", cprefix = "ratchet_identity_key_pair_", cheader_filename = "omemo/ratchet.h,src/crypto/omemo/helper.h")]
+ public class IdentityKeyPair : TypeBase {
+ public static int create(out IdentityKeyPair key_pair, ECPublicKey public_key, ECPrivateKey private_key);
+ public int serialze(out Buffer buffer);
+ public ECPublicKey public { get; }
+ public ECPrivateKey private { get; }
+ }
+
+ [Compact]
+ [CCode (cname = "ec_public_key_list")]
+ public class PublicKeyList {}
+
+ /**
+ * The main entry point for OMEMO encrypt/decrypt operations.
+ *
+ * Once a session has been established with session_builder,
+ * this class can be used for all encrypt/decrypt operations within
+ * that session.
+ */
+ [Compact]
+ [CCode (cname = "session_cipher", cprefix = "session_cipher_", cheader_filename = "omemo/session_cipher.h", free_function = "session_cipher_free")]
+ public class SessionCipher {
+ public void* user_data { get; set; }
+ public DecryptionCallback decryption_callback { set; }
+ [CCode (cname = "session_cipher_encrypt")]
+ private int encrypt_(uint8[] padded_message, out CiphertextMessage encrypted_message);
+ [CCode (cname = "session_cipher_encrypt_")]
+ public CiphertextMessage encrypt(uint8[] padded_message) throws GLib.Error {
+ CiphertextMessage res;
+ throw_by_code(encrypt_(padded_message, out res));
+ return res;
+ }
+ [CCode (cname = "session_cipher_decrypt_pre_key_signal_message")]
+ private int decrypt_pre_key_message_(PreKeyOmemoMessage ciphertext, void* decrypt_context, out Buffer plaintext);
+ [CCode (cname = "session_cipher_decrypt_pre_key_signal_message_")]
+ public uint8[] decrypt_pre_key_message(PreKeyOmemoMessage ciphertext, void* decrypt_context = null) throws GLib.Error {
+ Buffer res;
+ throw_by_code(decrypt_pre_key_message_(ciphertext, decrypt_context, out res));
+ return res.data;
+ }
+ [CCode (cname = "session_cipher_decrypt_signal_message")]
+ private int decrypt_message_(OmemoMessage ciphertext, void* decrypt_context, out Buffer plaintext);
+ [CCode (cname = "session_cipher_decrypt_signal_message_")]
+ public uint8[] decrypt_message(OmemoMessage ciphertext, void* decrypt_context = null) throws GLib.Error {
+ Buffer res;
+ throw_by_code(decrypt_message_(ciphertext, decrypt_context, out res));
+ return res.data;
+ }
+ public int get_remote_registration_id(out uint32 remote_id);
+ [CCode (cname = "session_cipher_get_session_version")]
+ private int get_session_version_(out uint32 version);
+ [CCode (cname = "session_cipher_get_session_version_")]
+ public uint32 get_session_version() throws GLib.Error {
+ uint32 res;
+ throw_by_code(get_session_version_(out res));
+ return res;
+ }
+ public uint32 version { get; set; }
+
+ [CCode (has_target = false)]
+ public delegate int DecryptionCallback(SessionCipher cipher, Buffer plaintext, void* decrypt_context);
+ }
+
+ [CCode (cname = "int", cheader_filename = "omemo/protocol.h", has_type_id = false)]
+ public enum CiphertextType {
+ [CCode (cname = "CIPHERTEXT_SIGNAL_TYPE")]
+ SIGNAL,
+ [CCode (cname = "CIPHERTEXT_PREKEY_TYPE")]
+ PREKEY,
+ [CCode (cname = "CIPHERTEXT_SENDERKEY_TYPE")]
+ SENDERKEY,
+ [CCode (cname = "CIPHERTEXT_SENDERKEY_DISTRIBUTION_TYPE")]
+ SENDERKEY_DISTRIBUTION
+ }
+
+ [Compact]
+ [CCode (cname = "ciphertext_message", cprefix = "ciphertext_message_", cheader_filename = "omemo/protocol.h,src/crypto/omemo/helper.h")]
+ public abstract class CiphertextMessage : TypeBase {
+ public CiphertextType type { get; }
+ [CCode (cname = "ciphertext_message_get_serialized")]
+ private unowned Buffer get_serialized_();
+ public uint8[] serialized { [CCode (cname = "ciphertext_message_get_serialized_")] get {
+ return get_serialized_().data;
+ }}
+ }
+ [Compact]
+ [CCode (cname = "signal_message", cprefix = "signal_message_", cheader_filename = "omemo/protocol.h,src/crypto/omemo/helper.h")]
+ public class OmemoMessage : CiphertextMessage {
+ public ECPublicKey sender_ratchet_key { get; }
+ public uint8 message_version { get; }
+ public uint32 counter { get; }
+ public Buffer body { get; }
+ //public int verify_mac(uint8 message_version, ECPublicKey sender_identity_key, ECPublicKey receiver_identity_key, uint8[] mac, NativeContext global_context);
+ public static int is_legacy(uint8[] data);
+ }
+ [Compact]
+ [CCode (cname = "pre_key_signal_message", cprefix = "pre_key_signal_message_", cheader_filename = "omemo/protocol.h,src/crypto/omemo/helper.h")]
+ public class PreKeyOmemoMessage : CiphertextMessage {
+ public uint8 message_version { get; }
+ public ECPublicKey identity_key { get; }
+ public uint32 registration_id { get; }
+ public uint32 pre_key_id { get; }
+ public uint32 signed_pre_key_id { get; }
+ public ECPublicKey base_key { get; }
+ public OmemoMessage message { get; }
+ }
+ [Compact]
+ [CCode (cname = "sender_key_message", cprefix = "sender_key_message_", cheader_filename = "omemo/protocol.h,src/crypto/omemo/helper.h")]
+ public class SenderKeyMessage : CiphertextMessage {
+ public uint32 key_id { get; }
+ public uint32 iteration { get; }
+ public Buffer ciphertext { get; }
+ }
+ [Compact]
+ [CCode (cname = "sender_key_distribution_message", cprefix = "sender_key_distribution_message_", cheader_filename = "omemo/protocol.h,src/crypto/omemo/helper.h")]
+ public class SenderKeyDistributionMessage : CiphertextMessage {
+ public uint32 id { get; }
+ public uint32 iteration { get; }
+ public Buffer chain_key { get; }
+ public ECPublicKey signature_key { get; }
+ }
+
+ [CCode (cname = "signal_vala_encrypt", cheader_filename = "src/crypto/omemo/helper.h")]
+ private static int aes_encrypt_(out Buffer output, int cipher, uint8[] key, uint8[] iv, uint8[] plaintext, void *user_data);
+
+ [CCode (cname = "signal_vala_encrypt_")]
+ public uint8[] aes_encrypt(int cipher, uint8[] key, uint8[] iv, uint8[] plaintext) throws GLib.Error {
+ Buffer buf;
+ throw_by_code(aes_encrypt_(out buf, cipher, key, iv, plaintext, null));
+ return buf.data;
+ }
+
+ [CCode (cname = "signal_vala_decrypt", cheader_filename = "src/crypto/omemo/helper.h")]
+ private static int aes_decrypt_(out Buffer output, int cipher, uint8[] key, uint8[] iv, uint8[] ciphertext, void *user_data);
+
+ [CCode (cname = "signal_vala_decrypt_")]
+ public uint8[] aes_decrypt(int cipher, uint8[] key, uint8[] iv, uint8[] ciphertext) throws GLib.Error {
+ Buffer buf;
+ throw_by_code(aes_decrypt_(out buf, cipher, key, iv, ciphertext, null));
+ return buf.data;
+ }
+
+ [Compact]
+ [CCode (cname = "signal_context", cprefix="signal_context_", free_function="signal_context_destroy", cheader_filename = "omemo/signal_protocol.h")]
+ public class NativeContext {
+ public static int create(out NativeContext context, void* user_data);
+ public int set_crypto_provider(NativeCryptoProvider crypto_provider);
+ public int set_locking_functions(LockingFunc lock, LockingFunc unlock);
+ public int set_log_function(LogFunc log);
+ }
+ [CCode (has_target = false)]
+ public delegate void LockingFunc(void* user_data);
+ [CCode (has_target = false)]
+ public delegate void LogFunc(LogLevel level, string message, size_t len, void* user_data);
+
+ [Compact]
+ [CCode (cname = "signal_crypto_provider", cheader_filename = "omemo/signal_protocol.h")]
+ public struct NativeCryptoProvider {
+ public RandomFunc random_func;
+ public HmacSha256Init hmac_sha256_init_func;
+ public HmacSha256Update hmac_sha256_update_func;
+ public HmacSha256Final hmac_sha256_final_func;
+ public HmacSha256Cleanup hmac_sha256_cleanup_func;
+ public Sha512DigestInit sha512_digest_init_func;
+ public Sha512DigestUpdate sha512_digest_update_func;
+ public Sha512DigestFinal sha512_digest_final_func;
+ public Sha512DigestCleanup sha512_digest_cleanup_func;
+ public CryptFunc encrypt_func;
+ public CryptFunc decrypt_func;
+ public void* user_data;
+ }
+ [CCode (has_target = false)]
+ public delegate int RandomFunc(uint8[] data, void* user_data);
+ [CCode (has_target = false)]
+ public delegate int HmacSha256Init(out void* hmac_context, uint8[] key, void* user_data);
+ [CCode (has_target = false)]
+ public delegate int HmacSha256Update(void* hmac_context, uint8[] data, void* user_data);
+ [CCode (has_target = false)]
+ public delegate int HmacSha256Final(void* hmac_context, out Buffer buffer, void* user_data);
+ [CCode (has_target = false)]
+ public delegate int HmacSha256Cleanup(void* hmac_context, void* user_data);
+ [CCode (has_target = false)]
+ public delegate int Sha512DigestInit(out void* digest_context, void* user_data);
+ [CCode (has_target = false)]
+ public delegate int Sha512DigestUpdate(void* digest_context, uint8[] data, void* user_data);
+ [CCode (has_target = false)]
+ public delegate int Sha512DigestFinal(void* digest_context, out Buffer buffer, void* user_data);
+ [CCode (has_target = false)]
+ public delegate int Sha512DigestCleanup(void* digest_context, void* user_data);
+ [CCode (has_target = false)]
+ public delegate int CryptFunc(out Buffer output, Cipher cipher, uint8[] key, uint8[] iv, uint8[] content, void* user_data);
+
+ [Compact]
+ [CCode (cname = "signal_protocol_session_store", cheader_filename = "omemo/signal_protocol.h")]
+ public struct NativeSessionStore {
+ public LoadSessionFunc load_session_func;
+ public GetSubDeviceSessionsFunc get_sub_device_sessions_func;
+ public StoreSessionFunc store_session_func;
+ public ContainsSessionFunc contains_session_func;
+ public DeleteSessionFunc delete_session_func;
+ public DeleteAllSessionsFunc delete_all_sessions_func;
+ public DestroyFunc destroy_func;
+ public void* user_data;
+ }
+ [CCode (has_target = false)]
+ public delegate int LoadSessionFunc(out Buffer record, out Buffer user_record, [CCode (type = "const signal_protocol_address *")] Address address, void* user_data);
+ [CCode (has_target = false)]
+ public delegate int GetSubDeviceSessionsFunc(out IntList sessions, [CCode (array_length_type = "size_t", type = "const char *")] char[] name, void* user_data);
+ [CCode (has_target = false)]
+ public delegate int StoreSessionFunc([CCode (type = "const signal_protocol_address *")] Address address, [CCode (array_length_type = "size_t")] uint8[] record, [CCode (array_length_type = "size_t")] uint8[] user_record, void* user_data);
+ [CCode (has_target = false)]
+ public delegate int ContainsSessionFunc([CCode (type = "const signal_protocol_address *")] Address address, void* user_data);
+ [CCode (has_target = false)]
+ public delegate int DeleteSessionFunc([CCode (type = "const signal_protocol_address *")] Address address, void* user_data);
+ [CCode (has_target = false)]
+ public delegate int DeleteAllSessionsFunc([CCode (array_length_type = "size_t", type = "const char *")] char[] name, void* user_data);
+
+ [Compact]
+ [CCode (cname = "signal_protocol_identity_key_store", cheader_filename = "omemo/signal_protocol.h")]
+ public struct NativeIdentityKeyStore {
+ GetIdentityKeyPairFunc get_identity_key_pair;
+ GetLocalRegistrationIdFunc get_local_registration_id;
+ SaveIdentityFunc save_identity;
+ IsTrustedIdentityFunc is_trusted_identity;
+ DestroyFunc destroy_func;
+ void* user_data;
+ }
+ [CCode (has_target = false)]
+ public delegate int GetIdentityKeyPairFunc(out Buffer public_data, out Buffer private_data, void* user_data);
+ [CCode (has_target = false)]
+ public delegate int GetLocalRegistrationIdFunc(void* user_data, out uint32 registration_id);
+ [CCode (has_target = false)]
+ public delegate int SaveIdentityFunc([CCode (type = "const signal_protocol_address *")] Address address, [CCode (array_length_type = "size_t")] uint8[] key, void* user_data);
+ [CCode (has_target = false)]
+ public delegate int IsTrustedIdentityFunc([CCode (type = "const signal_protocol_address *")] Address address, [CCode (array_length_type = "size_t")] uint8[] key, void* user_data);
+
+ [Compact]
+ [CCode (cname = "signal_protocol_pre_key_store", cheader_filename = "omemo/signal_protocol.h")]
+ public struct NativePreKeyStore {
+ LoadPreKeyFunc load_pre_key;
+ StorePreKeyFunc store_pre_key;
+ ContainsPreKeyFunc contains_pre_key;
+ RemovePreKeyFunc remove_pre_key;
+ DestroyFunc destroy_func;
+ void* user_data;
+ }
+ [CCode (has_target = false)]
+ public delegate int LoadPreKeyFunc(out Buffer record, uint32 pre_key_id, void* user_data);
+ [CCode (has_target = false)]
+ public delegate int StorePreKeyFunc(uint32 pre_key_id, [CCode (array_length_type = "size_t")] uint8[] record, void* user_data);
+ [CCode (has_target = false)]
+ public delegate int ContainsPreKeyFunc(uint32 pre_key_id, void* user_data);
+ [CCode (has_target = false)]
+ public delegate int RemovePreKeyFunc(uint32 pre_key_id, void* user_data);
+
+
+ [Compact]
+ [CCode (cname = "signal_protocol_signed_pre_key_store", cheader_filename = "omemo/signal_protocol.h")]
+ public struct NativeSignedPreKeyStore {
+ LoadPreKeyFunc load_signed_pre_key;
+ StorePreKeyFunc store_signed_pre_key;
+ ContainsPreKeyFunc contains_signed_pre_key;
+ RemovePreKeyFunc remove_signed_pre_key;
+ DestroyFunc destroy_func;
+ void* user_data;
+ }
+
+
+ [Compact]
+ [CCode (cname = "signal_protocol_sender_key_store")]
+ public struct NativeSenderKeyStore {
+ StoreSenderKeyFunc store_sender_key;
+ LoadSenderKeyFunc load_sender_key;
+ DestroyFunc destroy_func;
+ void* user_data;
+ }
+ [CCode (has_target = false)]
+ public delegate int StoreSenderKeyFunc(SenderKeyName sender_key_name, [CCode (array_length_type = "size_t")] uint8[] record, [CCode (array_length_type = "size_t")] uint8[] user_record, void* user_data);
+ [CCode (has_target = false)]
+ public delegate int LoadSenderKeyFunc(out Buffer record, out Buffer user_record, SenderKeyName sender_key_name, void* user_data);
+
+ [CCode (has_target = false)]
+ public delegate void DestroyFunc(void* user_data);
+
+ [Compact]
+ [CCode (cname = "signal_protocol_store_context", cprefix = "signal_protocol_store_context_", free_function="signal_protocol_store_context_destroy", cheader_filename = "omemo/signal_protocol.h")]
+ public class NativeStoreContext {
+ public static int create(out NativeStoreContext context, NativeContext global_context);
+ public int set_session_store(NativeSessionStore store);
+ public int set_pre_key_store(NativePreKeyStore store);
+ public int set_signed_pre_key_store(NativeSignedPreKeyStore store);
+ public int set_identity_key_store(NativeIdentityKeyStore store);
+ public int set_sender_key_store(NativeSenderKeyStore store);
+ }
+
+
+ [CCode (cheader_filename = "omemo/signal_protocol.h")]
+ namespace Protocol {
+
+ /**
+ * Interface to the pre-key store.
+ * These functions will use the callbacks in the provided
+ * signal_protocol_store_context instance and operate in terms of higher level
+ * library data structures.
+ */
+ [CCode (lower_case_cprefix = "signal_protocol_pre_key_")]
+ namespace PreKey {
+ public int load_key(NativeStoreContext context, out PreKeyRecord pre_key, uint32 pre_key_id);
+ public int store_key(NativeStoreContext context, PreKeyRecord pre_key);
+ public int contains_key(NativeStoreContext context, uint32 pre_key_id);
+ public int remove_key(NativeStoreContext context, uint32 pre_key_id);
+ }
+
+ [CCode (lower_case_cprefix = "signal_protocol_signed_pre_key_")]
+ namespace SignedPreKey {
+ public int load_key(NativeStoreContext context, out SignedPreKeyRecord pre_key, uint32 pre_key_id);
+ public int store_key(NativeStoreContext context, SignedPreKeyRecord pre_key);
+ public int contains_key(NativeStoreContext context, uint32 pre_key_id);
+ public int remove_key(NativeStoreContext context, uint32 pre_key_id);
+ }
+
+ /**
+ * Interface to the session store.
+ * These functions will use the callbacks in the provided
+ * signal_protocol_store_context instance and operate in terms of higher level
+ * library data structures.
+ */
+ [CCode (lower_case_cprefix = "signal_protocol_session_")]
+ namespace Session {
+ public int load_session(NativeStoreContext context, out SessionRecord record, Address address, int32 version = 3);
+ public int get_sub_device_sessions(NativeStoreContext context, out IntList sessions, char[] name);
+ public int store_session(NativeStoreContext context, Address address, SessionRecord record);
+ public int contains_session(NativeStoreContext context, Address address);
+ public int delete_session(NativeStoreContext context, Address address);
+ public int delete_all_sessions(NativeStoreContext context, char[] name);
+ }
+
+ [CCode (lower_case_cprefix = "signal_protocol_identity_")]
+ namespace Identity {
+ public int get_key_pair(NativeStoreContext store_context, out IdentityKeyPair key_pair);
+ public int get_local_registration_id(NativeStoreContext store_context, out uint32 registration_id);
+ public int save_identity(NativeStoreContext store_context, Address address, ECPublicKey identity_key);
+ public int is_trusted_identity(NativeStoreContext store_context, Address address, ECPublicKey identity_key);
+ }
+
+ [CCode (cheader_filename = "omemo/key_helper.h", lower_case_cprefix = "signal_protocol_key_helper_")]
+ namespace KeyHelper {
+ [Compact]
+ [CCode (cname = "signal_protocol_key_helper_pre_key_list_node", cprefix = "signal_protocol_key_helper_key_list_", free_function="signal_protocol_key_helper_key_list_free")]
+ public class PreKeyListNode {
+ public PreKeyRecord element();
+ public PreKeyListNode next();
+ }
+
+ public int generate_identity_key_pair(out IdentityKeyPair key_pair, NativeContext global_context);
+ public int generate_registration_id(out int32 registration_id, int extended_range, NativeContext global_context);
+ public int get_random_sequence(out int value, int max, NativeContext global_context);
+ public int generate_pre_keys(out PreKeyListNode head, uint start, uint count, NativeContext global_context);
+ public int generate_last_resort_pre_key(out PreKeyRecord pre_key, NativeContext global_context);
+ public int generate_signed_pre_key(out SignedPreKeyRecord signed_pre_key, IdentityKeyPair identity_key_pair, uint32 signed_pre_key_id, uint64 timestamp, NativeContext global_context);
+ public int upgrade_signed_pre_key(ref SignedPreKeyRecord signed_pre_key, IdentityKeyPair identity_key_pair, NativeContext global_context);
+ public int generate_sender_signing_key(out ECKeyPair key_pair, NativeContext global_context);
+ public int generate_sender_key(out Buffer key_buffer, NativeContext global_context);
+ public int generate_sender_key_id(out int32 key_id, NativeContext global_context);
+ }
+ }
+
+ [CCode (cheader_filename = "omemo/curve.h")]
+ namespace Curve {
+ [CCode (cname = "curve_calculate_agreement")]
+ public int calculate_agreement([CCode (array_length = false)] out uint8[] shared_key_data, ECPublicKey public_key, ECPrivateKey private_key);
+ [CCode (cname = "curve_calculate_signature")]
+ public int calculate_signature(NativeContext context, out Buffer signature, ECPrivateKey signing_key, uint8[] message);
+ [CCode (cname = "curve_verify_signature")]
+ public int verify_signature(ECPublicKey signing_key, uint8[] message, uint8[] signature);
+ }
+
+ [CCode (cname = "session_builder_create", cheader_filename = "omemo/session_builder.h")]
+ public static int session_builder_create(out SessionBuilder builder, NativeStoreContext store, Address remote_address, NativeContext global_context);
+ [CCode (cname = "session_cipher_create", cheader_filename = "omemo/session_cipher.h")]
+ public static int session_cipher_create(out SessionCipher cipher, NativeStoreContext store, Address remote_address, NativeContext global_context);
+ [CCode (cname = "pre_key_signal_message_deserialize", cheader_filename = "omemo/protocol.h")]
+ public static int pre_key_message_deserialize(out PreKeyOmemoMessage message, uint8[] data, NativeContext global_context);
+ [CCode (cname = "pre_key_signal_message_deserialize_omemo", cheader_filename = "omemo/protocol.h")]
+ public static int pre_key_message_deserialize_omemo(out PreKeyOmemoMessage message, uint8[] data, uint32 remote_registration_id, NativeContext global_context);
+ [CCode (cname = "pre_key_signal_message_copy", cheader_filename = "omemo/protocol.h")]
+ public static int pre_key_message_copy(out PreKeyOmemoMessage message, PreKeyOmemoMessage other_message, NativeContext global_context);
+ [CCode (cname = "signal_message_create", cheader_filename = "omemo/protocol.h")]
+ public static int message_create(out OmemoMessage message, uint8 message_version, uint8[] mac_key, ECPublicKey sender_ratchet_key, uint32 counter, uint32 previous_counter, uint8[] ciphertext, ECPublicKey sender_identity_key, ECPublicKey receiver_identity_key, NativeContext global_context);
+ [CCode (cname = "signal_message_deserialize", cheader_filename = "omemo/protocol.h")]
+ public static int message_deserialize(out OmemoMessage message, uint8[] data, NativeContext global_context);
+ [CCode (cname = "signal_message_deserialize_omemo", cheader_filename = "omemo/protocol.h")]
+ public static int message_deserialize_omemo(out OmemoMessage message, uint8[] data, NativeContext global_context);
+ [CCode (cname = "signal_message_copy", cheader_filename = "omemo/protocol.h")]
+ public static int message_copy(out OmemoMessage message, OmemoMessage other_message, NativeContext global_context);
+ [CCode (cname = "curve_generate_key_pair", cheader_filename = "omemo/curve.h")]
+ public static int curve_generate_key_pair(NativeContext context, out ECKeyPair key_pair);
+ [CCode (cname = "curve_decode_private_point", cheader_filename = "omemo/curve.h")]
+ public static int curve_decode_private_point(out ECPrivateKey public_key, uint8[] key, NativeContext global_context);
+ [CCode (cname = "curve_decode_point", cheader_filename = "omemo/curve.h")]
+ public static int curve_decode_point(out ECPublicKey public_key, uint8[] key, NativeContext global_context);
+ [CCode (cname = "curve_decode_point_ed", cheader_filename = "omemo/curve.h")]
+ public static int curve_decode_point_ed(out ECPublicKey public_key, uint8[] key, NativeContext global_context);
+ [CCode (cname = "curve_decode_point_mont", cheader_filename = "omemo/curve.h")]
+ public static int curve_decode_point_mont(out ECPublicKey public_key, uint8[] key, NativeContext global_context);
+ [CCode (cname = "curve_generate_private_key", cheader_filename = "omemo/curve.h")]
+ public static int curve_generate_private_key(NativeContext context, out ECPrivateKey private_key);
+ [CCode (cname = "ratchet_identity_key_pair_deserialize", cheader_filename = "omemo/ratchet.h")]
+ public static int ratchet_identity_key_pair_deserialize(out IdentityKeyPair key_pair, uint8[] data, NativeContext global_context);
+ [CCode (cname = "session_signed_pre_key_deserialize", cheader_filename = "omemo/signed_pre_key.h")]
+ public static int session_signed_pre_key_deserialize(out SignedPreKeyRecord pre_key, uint8[] data, NativeContext global_context);
+
+ [Compact]
+ [CCode (cname = "hkdf_context", cprefix = "hkdf_", free_function = "hkdf_destroy", cheader_filename = "omemo/hkdf.h")]
+ public class NativeHkdfContext {
+ public static int create(out NativeHkdfContext context, int message_version, NativeContext global_context);
+ public int compare(NativeHkdfContext other);
+ public ssize_t derive_secrets([CCode (array_length = false)] out uint8[] output, uint8[] input_key_material, uint8[] salt, uint8[] info, size_t output_len);
+ }
+
+ [CCode (cname = "setup_signal_vala_crypto_provider", cheader_filename = "src/crypto/omemo/helper.h")]
+ public static void setup_crypto_provider(NativeContext context);
+}
diff --git a/main/vapi/libqrencode.vapi b/main/vapi/libqrencode.vapi
new file mode 100644
index 00000000..360f74a5
--- /dev/null
+++ b/main/vapi/libqrencode.vapi
@@ -0,0 +1,81 @@
+[CCode (cheader_filename = "qrencode.h")]
+namespace Qrencode {
+
+ [CCode (cname = "QRecLevel", cprefix = "QR_ECLEVEL_")]
+ public enum ECLevel {
+ L,
+ M,
+ Q,
+ H
+ }
+
+ [CCode (cname = "QRencodeMode", cprefix = "QR_MODE_")]
+ public enum EncodeMode {
+ NUL,
+ NUM,
+ AN,
+ [CCode (cname = "QR_MODE_8")]
+ EIGHT_BIT,
+ KANJI,
+ STRUCTURE,
+ ECI,
+ FNC1FIRST,
+ FNC1SECOND
+ }
+
+ [CCode (cname = "QRcode", free_function = "QRcode_free", has_type_id = false)]
+ [Compact]
+ public class QRcode {
+ private int version;
+ private int width;
+ [CCode (array_length = false)]
+ private uint8[] data;
+
+ [CCode (cname = "QRcode_encodeString")]
+ public QRcode (string str, int version = 0, ECLevel level = ECLevel.L, EncodeMode hint = EncodeMode.EIGHT_BIT, bool casesensitive = true);
+
+ public Gdk.Paintable to_paintable(int module_size) {
+ GLib.assert(module_size > 0);
+ var dst_width = width*module_size;
+ var dst_data = new uint8[dst_width*dst_width*3];
+ expand_and_upsample(data,width,width, dst_data,dst_width,dst_width);
+ return new Gdk.MemoryTexture(dst_width, dst_width, Gdk.MemoryFormat.R8G8B8,
+ new GLib.Bytes.take((owned) dst_data), dst_width*3);
+
+ }
+
+ /** Does 2D nearest-neighbor upsampling of an array of single-byte
+ * samples, while expanding the least significant bit of each sample
+ * to three 0-or-255 bytes.
+ */
+ private void expand_and_upsample(
+ uint8[] src, uint src_w, uint src_h,
+ uint8[] dst, uint dst_w, uint dst_h) {
+ GLib.assert(dst_w % src_w == 0);
+ GLib.assert(dst_h % src_h == 0);
+ var scale_x = dst_w/src_w,
+ scale_y = dst_h/src_h;
+ /* Doing the iteration in the order of destination samples for
+ * improved cache-friendliness (dst is 48 times larger than src in
+ * the typical case of scaling by 4x4).
+ * The choice of multiple nested loops over a single one is for
+ * avoiding a ton of divisions by non-constants.
+ */
+ for (uint src_y = 0; src_y < src_h; ++src_y) {
+ for (uint repeat_y = 0; repeat_y < scale_y; ++repeat_y) {
+ var dst_y = src_y*scale_y + repeat_y;
+ for (uint src_x = 0; src_x < src_w; ++src_x) {
+ uint8 value = (src[src_y*src_w + src_x] & 1)==1 ? 0:255;
+ for (uint repeat_x = 0; repeat_x < scale_x; ++repeat_x){
+ var dst_x = src_x*scale_x + repeat_x;
+ var dst_idx = dst_y*dst_w + dst_x;
+ dst[dst_idx*3+0] = value;
+ dst[dst_idx*3+1] = value;
+ dst[dst_idx*3+2] = value;
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/main/vapi/webrtc-audio-processing.vapi b/main/vapi/webrtc-audio-processing.vapi
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/main/vapi/webrtc-audio-processing.vapi