Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.
This repository was archived by the owner on May 12, 2021. It is now read-only.

Options button not working for contacts #1328

Description

@sunjam

#1326 related. I cannot access "Options" for any specific contact. Clicking the button does nothing. Was hoping to block some users I'm seeing in public, but do not follow.

Activity

  1. christianbundy commented on Nov 21, 2020

    @christianbundy
    Contributor

    is this in a stable Patchwork or the new experimental beta?

  2. sunjam commented on Nov 21, 2020

    @sunjam
    Author
  3. christianbundy commented on Nov 21, 2020

    @christianbundy
    Contributor
  4. staltz commented on Nov 21, 2020

    @staltz
    Member

    Pre-rust or post-rust?

  5. black-puppydog commented on Nov 21, 2020

    @black-puppydog
    Contributor

    Actually I've had this for a loooong time but I asked about it on ssb and we couldn't replicate so I always kinda just assumed it was sth wrong with my setup, or I had somehow upset my npm or something.

  6. black-puppydog commented on Nov 21, 2020

    @black-puppydog
    Contributor

    Oh. What I wrote there was... false. :P

    Actually @soapdog confirmed that but I must have missed that notification.

    %ySQfyTDAMI97BKQaQ9zl6QHChWMjdJzZ3qjZCT6hz7s=.sha256

  7. sunjam commented on Nov 29, 2020

    @sunjam
    Author

    Pre-rust or post-rust?

    Pre-rust. See this linked thread from my first post for complete background.

    #1326 related. I cannot access "Options" for any specific contact. Clicking the button does nothing. Was hoping to block some users I'm seeing in public, but do not follow.

  8. black-puppydog commented on Dec 1, 2020

    @black-puppydog
    Contributor

    I looked at this one a bit yesterday, but I didn't have much time to get to the bottom of it.
    I basically just got to this line:

    electron.remote.getCurrentWindow().webContents.getZoomFactor((factor) => {
    const menu = electron.remote.Menu.buildFromTemplate([
    {
    type: 'radio',
    label: i18n('Neutral'),
    checked: status == null,
    click: () => setStatus(id, null, { states, ignores })
    },
    {

    This line is executed on the client (i.e. in the "browser") and is querying the zoomFactor from the remote, i.e. the "server".
    From what I can tell, this is done through binding via mutant.

    The second aspect (besides mutant) to this call is that recently, electron has refactored the getter functions to be JS get properties. Not sure if that matters.

    In any case, the callback given to the getter seems to never be called.

    However: if I inspect the window, and evaluate electron.remote.getCurrentWindow().webContents.zoomFactor by hand, it returns 1 correctly.

    Not really conclusive, but that's where I'm at right now.

  9. soapdog commented on Jan 2, 2021

    @soapdog
    Contributor

    This is happening for me and I am using the release version. I'm not building or running from source, I'm getting the latest version pre-built from this repo.

  10. christianbundy commented on Jan 2, 2021

    @christianbundy
    Contributor

    @soapdog Clarification: are you running v3.18.0 or v3.18.1-beta.1?

  11. soapdog commented on Jan 7, 2021

    @soapdog
    Contributor

    @christianbundy Patchwork 3.18.1-beta.1

  12. black-puppydog commented on Jan 7, 2021

    @black-puppydog
    Contributor

    but @christianbundy I've been seeing this for much longer (see above)

  13. added a commit that references this issue on Jan 14, 2021
    481bf50
  14. black-puppydog commented on Jan 15, 2021

    @black-puppydog
    Contributor

    @sunjam in case you're not reading on ssb, I think I fixed this in #1368. If you want to test this, let me know if you need help. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions