Commit graph

863 commits

Author SHA1 Message Date
fiaxh 07917f1d84 Refactor XmppStream, TLS and connection method logic
fixes #534
2020-11-20 15:21:18 +01:00
fiaxh 881b9eec9d Improve entity identity getter 2020-11-20 15:21:18 +01:00
fiaxh f40730c780 Fix compiler warnings in WeakMap 2020-11-17 20:04:53 +01:00
fiaxh d0488401ce Use WeakMap for message caching 2020-11-14 17:05:46 +01:00
fiaxh b8d216a057 Add a WeakMap implementation + tests 2020-11-14 17:00:09 +01:00
Marvin W 2a775bcfb9
Prepare for 0.2.0 release 2020-11-12 18:51:20 +01:00
Translations 7726c0b75b Update translations 2020-11-12 18:28:56 +01:00
fiaxh 10adf716f3 Fix incoming muc voice request notification 2020-11-11 11:27:31 +01:00
Translations b2c7e9dfff Make some strings translatable, update translations 2020-11-10 14:04:57 +01:00
fiaxh 1999c97bb9 Improve content_item db table index
fixes #923

Co-authored-by: eta <eta@theta.eu.org>
2020-11-05 17:11:46 +01:00
Translations 6218b759bf Update translations 2020-11-04 18:12:01 +01:00
Kim Alvefur 0b145c69e9
Swedish translations (#936)
* Swedish translations

* Translate OMEMO strings to Swedish
2020-11-04 13:26:34 +01:00
fiaxh dba63b1473 Fix runtime critical when room has no name 2020-10-29 19:11:55 +01:00
fiaxh b685c7ab9e Fix GTK warning when closing Dino
"Can't set a target list on a widget until you've called gtk_drag_dest_set() to make the widget into a drag destination"
2020-10-27 17:56:28 +01:00
fiaxh 4f0ca55cf0 Fix for older glib versions 2020-10-27 16:19:59 +01:00
fiaxh 2e0357877c Fix some compiler warnings 2020-10-27 16:05:30 +01:00
fiaxh edbc8f794d Don't crash on MAM id-time hickup
fixes #886
2020-10-27 12:02:52 +01:00
fiaxh 5954f7764f Fix own message marker marking conversations as read 2020-10-15 19:52:30 +02:00
fiaxh 518307d1ac Include 128x128 Dino icon as resource 2020-10-15 17:46:37 +02:00
fiaxh 4f636dbd8e Service Discovery Module: Clear cached disco info requests when detaching from stream
If a info request did not receive a response in some stream (e.g. due to network errors), any requests to the same entity in subsequent streams waited indefinitively.
2020-10-12 18:23:15 +02:00
fiaxh e0d81f98e3 Remove code block formating 2020-10-11 13:45:54 +02:00
fiaxh 78138bf39b Unregister handlers related to displaying messages as pending 2020-10-11 12:16:38 +02:00
fiaxh f28aaac6da Fix compilation for older vala compilers 2020-10-07 22:16:41 +02:00
Translations d42918b0ab Update translations 2020-10-07 20:52:53 +02:00
eta 9cc3382abe service/database: use WAL mode + safe PRAGMA synchronous setting
Setting PRAGMA synchronous = 0 is really unsafe, and leads to database
corruption (which I've personally experienced). This commit uses
SQLite's Write-Ahead Log (WAL) [1] instead, together with synchronous =
NORMAL. According to [1], this trades off performance for durability
(i.e. it's possible that some transactions may not have committed if the
power gets lost), but still guarantees that the database won't corrupt
itself.

Together, these changes should improve reliability whilst either
improving or having no effect on performance.

[1]: https://www.sqlite.org/wal.html
2020-10-06 18:05:25 +02:00
fiaxh 7b58c1596a Fix runtime critical 2020-09-19 11:16:22 +02:00
fiaxh 6325a98cff Fix runtime criticals related to jingle file transfer 2020-09-19 11:16:22 +02:00
Marvin W d32d1b91a1
Compatibility with Vala 0.50.0
Fixes #911
2020-09-17 18:48:30 +02:00
Marvin W 1956f63179
Set key size for omemo http file transfers to 256 bits
Fixes #909
2020-09-15 20:32:09 +02:00
Marvin W cd5b639a82
Send OMEMO-encrypted messages and files using 12 byte IV 2020-09-14 22:04:06 +02:00
Marvin W f6943a4c82
Fix avatar display in private group chats 2020-09-14 22:04:05 +02:00
fiaxh fb9352fef1 Fix loading more results when scrolling through search results 2020-09-14 12:40:41 +02:00
Marvin W 928802332c
Make compatible with older vala compilers 2020-09-12 17:51:13 +02:00
Marvin W a22146fd72
Display placeholder avatar while loading 2020-09-12 12:54:37 +02:00
Translations 1534aa3a5e Update translations 2020-09-10 20:18:18 +02:00
fiaxh 0cbc04aec8 Fix warning when clicking to correct a message 2020-09-10 19:35:56 +02:00
fiaxh 3563232df0 OMEMO: Don't trigger "Not encrypted to this device" warning for messages w/o payload 2020-09-10 19:35:05 +02:00
fiaxh c01d09d519 Improve message resending 2020-09-10 19:35:05 +02:00
fiaxh 8a2edbe661 Fix new compiler error (don't reference private variable from public one)
fixes #901
2020-09-07 15:29:32 +02:00
fiaxh b60e7da28a Fix message duplication in MUC PMs 2020-09-07 15:29:32 +02:00
fiaxh 2d31d9d470 Cleanup 2020-09-07 15:21:42 +02:00
fiaxh 49bcbdaa51 Fix initial file encryption displaying
fixes #831
2020-09-07 15:14:29 +02:00
fiaxh e327a88898 Don't clear MAM id times on stream negotiated 2020-09-02 16:21:00 +02:00
fiaxh e6a90fc25c Implement MUC self ping 2020-08-31 16:48:20 +02:00
Translations ff9a9a0d66 Update translations 2020-08-01 23:02:44 +02:00
fiaxh a8f127b32e Lazy generate occupant menu list 2020-07-22 18:40:33 +02:00
fiaxh b104be4842 Don't create a second message object for each typing notification 2020-07-22 18:36:04 +02:00
fiaxh c887240fdc Improve stream management queue 2020-07-21 15:48:42 +02:00
fiaxh 7309c6f3ac Visually highlight pending messages, improve resending 2020-07-16 23:31:19 +02:00
fiaxh e159fd2492 Only query entity caps when we need them 2020-07-16 23:31:19 +02:00