Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mute threads #604

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Conversation

ksedgwic
Copy link
Contributor

Completes #214

Is it worth caching the root_note_id somewhere in the note or note view so we don't have to recompute it more than once?

- they need to be separate, both on at once is too much

    --features debug-widget-callstack
      Show callstack for the current widget on hover if all modifier keys
      are pressed down

    --features debug-interactive-widgets
      Show an overlay on all interactive widgets

    Notes:
    - debug-widget-callstack asserts `egui:callstack` feature when enabled
    - Only works in debug builds, compile error w/ release builds
I think this bug affected pubkey mutes as well.
Fixes damus-io#214

Needed to add the thread id of the Note we're checking to the MuteFun call signature.
@ksedgwic ksedgwic requested a review from jb55 December 20, 2024 00:08
@jb55
Copy link
Contributor

jb55 commented Dec 20, 2024 via email

@ksedgwic
Copy link
Contributor Author

ksedgwic commented Dec 20, 2024

is_muted almost always is checking everything, this is the only case where we happen to not care about any note mutes because we are already targeting the thread.

Actually, I think we should remove this check and instead display the thread view with a "this thread is muted" message to the user. Currently it crashes with something about height == 0. But we need to handle the case where the user is sitting on a thread view and it is muted externally ... I'm guessing we currently crash in this case.

@ksedgwic ksedgwic marked this pull request as draft December 20, 2024 17:47
@ksedgwic
Copy link
Contributor Author

Converted to draft to consider the thread view

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants