mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-29 16:31:18 +00:00
Only record a note as viewed if it isn't already recorded as such
This commit is contained in:
parent
7683d9d083
commit
cbcf2d6e54
@ -137,7 +137,8 @@ pub(super) fn render_note(
|
||||
app.height.insert(id, bottom.y - top.y);
|
||||
|
||||
// Mark post as viewed if hovered AND we are not scrolling
|
||||
if inner_response.response.hovered() && app.current_scroll_offset == 0.0 {
|
||||
if !viewed && inner_response.response.hovered() && app.current_scroll_offset == 0.0
|
||||
{
|
||||
let _ = GLOBALS.storage.mark_event_viewed(id, None);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user