.and_then(|ac| ac.source)
.map(|s| s.follow_requests_count)
{
- menu.add_info_coloured(
- ColouredString::uniform(
- &format!(
- "You have {} pending follow request{}!",
- n,
- if n == 1 { "" } else { "s" },
+ if n > 0 {
+ menu.add_info_coloured(
+ ColouredString::uniform(
+ &format!(
+ "You have {} pending follow request{}!",
+ n,
+ if n == 1 { "" } else { "s" },
+ ),
+ 'F',
+ ) + ColouredString::general(
+ " View with [ESC][Y][L][R]",
+ " HHHHHHHHHHHKKKHHKHHKHHKH",
),
- 'F',
- ) + ColouredString::general(
- " View with [ESC][Y][L][R]",
- " HHHHHHHHHHHKKKHHKHHKHHKH",
- ),
- );
+ );
+ }
}
Box::new(menu.finalise())