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