refactor(event factory): simplify tag() helper

This commit is contained in:
Benjamin Bouvier
2026-02-16 17:23:16 +01:00
parent 72c6dc8e08
commit a6663718d0
5 changed files with 7 additions and 8 deletions
+3 -3
View File
@@ -91,7 +91,7 @@ use ruma::{
space::{child::SpaceChildEventContent, parent::SpaceParentEventContent},
space_order::SpaceOrderEventContent,
sticker::StickerEventContent,
tag::TagEventContent,
tag::{TagEventContent, Tags},
typing::TypingEventContent,
},
presence::PresenceState,
@@ -1512,8 +1512,8 @@ impl EventFactory {
}
/// Create a new `m.tag` room account data event with the given tags.
pub fn tag(&self, content: TagEventContent) -> EventBuilder<TagEventContent> {
self.room_account_data(content)
pub fn tag(&self, tags: Tags) -> EventBuilder<TagEventContent> {
self.room_account_data(tags.into())
}
/// Create a new `m.space_order` room account data event with the given