Commit 52758581ef
Unsigned
Layout: unified · split
src/render.rs +3 −3
| @@ -50,9 +50,9 @@ pub trait Render { | |||
| 50 | /// The event specific tags that should be attached to the rendered event. | 50 | /// The event specific tags that should be attached to the rendered event. |
| 51 | const TAGS: &'static [&'static str]; | 51 | const TAGS: &'static [&'static str]; |
| 52 | 52 | ||
| 53 | /// Some events might need additional context to be rendered, for example if | 53 | /// Some events might need additional context to be rendered. For example, |
| 54 | /// we want to display the sender, we don't want to display the mxid, | 54 | /// instead of displaying the MXID for the sender, we might want to display |
| 55 | /// instead we want to display the disambiguated display name. | 55 | /// the disambiguated display name, which isn't available in the event. |
| 56 | /// | 56 | /// |
| 57 | /// This allows the render implementation to be passed some additional data | 57 | /// This allows the render implementation to be passed some additional data |
| 58 | /// when rendering. | 58 | /// when rendering. |