Commit graph

70 commits

Author SHA1 Message Date
Tulir Asokan
087644889b Stop using non-existent device_id field when handling olm messages 2021-12-03 17:47:41 +02:00
Tulir Asokan
835194fa2d Automatically create new Olm sessions if decryption fails 2021-12-03 16:23:24 +02:00
Tulir Asokan
e9475c7706 Automatically move top-level prev_content inside unsigned 2021-11-01 12:25:58 +02:00
Tulir Asokan
1031b1eb42 Add SetEdit utility function to MessageEventContent 2021-10-27 15:30:04 +03:00
Tulir Asokan
9cdc8ddcfe Add MarshalJSON function to Event struct to omit empty Unsigned values 2021-10-25 23:54:48 +03:00
Tulir Asokan
9371f46a3c Add m.bridge event content struct 2021-09-30 16:04:50 +03:00
Tulir Asokan
00ca2be6a5 Run gofmt 2021-09-22 10:52:01 -04:00
Tulir Asokan
a2ea4f5cf8 Add some omitempty's and a log 2021-07-16 22:01:00 +03:00
Tulir Asokan
72aa96509e Add support for MSC3202 in appservice package 2021-07-14 16:10:47 +03:00
Tulir Asokan
ee89ba3bcc Allow sending custom data with read receipts
This is currently not supported by most servers
2021-05-18 15:22:18 +03:00
Tulir Asokan
53ea315d67 Make sure non-int/string types as CallVersion returns an error 2021-05-07 17:06:15 +03:00
Tulir Asokan
90da2d9f24 Add support for parsing strings in voip version field. Fixes #33 2021-05-07 16:59:16 +03:00
Tulir Asokan
32fdba417d Merge remote-tracking branch 'alrs/fix-dropped-errs' 2021-05-07 16:40:28 +03:00
Tulir Asokan
42d0adaa7d Improve debug log for unsupported event types and add call events to GuessClass (ref #32) 2021-05-07 15:11:42 +03:00
Tulir Asokan
e258075da1 Add methods for getting room tags and account data 2021-04-20 16:31:18 +03:00
Tulir Asokan
ba8ea0c90b Add content structs for VoIP events 2021-04-19 17:24:35 +03:00
Lars Lehtonen
dea8db3dc8
fix dropped errors 2021-04-12 03:40:40 -07:00
Brendan Abolivier
ed27885714 Use the correct type for presence state constants 2021-03-12 18:23:30 +02:00
Tulir Asokan
d407ecfd81 Merge branch 'master' into cross-sign 2020-10-27 00:43:30 +02:00
Tulir Asokan
3af22dc542 Use net.maunium.reply instead of m.reference as fake reply relation type 2020-10-27 00:42:53 +02:00
Tulir Asokan
495d77b3a0 Merge branch 'master' into cross-sign 2020-10-27 00:38:52 +02:00
Tulir Asokan
488e1811bb Add support for receiving MSC2409 ephemeral events 2020-10-26 18:31:14 +02:00
Tulir Asokan
72fc4c1643 Stop using github.com/pkg/errors 2020-09-24 14:41:29 +03:00
Tulir Asokan
2f4c0570c0 Even more changes 2020-09-12 23:37:50 +03:00
Tulir Asokan
8db8373594 Separate SSSS from cross-signing properly 2020-09-11 01:35:38 +03:00
Tulir Asokan
853511592b Merge remote-tracking branch 'nikofil/cross-sign' into cross-sign 2020-09-03 19:26:09 +03:00
Nikos Filippakis
037170a278 Implement Relatable for verification EventContent structs
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-09-01 15:36:04 +02:00
Nikos Filippakis
b193c0ce52
Support for starting the in-room verification process
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-09-01 15:36:03 +02:00
Nikos Filippakis
8b7e8a8cae Support for starting the in-room verification process
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-08-30 20:51:17 +02:00
Nikos Filippakis
cbcbbd97fa Handle in-room verification requests
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-08-30 20:51:17 +02:00
Tulir Asokan
25a7420e62 Revert "Remove RiotX float compatibility code"
Element Android is still broken and I need to make a new tag

This reverts commit 0f0edd39db.
2020-08-21 20:41:38 +03:00
Tulir Asokan
0f0edd39db Remove RiotX float compatibility code 2020-08-06 01:35:42 +03:00
Tulir Asokan
24127da284 Add support for storing m.room_key.withheld events 2020-08-03 22:05:01 +03:00
Tulir Asokan
c3c4f6afe0 Fix Go 1.13 requirement and make compiling SAS optional 2020-08-02 13:52:13 +03:00
Tulir Asokan
be3336827d Add per-verification callbacks 2020-07-25 17:58:08 +03:00
Tulir Asokan
6f0a2026eb Switch to curve25519-hkdf-sha256 key agreement method 2020-07-25 14:54:37 +03:00
Nikos Filippakis
83bdc3f91d
Add capability for user to decide what verification transactions to accept and whether the two SAS match
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-07-22 19:46:41 +02:00
Nikos Filippakis
b70f6f15b0
SAS verification of any device that contacts us
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-07-22 18:44:33 +02:00
Nikos Filippakis
13915a5c7a Add event types and content structs for upcoming key verification process
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-07-17 17:52:49 +02:00
Nikos Filippakis
ed446d64a1 Forward keys when asked for room keys from the same user ID
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-07-17 16:17:44 +02:00
Tulir Asokan
e9aa55cc66 Move content already parsed error into variable 2020-07-05 23:26:30 +03:00
Tulir Asokan
4fd74babac Return error in ParseRaw if content is already parsed 2020-06-26 01:13:45 +03:00
Tulir Asokan
ea5cf3ee5e Add some comments and other changes to crypto stuff 2020-06-23 21:42:33 +03:00
Tulir Asokan
cb16e2bfa8 Fix EncryptionEventContent field 2020-06-18 00:26:23 +03:00
Tulir Asokan
497bc27692 Update canonical alias content struct 2020-06-17 14:14:47 +03:00
Tulir Asokan
cbc4cc21af Fix marshaling FileInfo with ThumbnailFile 2020-06-10 15:25:35 +03:00
Tulir Asokan
5d73f374c9 Check device trust state when decrypting megolm event 2020-05-24 22:40:03 +03:00
Tulir Asokan
81fdb5caab Add GeoURI to MessageEventContent for m.location messages 2020-05-24 19:01:44 +03:00
Tulir Asokan
436f9c773e Fix MarshalJSON when Content has both Raw and Parsed set 2020-05-09 14:19:41 +03:00
Tulir Asokan
483fabb228 Add missing AsEncryption() for Content 2020-05-09 02:11:55 +03:00