Commit Graph

443 Commits

Author SHA1 Message Date
Xavier Del Campo Romero 1159a169b0
Inhibit suspend on file upload/download 2023-10-09 16:38:03 +02:00
Xavier Del Campo Romero 9214e31b98
WIP call notifications 2023-10-09 16:38:03 +02:00
Xavier Del Campo Romero 8cd96e0a14
connection_manager.vala: Use yield on disconnect() 2023-10-09 16:38:02 +02:00
Xavier Del Campo Romero e1fd11775c
Check XmppStream against null
Most of the calls to stream_interactor.get_stream(account) were already
doing null checks, but there were still some missing.
2023-10-09 16:38:02 +02:00
Xavier Del Campo Romero 2c445501a4
file_manager.vala: Disable automatic download 2023-10-09 16:38:02 +02:00
Xavier Del Campo Romero 6d3aef2718
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.
2023-10-09 16:38:02 +02:00
Xavier Del Campo Romero aa39852931
connection_manager.vala: Refactor reconnect stream 2023-10-09 14:09:00 +02:00
Xavier Del Campo Romero 0f3d7e27ce
history_sync.vala: Remove noisy debug 2023-10-09 14:09:00 +02:00
Xavier Del Campo Romero 677ac164a9
Make Ctrl-Q accelerator user-configurable
Some devices, such as those using virtual keyboards such as Squeekboard,
might find the Ctrl-Q accelerator annoying, as it can be easily
mistyped.
2023-10-09 14:08:59 +02:00
Xavier Del Campo Romero 2f1f04b3e8
Make send button settings-selectable 2023-10-09 14:08:59 +02:00
Xavier Del Campo Romero be7e0c2d56
Backport Meson build support
Meson builds have better integration with Vala. For example, Meson
handles incremental compilation of Vala source files better than
CMake.

Limitations:

As done with CMake builds, gresource.xml should be compiled. Now, it has
been generated from a CMake build and manually copied into the source
tree.
2023-10-09 14:08:59 +02:00
Xavier Del Campo Romero fefcf35352
Allow to resume failed transfers 2023-10-09 14:08:52 +02:00
Xavier Del Campo Romero 90bee87ff5
Revamp connection_manager.vala
The original implementation was unable to reconnect accounts after
several suspend cycles.
2023-10-05 14:32:10 +02:00
Xavier Del Campo Romero 302e770a98
Show modal dialog to select default encryption if unknown 2023-10-05 14:32:07 +02:00
Xavier Del Campo Romero 366a49a820
Set up default encryption settings GUI 2023-10-05 14:32:07 +02:00
Marvin W 7a325ebf90
Don't accept corrections from MUC MAM
We don't know if they're from the same user as someone else could have joined with the same nickname after sender left
2023-10-05 14:32:07 +02:00
Marvin W 84b22752ab
Show "Me" instead of bare jid when no local alias is set 2023-10-05 14:32:06 +02:00
Marvin W 55374331be
Improve history sync under load 2023-10-05 14:32:06 +02:00
Marvin W cc5b6312bc
Deduplicate messages before storing in database 2023-10-05 14:32:06 +02:00
Marvin W 7a38a38674
Add priority for and allow cancellation of outgoing stanzas 2023-10-05 14:32:06 +02:00
Marvin W 90caab10ab
Collapse most stream releated errors into IOError 2023-10-05 14:32:06 +02:00
fiaxh bef62c3424
Fix placeholder being shown on startup, fix missing vertical line in no-conversations placeholder 2023-10-05 14:32:05 +02:00
fiaxh 202ef664fb
MAM: Fix latest range not being stored in db if it contained a duplicate 2023-10-05 14:32:05 +02:00
fiaxh 6c5ec41beb
Fix compiler warnings 2023-10-05 14:32:04 +02:00
fiaxh c7ff1d6bea
MAM: Fix processing after range was fetched completely, fix merging of ranges 2023-10-05 14:32:04 +02:00
fiaxh 0489b5b0e8
Fix connecting to jingle file provider multiple times 2023-10-05 14:32:04 +02:00
fiaxh 5a8bccb454
Fix some MAM issues
- Messages from MUCs weren't added to their respective MUC MAM ranges,
thus re-fetched on rejoin.
- The earliest ('first') message of a mam page was used to update the
to_id, but it should have been 'last'; also the other way around.
- Duplicates weren't detected properly.
2023-10-05 14:32:04 +02:00
fiaxh 8981c8d29f
Clean up log outputs 2023-10-05 14:32:04 +02:00
Marvin W 4009aa042f
Replace splice_async with read_async 2023-10-05 14:31:42 +02:00
fiaxh 63a16dce36
MAM: Fix latest range not being stored in db if it contained a duplicate 2023-10-01 21:28:29 +02:00
mesonium ce22fc1404
fix: Add x node to MUC PM stanza (#1462)
Add <x/> tag in MUC-PMs to support better Carbon delivery in
compliance with XEP-0045 v1.28 and above.

Fixes #1306
2023-10-01 21:28:29 +02:00
fiaxh b0534dcf07
Rewrite MAM logic and add MUC MAM 2023-10-01 21:28:29 +02:00
rim c0bde78e16
Fix crash when calling contact from Conversations (#1259)
fixes #1227
2023-10-01 21:28:28 +02:00
Marvin W a0eac798cd
Fix build of tests 2022-04-08 22:03:31 +02:00
Marvin W 193bf38a79
Allow cancellation of file transfers 2022-03-30 10:36:52 -06:00
Marvin W 339d1d8f55
Fix Version handling, add function to retrieve short version without git commit 2022-03-30 10:36:07 -06:00
fiaxh 9838d56794 Prepare for 0.3 release 2022-02-12 22:18:06 +01:00
fiaxh ad00f3f930 Remove call notification if other device accepted/denied 2022-02-12 20:23:35 +01:00
Marvin W 3f169c64d7
CIM: Announce accepted method 2022-02-12 19:16:16 +01:00
Marvin W b586aebbac
Calls: Fix OMEMO in group calls 2022-02-12 17:18:03 +01:00
Marvin W 369d0c79d7
Calls: Fix device selector for multi-party calls, allow picking device before call started 2022-02-12 14:36:26 +01:00
fiaxh be751a5dda Various call fixes
- If peer invited us claiming audio-only and then wants to have a video content, do a content-modify and accept audio-only
- Check contents for video (and modify) and whether call is truly accepted in PeerState.accept() directly
- If a message contains both JMI and CIM, only use JMI
- Fix outgoing CIM (disabled)
- Use opacity instead of visiblity for file_menu, small fixes
- Add back owner/admin/member queries when joining MUC (regression from 33104a7)
2022-02-12 14:22:29 +01:00
fiaxh dbc6d87cb9 Various call fixes
- Don't create incoming CIM calls twice
- Fix is_color check for video devices w/ multiple formats
- Tolerate mismatching content creator on jingle responses
- Change MUJI namespace to urn:xmpp:jingle:muji:0
2022-02-10 15:43:34 +01:00
fiaxh 8b473c890b Call Invite Message: Send 'finished' messages, include reasons 2022-02-08 22:13:59 +01:00
Marvin W 43ea088f64
Calls: Device picker 2022-02-08 21:58:18 +01:00
fiaxh 408406e652 Let call notification say if it's a group call 2022-02-08 17:52:30 +01:00
fiaxh 3088879a7b Various call fixes
- Use groupchat message type for invites in MUCs
- Use call id (from propose) instead of message id for Call Invite Messages
- Fix call window controlls appearing when hovering controls
2022-02-07 22:17:21 +01:00
fiaxh 29d1abccac Support direct jingle call invites with call invite messages 2022-02-07 01:21:11 +01:00
fiaxh 071d925e37 Add support for call invite messages
As of https://github.com/xsf/xeps/pull/1155
2022-02-07 01:21:11 +01:00
fiaxh 4ef50db3e5 Various call UI/UX improvements 2022-02-07 01:21:11 +01:00