Skip to content

Commit

Permalink
Revert "Show reaction count alongside like count"
Browse files Browse the repository at this point in the history
This reverts commit 835734b.
  • Loading branch information
mikedilger committed Aug 6, 2024
1 parent c6493c7 commit 752f06b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions gossip-bin/src/ui/feed/note/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -917,11 +917,6 @@ pub fn render_note_inner(
},
)
.unwrap_or_default();
let reaction_count: usize = note
.reactions
.iter()
.filter_map(|(c, s)| if *c == '+' { None } else { Some(s) })
.sum();
let mut response = widgets::clickable_label(
ui,
can_sign,
Expand All @@ -930,7 +925,7 @@ pub fn render_note_inner(
response |= widgets::clickable_label(
ui,
can_sign,
format!("{}+{}", like_count, reaction_count),
format!("{}", like_count),
);
let hover_ui = |ui: &mut Ui| {
ui.horizontal_wrapped(|ui| {
Expand Down
2 changes: 1 addition & 1 deletion gossip-lib/src/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1896,7 +1896,7 @@ impl Storage {
continue;
}
}
let symbol: char = if reaction == "" {
let symbol: char = if reaction=="" {
'+'
} else if reaction.starts_with(":") && reaction.ends_with(":") {
'□' // placeholder for custom reaction that we don't support
Expand Down

0 comments on commit 752f06b

Please sign in to comment.