406 Commits

Author SHA1 Message Date
Jonas Platte
01e080d0b5 identifiers: Add owned key id type aliases 2022-04-20 10:39:36 +02:00
Johannes Becker
d7a53d8bac
common: Make Restricted::allow public 2022-04-19 15:34:33 +02:00
Jakub Kubík
09ac0aa3ac
fix: Correct rule IDs in predefined Rulesets 2022-04-17 22:58:19 +02:00
Jonas Platte
ae095cc037
macros: Expand IdZst derive to generic types
… and use it for KeyId.
2022-04-14 13:57:02 +02:00
Jonas Platte
d5656f3399
identifiers: Rename from_owned to from_box 2022-04-14 11:37:35 +02:00
Jonas Platte
f658487c50
identifiers: Replace most macro_rules! code with proc-macro code 2022-04-14 11:16:01 +02:00
Kévin Commaille
a2df988c23 events: Add convenience constructors for threads 2022-04-13 20:25:55 +02:00
Jonas Platte
1db716f643
events: Add transaction_id accessor to applicable event enums 2022-04-13 16:47:42 +02:00
Jonas Platte
dd24d6be77
events: Add {RoomRedactionEvent, SyncRoomRedactionEvent}::as_original 2022-04-13 16:43:41 +02:00
Jonas Platte
d0faeb52f3
events: Add RoomPowerLevels::{for_user, max} 2022-04-13 16:17:55 +02:00
Jonas Platte
2f32e9863e
events: Remove invalid copy-pasted docs 2022-04-13 16:17:55 +02:00
Jonas Platte
cfc5c6e88f
events: Add {RoomGuestAccessEvent, SyncRoomGuestAccessEvent}::guest_access 2022-04-13 16:17:55 +02:00
Jonas Platte
ea832d0c45
events: Add {RoomHistoryVisibilityEvent, SyncRoomHistoryVisibilityEvent}::history_visibility 2022-04-13 15:33:05 +02:00
Jonas Platte
16f2021c59
events: Add {RoomJoinRulesEvent, SyncJoinRulesEvent}::join_rule 2022-04-13 15:31:40 +02:00
Jonas Platte
548232ef5a
events: Add as_original methods to possiby-redacted event enums 2022-04-11 15:49:39 +02:00
Jonathan de Jong
f0177dc429
api: Add Metadata::versioning_decision_for 2022-04-11 15:44:03 +02:00
Jonas Platte
873270db1d
events: Add SyncRoomPowerLevelsEvent::power_levels 2022-04-11 14:32:40 +02:00
Jonas Platte
9f6f176f8d
events: Add RoomPowerLevelsEvent::power_levels 2022-04-11 14:26:19 +02:00
Jonas Platte
97a3c1e473
events: Add room::power_levels::RoomPowerLevels
A struct representing the effective power levels of a room, regardless
of whether the most recent power-levels event is redacted.
2022-04-11 14:26:19 +02:00
Kévin Commaille
688d5bf47a
docs: Improve string enums documentation
Mention the conversion from string.
2022-04-10 14:48:09 +02:00
Jonas Platte
c3756aafc5 events: Fix comment 2022-04-10 11:43:23 +02:00
Jonas Platte
649da9c5b8 events: Remove redacts field from redacted redaction events
Cleaning up redaction events in the spec does not seem to be planned for
the near future.
2022-04-10 11:43:23 +02:00
Kévin Commaille
65cb085f30
docs: Fix warnings 2022-04-10 11:35:24 +02:00
Kévin Commaille
1e1fa06342 events: Fix plain text reply constructors
Send a formatted_body, according to the spec
2022-04-05 21:13:25 +02:00
Jonas Platte
002d863738
events: Fix default invite power level 2022-04-05 17:43:52 +02:00
Jonas Platte
7de3b4b649
events: Rework the event enum hierarchy 2022-04-05 14:29:17 +02:00
Jonas Platte
ca7af393d6
events: Add new maybe-redacted event enums 2022-04-05 14:29:17 +02:00
Jonas Platte
f540bbbc99
events: Remove some accessor functions
They will no longer make sense with the new enum hierarchy.
2022-04-05 14:29:17 +02:00
Jonas Platte
51244d5ae7
events: Fix name of internal helper method 2022-04-05 14:29:17 +02:00
Jonas Platte
d87874314b
events: Add 'Original' prefix to unredacted types with a redacted form 2022-04-05 14:29:17 +02:00
Kévin Commaille
d661e3f4de common: Update CHANGELOG 2022-04-05 14:25:50 +02:00
Jonas Platte
26aea3a084
common: Consistently use int macros for tests 2022-04-04 16:54:17 +02:00
Kévin Commaille
e6cd2b0995 identifiers: Derive Clone on MatrixId 2022-04-03 10:32:56 +02:00
Jonas Platte
abcaa4d3f7 events: Remove unnecessary duplication from trybuild testcase 2022-04-02 20:31:37 +02:00
Jonas Platte
ff700c7f1a events: Delete duplicated trybuild test invocation 2022-04-02 20:31:37 +02:00
Jonas Platte
ca1159250e
events: Clean up module documentation
Remove a lot of no longer valid text.
2022-04-01 16:35:53 +02:00
Jonathan de Jong
b77fee8948
identifiers: Provide Owned types 2022-03-31 23:23:02 +02:00
Jonas Platte
a4aa7e0912
macros: Fix missing type qualification in Event derive macro 2022-03-31 18:42:27 +02:00
Jonas Platte
5ec3ad2290
events: Reintroduce *EventContent as trait aliases 2022-03-31 18:42:27 +02:00
Jonas Platte
9f56e6e497
events: Rename HierarchySpaceChildStateEvent => HierarchySpaceChildEvent 2022-03-31 18:42:27 +02:00
Jonas Platte
5ac6fcabc8
events: Remove unused EventKind 2022-03-31 18:42:27 +02:00
Jonas Platte
3c7edb1f9e
events: Rename internal module event_kinds => kinds 2022-03-31 18:42:27 +02:00
Jonas Platte
6279a2fa6f
events: Move EventContent trait and related items into new module 2022-03-31 18:42:27 +02:00
Jonas Platte
24bd27a3a9 Remove origin field from PDUs
It has been removed from the spec, for details see
https://github.com/matrix-org/matrix-spec/pull/998
2022-03-30 08:44:40 +02:00
Kévin Commaille
0450f9d8f7
events: Add method to get user receipt in ReceiptEventContent 2022-03-30 00:05:47 +02:00
Kévin Commaille
4ec803c29a events: Fix docs 2022-03-28 19:39:18 +02:00
Kévin Commaille
47bb788dc2 events: Rename ZoomLevel::value to get 2022-03-28 19:39:18 +02:00
Kévin Commaille
f3b2b7bce3 events: Rename Amplitude::value to get 2022-03-28 19:39:18 +02:00
Kévin Commaille
4128afaaeb fixup! events: Document transitional extensible events 2022-03-28 19:39:18 +02:00
Kévin Commaille
b701c9af0e events: Add a link to MSC3554 2022-03-28 19:39:18 +02:00