Commit e522c7fd7a
Unsigned
Layout: unified · split
src/room/mod.rs −24
| @@ -193,10 +193,6 @@ fn should_continue_restored_history( | |||
| 193 | && lines_after < RESTORED_HISTORY_TARGET_LINES | 193 | && lines_after < RESTORED_HISTORY_TARGET_LINES |
| 194 | } | 194 | } |
| 195 | 195 | ||
| 196 | fn has_history_page(prev_batch: &Option<PrevBatch>) -> bool { | ||
| 197 | prev_batch.is_some() | ||
| 198 | } | ||
| 199 | |||
| 200 | fn next_history_page_state( | 196 | fn next_history_page_state( |
| 201 | current: &PrevBatch, | 197 | current: &PrevBatch, |
| 202 | end: Option<String>, | 198 | end: Option<String>, |
| @@ -217,26 +213,6 @@ fn next_history_page_state( | |||
| 217 | } | 213 | } |
| 218 | } | 214 | } |
| 219 | 215 | ||
| 220 | fn history_page_marker(result: &HistoryPageResult) -> String { | ||
| 221 | match result { | ||
| 222 | HistoryPageResult::Page { added, exhausted } => format!( | ||
| 223 | "matrix_history_page added={} exhausted={}", | ||
| 224 | added, | ||
| 225 | u8::from(*exhausted), | ||
| 226 | ), | ||
| 227 | HistoryPageResult::Unavailable => { | ||
| 228 | "matrix_history_page added=0 exhausted=1 state=unavailable" | ||
| 229 | .to_owned() | ||
| 230 | } | ||
| 231 | HistoryPageResult::Busy => { | ||
| 232 | "matrix_history_page added=0 exhausted=0 state=busy".to_owned() | ||
| 233 | } | ||
| 234 | HistoryPageResult::Failed => { | ||
| 235 | "matrix_history_page added=0 exhausted=0 state=failed".to_owned() | ||
| 236 | } | ||
| 237 | } | ||
| 238 | } | ||
| 239 | |||
| 240 | fn should_render_event(already_rendered: bool) -> bool { | 216 | fn should_render_event(already_rendered: bool) -> bool { |
| 241 | !already_rendered | 217 | !already_rendered |
| 242 | } | 218 | } |