Commit 84e0a0f7f0
Unsigned
Layout: unified · split
src/render.rs +8 −1
| @@ -19,7 +19,11 @@ use matrix_sdk::{ | ||
| 19 | 19 | }; |
| 20 | 20 | use weechat::Weechat; |
| 21 | 21 | |
| 22 | /// Rendering function for membership events (joins, leaves, bans, profile changes, etc). | |
| 22 | /// Rendering function for membership events (joins, leaves, bans, profile | |
| 23 | /// changes, etc). | |
| 24 | // TODO: We should not return raw strings here but something like [Block] | |
| 25 | // where Block is (String, [Tags]). Each Block represents one or several lines | |
| 26 | // which have the same tags. | |
| 23 | 27 | pub fn render_membership( |
| 24 | 28 | member: &SyncStateEvent<MemberEventContent>, |
| 25 | 29 | sender: &WeechatRoomMember, |
| @@ -181,6 +185,9 @@ pub fn render_membership( | ||
| 181 | 185 | |
| 182 | 186 | /// Rendering function for room messages. |
| 183 | 187 | // FIXME: Pass room member |
| 188 | // TODO: We should not return raw strings here but something like [Block] | |
| 189 | // where Block is (String, [Tags]). Each Block represents one or several lines | |
| 190 | // which have the same tags. | |
| 184 | 191 | pub fn render_message( |
| 185 | 192 | message: &AnyPossiblyRedactedSyncMessageEvent, |
| 186 | 193 | displayname: String, |