Commit graph

446 commits

Author SHA1 Message Date
Maxim Logaev 6d8adf739c Added array_length=false attribute for subkeys and uids
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
2024-04-22 15:31:23 +03:00
Igor Sharonov 2eb0052663 windows: Enable wasapi on windows 2024-04-19 11:28:06 +03:00
Igor Sharonov c438592ab0 webrtc: Replace dsp and echoprobe by gst webrtcdsp and webrtcechoprobe 2024-04-19 11:28:06 +03:00
Vadim Lomovtsev 8f4d78910c
OpenGPG plugin : Fixed don't list expired/revoked GPG key (#57)
This commit is to implement follwoing changes:
 - closes #91;
 - Mention that GPG key may be expired or revoked:
   in the account dialog if the number of OpenPGP keys found is 0,
   the label also notes that a key may have been revoked or expired;
 - blocks input in chat box if key is use is revoked or expired;

(cherry picked from commit 2f3ddad1e87f99cdda9d42dbabc528c2b29c0476)
Signed-off-by: Vadim Lomovtsev <jelezny@gmail.com>
2024-04-17 15:33:35 +03:00
Igor Sharonov 0ca02a72f4 Add explicit audio converters to voice processor and echo probe
The VoiceProcessor and EchoProbe plugins have fixed caps: rate=48000,channels=1.
There is no such cap on windows, hence append explicit resampler and converter.
2024-04-17 14:49:24 +03:00
Xavier Del Campo Romero 595902355e Show file upload/download progress
Fixes upstream issue #1350.

Notes:

Image uploads were incorrectly handled by Dino, as they were always
reported as completed even if they were not, maybe so as to show the
image preview from the start. Now, Dino shows the upload progress for
all file types, and the image is only shown when completed.

(cherry picked from commit 700708b7e10ce1110528a2b83b854fae3f6be95e)
2024-04-16 18:21:42 +03:00
Konstantin Kuznetsov 3219b5eeb9 Choose audio caps based on the highest rate 2024-04-16 18:12:06 +03:00
Stanislav Malishevskiy 77e23c41e1 Fix issue with sound without webrtc library 2024-04-15 15:30:18 +03:00
Igor Sharonov c1d2e3647b meson: Support all tests from cmake
Unified test launch for both meson and cmake: make/ninja test.
Support tests for cmake through ctest.
Enable jid test in libdino.
Enable tests for win64 CI/CD.
2024-04-09 13:20:11 +03:00
Igor Sharonov a74f2d0c82 meson: Add phone-ringer plugin 2024-04-08 16:19:59 +03:00
Igor Sharonov c5587fe3b3 meson: Fix plugindir search path 2024-04-05 17:08:34 +03:00
Igor Sharonov 583a381c74 Support libsoup-2.4 in meson 2024-04-02 18:09:01 +03:00
Vadim Lomovtsev 4912be6cff plugins/windows-notification: add meson build support
Signed-off-by: Vadim Lomovtsev <jelezny@gmail.com>
2024-04-01 16:38:27 +03:00
Vadim Lomovtsev 66403012dc add win32-fonts to meson-based windows build
This commit is to enable plugin to be build with meson for Windows
(mingw64) build.

Signed-off-by: Vadim Lomovtsev <jelezny@gmail.com>
2024-04-01 16:38:27 +03:00
hrxi e4bd6c1ce4 Allow using OpenSSL instead of GnuTLS
In preparation of Windows support.
2024-04-01 16:38:27 +03:00
Konstantin Kuznetsov 7976859639 experimental: display online/offline status for conversation members 2024-03-29 19:13:18 +03:00
emil 78d8dabf39 Add gap to ringing and dialing sounds 2024-03-19 12:15:52 +03:00
emil 39d1a29ced Phone ringing and dialing
Corrections have also been made for Windows (by Maxim Logaev)

Co-authored-by: emil <emil@dekeyser.xyz>
Co-authored-by: Maxim Logaev <maxlogaev@proton.me>
2024-03-19 12:02:40 +03:00
emil 45b300d2a3 Remove Gst.deinit (proactive bug fix)
Gst.deinit caused the Dino proces to linger in the background when I
tried using Gst in the phone ringer plugin. My reasoning for leaving it
out even though Gst is not in use anymore in the ringer plugin is that
this is a nasty bug that might crop up again in the future when someone
tries to do anything else at all with Gst.

I did the following things:

- checked this https://gstreamer.freedesktop.org/documentation/gstreamer/gst.html#gst_deinit
- tested that Dino works without the Gst.deinit
- tried looking for a specific reason for the deinit with git log -L 276,+10 -- plugins/rtp/src/plugin.vala

I didn't find anything so this made me conclude that it is better to
leave it out.
2024-03-19 11:49:18 +03:00
Maxim Logaev 6fd8f9a45c
Added full Windows support (#8)
* Windows compatibility Tweaks

* Add experimental windows installer

This nsis script should create a windows installer.
Although the installer worked for the first tests
you should handle it with care and consider it
highly experimental

* Prepare signing

Collected some infos regarding signing
a windows build.

* Revert "Prepare signing"

I copied the files into the wrong folder…
… it's late, sorry.

This reverts commit 7d6b9e7f4c.

* Prepare signing

Collected some infos regarding signing
a windows build.

* Fix typo in Dino slogan

* Add license to windows installer

* Add startmenu folder with several items

Added a startmenu folder with the following items:
* Dino launcher
* License
* Link to Dino website
* Uninstaller

* Prevent duplicated DLLs

* Add dino logo again

The dino logo for the startmenu was accidentally
no longer included since the last commit.

* Simplify installer script

The current build script already places the files in the right
folder structure so the installer doesn't have to do it itself

* Add german language.

* Add option to install without OpenPGP plugin

* Removed compenent section

This section was only introduced to be able to
disable the OpenPGP plugin as Dino often crashed
on Windows if OpenPGP was not installed but the
plugin enabled.

This is no more necessary as the OpenPGP plugin
is now disabled by default.

* Remove installation type "OpenPGP" support

This is no longer needed (see previous commit)
but was forgotten to remove in the previous
commit.

* Add compression to achieve smaller installer size.

* Add AppID (untested).

* Fix syntax error for setting AppID.

* Windows compatibility Tweaks

* fix build on newest MSYS2

* Do not search for the built-in libraries when compiling with MINGW

* Added _WIN32 define to VALAC on Windows

* Add missing _WIN32

* Add support for OpenPGP on Windows

* Use ShellExecute instead of AppInfo to open files on Windows

* Use slight larger font on Windows so it matches Linux style

Also fixes some fuzzy fonts.

* Fixed some Windows not appearing when opening file

* Set alternate file stream for downloaded files.

* Added information and Dino icon to Windows executable

* Set Windows executable version from PROJECT_VERSION

* Add WIN32 fonts as a plugin

* Every call to CoInitialize() must be balanced
with a call to CoUninitialize()

* Add --export-all-symbols to Windows compilation

* Add implicit link directories to package HINT path on MingW

Instead of blacklisting those libraries

* Do not hardcode GPG path on Windows

* Export all plugin symbols on Windows

* Use Dino.Util.get_content_type also on preview

* Allow 32-bit linking

Win32 apis are __stdcall

* Use last_index_of instead of index_of

* Initial notification support

* Refactor windows-notification plugin

* Clean up

* Use code from Dino.Ui.Util

* Convert C code to Vala

* Add callback support

* Allow null image_path

* Use dynamic linking instead of runtime loading

Also made me notice that the signature of the function with the callback was wrong. Oops.

* Added 32-bit wintoast linker library

* Use VAPI and generate template in-app

* Initial plugin using new notification provider

* Add support for custom actions on notification

* Add notification retraction

* Use list with all notifications

* Rename field

* Fix muc invite and voide request not working

* Do not use GLib to open links in messages

Use ShellExecute

* Add MIT licensed winrt headers

* Initial code for using winrt headers

* Initial callback support

* Initial GObject wrapper for WinRT notifications

Still missing a lot of stuff

* Initial code to allow buttons and text

* Use string_view

* Increase ref on event token

* Add toastnotifier

* Fix string conversion

* Actions can stack

* Remove unity compilation unit

* No need to enable coroutines

* Fields must be created in the private struct

Also change unordered_map to list, we do not need hashing and stuff.

* Add failed and dimissed actions

* Cleanup dismissed actions on toast notification finalizer

* Add template type enum

* Rename enums to better match what Vala expects

* Rename plugin vala file

* Add template getter

* Initial experiments with notification XML building

* Anitial builder

* Initial notification provider using WinRT

Crashes when activating actions, might be related to threads.

* Delegate `activate_action` to UI thread

* Fixed crash with multiple notifications

Sometimes an invalid function pointer was called with an invalid context

* Add comment to builder

* Use async

* Use g_new0 and g_free to generate raw strings

* Valac think that getters are always owned by the struct

* introduce try_invoke -- a logging exception catcher

* stop exceptions from crossing ABI boundary in a few places

* mark exception-safe C entry points as such

* clarify some entry points' names

* make GetCurrentModulePath and GetShortcutPath throw win32 errors

* clarify GetCurrentModulePath's name

* generalize GetShortcutPath into GetEnv

* make GetEnv more robust and not limit length of variables

* change some local functions' signatures

* constify all the things

* rewrite shortcut management code with RAII, error logging and exceptions

It actually works now.

* add restoration of shortcut's target path

* switch to runtime loading of PropVariantToStringAlloc

Now it really should work.

* Add ginvoke to CMakeLists

* Removed unused library on linker

It is loaded dynamically

* Add README.md to Windows notification plugin

* Fix notifications not hiding

* unimplement accidentally implemented wide string overloads of describe_argument

* work around GetEnvironmentVariable not resetting last error

* handle exe paths longer than 259 chars

* move some whitespace around

* use lower-case 0x prefix for hresult code formatting everywhere

* remove an unused include

* make meta-error messages more precise

* handle empty hresult_error message specially

* handle theoretical future failures of wsview_to_char

* fix UB in glib::describe_arguments called with no arguments

Makes failure logging of nullary invokables non-crashy.

* make glib::impl::varstring less explosive

* fiddle with punctuation

* add nullary version of g_try_invoke macro

* generalize glib::try_invoke to any return-by-value type and void

* protect GetTemplateContent callers from exceptions

* rewrite InitApartment and protect callers from (the rest of the) exceptions

Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.

* handle empty menu-relative shortcut paths

* move module loading functions out of shortcutcreator.cpp

* work around a (pedantic) format specifier warning

* silence enum stringification warnings by first casting to underlying types

* fix / work around uninitialized fields warnings

* don't use FALSE as a null pointer constant

* replace C-style concurrent initialization of statics

C++ statics are thread-safe as is and are usually implemented more
efficiently. Besides, `volatile` is likely misused here anyway.

* reflow/respace

* stop checking for empty AUMIDs

The downstream code handles them just fine.

* log SetCurrentProcessExplicitAppUserModelID errors

* remove the no-longer-needed -municode compile option

* replace lists with vectors

* init `Callback` completely always

The `token` pointer was left dangerously uninitialized after construction.

* comment out unused arguments [-Wunused-parameter]

* Add support for adaptive Windows 10 notifications

* Add support for inline images to notification

* Allow null header, body, applogo, and image on notification builder

* DelegateToUi must be an owned function

* Prefer primary DirectSound device on Windows

It automatically selects the default device for use,
there is no book keeping necessary and things just work

The primary DirectSound device has a (NULL) guid, making
it wasy to be found.

* Do not allow selection of WASAPI devices

Dino would have to resample it own audio, do more book keeping and
somehow find out manually which is the default device.

* Add initial call notifications

* Use correct generic type for ArrayList

Nullable crashes Dino

* Allow devices with properties and use has_classes

* Remove YoloRT from tree

* Build YoloRT on project build

* Do not generate WinRT headers, just download them on build

* Fix compilation on gcc 11

* define _POSIX_C_SOURCE=1 on windows

Fixes "undefined reference to `localtime_r`" in, e.g., Vala's GLib.Time.local
when building on mingw-w64.

* fix call notifications buttons not working

* no need to ignore wasapi

* Ignore wasapi devices as they do not work well yet

* Removed version from Dino executable

We need a better way to get the version number

* Automatically set PANGOCAIRO_BACKEND to fontconfig on win32

* Fixed using GTK3 instead of GTK4

* Check YoloRT checksum before building

* Fix GPGME

* Added build script for windows

Signed-off-by: Maxim Logaev <maxlogaev@proton.me>

* Added README-WIN64.md

Signed-off-by: Maxim Logaev <maxlogaev@proton.me>

* Fixed dist-install dir

Signed-off-by: Maxim Logaev <maxlogaev@proton.me>

* Removed unnecessary installer files

Signed-off-by: Maxim Logaev <maxlogaev@proton.me>

* Added build-installer target to build-win64.sh

Signed-off-by: Maxim Logaev <maxlogaev@proton.me>

* Fixed build dependencies

Signed-off-by: Maxim Logaev <maxlogaev@proton.me>

* Move download yolort headers logic into prepare stage, delete yolort download script

* Added CI for MSYS2 (MINGW64) (#2)

- Use quotes in windows build script;
- Added missing gstreamer, webrtc-audio-processing and git;
- Added CI for Windows.
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>

---------

Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
Co-authored-by: LAGonauta <lagonauta@gmail.com>
Co-authored-by: Martin Dosch <spam@mdosch.de>
Co-authored-by: Martin Dosch <martin@mdosch.de>
Co-authored-by: mjk <yuubi-san@users.noreply.github.com>
Co-authored-by: Daniel Reuther <daniel.reuther@liferay.com>
Co-authored-by: Felipe <LAGonauta@users.noreply.github.com>
Co-authored-by: Psayker <kirill970528@yandex.ru>
2024-03-18 22:51:50 +03:00
hrxi e93e14b12c rtp plugin doesn't depend on GnuTLS 2023-11-13 22:27:50 +01:00
fiaxh 8cb195a274 Fix crash due to gpg binding issue 2023-10-07 16:54:09 +02:00
fiaxh 1e167eeea6 Fix some compiler warnings 2023-10-07 14:34:23 +02:00
hrxi c312fb282f meson: Add version detection for some dependencies 2023-10-06 15:25:12 +02:00
hrxi a55a10e88f meson: Add RTP options that are also present in the CMakeLists.txt 2023-10-06 15:25:12 +02:00
hrxi e6938c2965 meson: Add rtp plugin 2023-10-06 15:25:12 +02:00
hrxi 715fabb5bb meson: Add omemo plugin 2023-10-06 15:25:12 +02:00
hrxi 3edda368f3 meson: Add ice plugin 2023-10-06 15:25:12 +02:00
hrxi 7dd12e7dec meson: Add notification-sound plugin 2023-10-06 15:25:12 +02:00
hrxi 7326ca4d1b meson: Add openpgp plugin 2023-10-06 15:25:12 +02:00
hrxi 6d838c1c31 meson: Add http-files plugin 2023-10-06 15:25:12 +02:00
hrxi 6eb1b53e60 Merge signal-protocol into omemo plugin
Same reasoning as for the `openpgp` plugin.
2023-10-06 15:25:12 +02:00
hrxi e2d801b5f7 Merge gpgme-vala into openpgp plugin
There's no reason for it to be a statically linked library anymore, it
can be directly compiled into the plugin.
2023-10-06 15:25:12 +02:00
hrxi dd0038f5e2 Fix every inclusion of gpgme_fix.h getting their own mutex 2023-10-06 15:25:12 +02:00
Marvin W 8c8c2dc4b0
Fix potential crash in video calls 2023-07-09 15:32:53 +02:00
Marvin W 7357b7ecfb Fix certificate start time
I doubt anyone ever looked at it, but it shouldn't be 1 day in the future ;)
2023-07-09 14:32:33 +02:00
Marvin W 1bf57a42fa Do not send DTLS datagrams to RTP even after handshake
Also post debug message in case we drop datagrams
2023-07-09 14:32:33 +02:00
Stephen Paul Weber f82f788f43 Ignore non-DTLS data before handshake is complete
https://datatracker.ietf.org/doc/html/rfc9147#name-demul
https://datatracker.ietf.org/doc/html/rfc5764#section-5.1.2

If data is received before handshake is complete, discard it rather than
forwarding it blindly to GnuTLS which can get confused.
2023-07-09 14:32:33 +02:00
Marvin W dbb8abc117
Fix video for cameras with rotated image 2023-04-22 17:04:28 +02:00
Marvin W cad066628a
Build: Adjust to never build with libsignal-protocol-c 2023-04-22 17:03:22 +02:00
Marvin W 6690d8e4a4
Bind soup session lifetime to File provider/sender lifetime
Required since libsoup 3.4. Fixes #1395
2023-03-22 12:35:13 -06:00
Marvin W cb10110c57
Fix C binding for gst_video_frame_get_data
Fixes #1267
2023-03-20 15:53:53 -06:00
Marvin W 503de303d7
Consider stream readable when EOS is reached.
Fixes #1373
2023-03-02 00:02:35 +01:00
fiaxh fb799e3ba8 Fix some memory leaks 2023-02-27 23:38:31 +01:00
Translations e73b556a1a Update translations 2023-02-07 21:40:04 +01:00
fiaxh 95fefaff51 OMEMO: Make device list public 2023-02-05 18:49:32 +01:00
fiaxh 10a2bce512 Fix build 2023-01-28 15:58:33 +01:00
fiaxh 1dbacbbcab Remove nl_BE from LINGUAS files and appdata file (fixup d0a00e1) 2023-01-28 15:44:25 +01:00
Translations d0a00e1e75 Remove Dutch (Belgium) translation, fallback to Dutch
fixes #1231
2023-01-28 15:04:48 +01:00
Translations 04eb0e763b Update translations 2023-01-28 14:56:04 +01:00