Yorusaka Miyabi
ec42dd491a
events: Add unstable support for MSC2545 for image packs
2025-01-02 18:44:08 -05:00
Kévin Commaille
0a37df11cd
events: Add unstable support for is_animated image flag
...
According to MSC4230.
2025-01-02 18:44:00 -05:00
Kévin Commaille
6441d823dd
Remove unnecessary allow attribute
...
It seems like it was fixed in clippy.
2025-01-02 18:42:44 -05:00
Kévin Commaille
9e9b59819c
chore: Fix links to rich reply fallback section
...
Since they were remove in Matrix 1.13, the section was removed and the information is now in an info box.
2025-01-02 18:42:32 -05:00
Kévin Commaille
3321286242
events: Do not generate reply fallbacks anymore
...
According to MSC2781.
The helper methods for the relevant relations have been simplified to
only take the necessary data.
2025-01-02 18:42:26 -05:00
Jason Volk
ac37db212a
fix lints
...
Signed-off-by: Jason Volk <jason@zemos.net>
2025-01-01 22:20:39 +00:00
Jason Volk
30a08ff7be
various identifiers macro optimizations
...
Signed-off-by: Jason Volk <jason@zemos.net>
2024-12-28 23:43:56 +00:00
Jason Volk
54da128bbe
refactor owned identifiers using SmallVec
2024-12-28 01:06:09 +00:00
Jason Volk
9bdc048cdb
various inlines
...
Signed-off-by: Jason Volk <jason@zemos.net>
2024-12-19 14:02:45 +00:00
Kévin Commaille
81611b65f8
events: Be a little smarter when removing plain reply fallback
...
Given that the default algorithm from the spec would also remove the
beginning of a message starting with a blockquote,
let's be more conservative an check that the beginning really looks like
the fallback that was defined in the spec.
2024-12-15 03:07:53 -05:00
Kévin Commaille
fb273553b5
identifiers: Allow to set ruma_identifiers_storage cfg setting with env variable
2024-12-15 02:55:58 -05:00
Kévin Commaille
739334ac94
events: Use rename_all rule for CancelCode
...
The required rename rule exists so remove the TODO and use it.
2024-12-15 02:55:19 -05:00
Mathieu Velten
9af36342ff
Add a test regarding ser/de of an UserId in a DirectUserIdentifier ( #1968 )
...
Add a test to check that a serialized UserId can be deserialized to an OwnedDirectUserIdentifier.
Also fixes Clippy failures.
2024-12-15 02:55:12 -05:00
Jason Volk
771db61ee4
events: slightly rework benches
...
Signed-off-by: Jason Volk <jason@zemos.net>
2024-12-03 13:43:09 +00:00
Kévin Commaille
13a546056e
chore: Remove unnecessary lifetimes
2024-11-29 17:45:04 -05:00
Damir Jelić
d82e2a02d5
events: Add support for MSC4171
2024-11-29 17:36:28 -05:00
Mathieu Velten
2ab432fba1
ruma-events: Accept any string as a key for m.direct
account data
2024-11-15 12:23:29 -05:00
Kévin Commaille
f87f388280
events: Use Signatures in more places
2024-11-08 13:13:37 -05:00
Kévin Commaille
ae3897cad8
identifiers: Allow to validate KeyId with any key name type
...
Use new trait bounds for KeyId to only allow specific types.
Change the KeyId validation to be generic over the key name type.
Remove the KeyName type and replace it with the more specific
ServerSigningKeyVersion.
2024-11-08 12:49:53 -05:00
Kévin Commaille
f753a2f326
events: Improve markdown parsing code
...
Loop through the events only once to detect both whether there is
markdown and whether the markdown is inline.
Fix more cases of false negatives in markdown detection, like
whitespaces that are removed or the string beginning by a backslash
escape.
2024-11-07 18:59:47 -05:00
Benjamin Kampmann
01ffae2ac2
events: Implement url previews as per MSC4095
2024-11-07 18:55:43 -05:00
Kévin Commaille
278a45aec8
events: Remove p tag around inline markdown
...
As recommended by the spec.
2024-11-07 18:52:56 -05:00
Neek
1c4eeb4c41
events: Add relates_to field on StickerEventContent
2024-10-19 14:59:29 -04:00
Kévin Commaille
60b92e8e1d
events: Stabilize support for marked unread room account data
...
The unstable `com.famedly.marked_unread` room account data is still
available behind the `unstable-msc2867` cargo feature to be able to
migrate data from the unstable to the stable prefix.
2024-10-19 14:59:15 -04:00
Kévin Commaille
cc1b2144ea
chore: Point links to v1.12 of the spec
2024-10-19 14:59:08 -04:00
Kévin Commaille
9abafb284a
events: Fix indentation in changelog
2024-10-19 14:58:54 -04:00
Doug
4a5d7d0e7a
events: Add filename helper methods for audio, file, image and video messages.
2024-10-19 14:58:49 -04:00
Doug
e0db68241d
events: Add helpers for media captions to audio, file, image and video messages
2024-10-19 14:58:46 -04:00
strawberry
9900d06765
Merge remote-tracking branch 'upstream/main' into conduwuit-changes
2024-09-17 17:55:49 -04:00
Timo
1ae98db9c4
changelog: Document device_id
type change
2024-09-17 12:07:49 +02:00
Timo
92110cabb5
events: Use DeviceId instead of String.
2024-09-17 12:07:49 +02:00
Timo
1298c1d690
events: Fixing comments for new
method.
2024-09-17 12:07:49 +02:00
strawberry
b6f82a72b6
Merge remote-tracking branch 'upstream/main' into conduwuit-changes
2024-09-13 16:35:24 -04:00
Timo
d92404d114
events: introduce custom StateKey type for call member state events
2024-09-12 08:28:06 +02:00
Jonas Platte
1a138ed6c9
Use workspace lint configuration instead of rustflags hack
2024-09-11 07:13:32 +00:00
strawberry
25c6d8b2ad
cargo fmt
...
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-09-09 22:40:40 -04:00
strawberry
11155e576a
Merge remote-tracking branch 'upstream/main' into conduwuit-changes
2024-09-07 12:20:19 -04:00
Kévin Commaille
8f288cc1f2
events: Replace deprecated lint in UI test
2024-09-07 17:11:13 +02:00
Kévin Commaille
a56787e506
chore: Fix new clippy lint
...
The new lint that is handled here is
too_long_first_doc_paragraph.
2024-09-07 17:10:18 +02:00
strawberry
b003338b90
Merge remote-tracking branch 'upstream/main' into conduwuit-changes
2024-09-07 08:18:57 -04:00
Kévin Commaille
88f56b0e00
html: Upgrade html5ever
...
Requires a complete change of the HTML tree, to have interior mutability
and be able to return borrowed data from a Handle.
It is now a Rc-based tree where each node has a weak reference to
its parent and strong references to its children.
This results ina few breaking changes to the public API.
2024-09-07 09:56:02 +02:00
strawberry
c8a2d06e24
Merge remote-tracking branch 'upstream/main' into conduwuit-changes
...
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-09-06 21:10:32 -04:00
Kévin Commaille
dac38e4e17
events: Improve markdown syntax detection
...
We also detect backslash escapes and entity references.
2024-09-06 09:59:47 +02:00
Kévin Commaille
0ea496b138
events: Upgrade pulldown-cmark
2024-09-06 09:59:47 +02:00
morguldir
8dd8aab29d
accountdata: add an enum to allow returning both global and room accountdata
2024-08-30 09:18:49 +02:00
Timo
642c981f99
MatrixRTC: fix call member parsing by using the correct focus_active
format. ( #1888 )
...
`focus_select` -> `focus_selection`
2024-08-21 17:51:12 +02:00
strawberry
69b2bc4b8c
Merge remote-tracking branch 'upstream/main' into conduwuit-changes
2024-08-14 01:47:43 -04:00
Andrew Ferrazzutti
82417e3940
events: Loosen type of call member event state keys
...
Allow MSC3401-style call membership state events to have state keys that
are arbitrary strings, and not just pure MXIDs.
This allows for state keys that are suffixed with the sender's device
ID, as well as ones prefixed by an underscore to bypass auth rules over
state keys that start with a `@` but do not strictly equal an MXID.
2024-08-10 09:41:46 +02:00
Kévin Commaille
04654f8833
chore: Fix new clippy warnings
2024-07-29 20:03:44 +02:00
torrybr
7f562fe67e
events: use web-time instead of std::time for BeaconInfoEventContent
2024-07-08 10:18:03 +02:00