pd4d10 / git-touch

An open-source app for GitHub, GitLab, Bitbucket, Gitea, and Gitee(码云), built with Flutter
Apache License 2.0
1.56k stars 137 forks source link

Star and unstar button sometimes not working #47

Closed max-hk closed 3 years ago

max-hk commented 4 years ago

Pressing star and unstar button in repo page sometimes does nothing

Demo video: https://imgur.com/a/ZHyHcs2

In the video, I press star button multiple times. The button was expected to be replaced by unstar button, but nothing happens.

pd4d10 commented 4 years ago

Hi, @maxloh , thanks for the feedback!

It seems caused by GitHub's token scope policy update. The solution would depend on the login approach:

  1. Login with OAuth: Go to Me -> Switch accounts to login again. It would ask you the extra notification permission and please say yes.
  2. Login with token: Go to https://github.com/settings/tokens and find the token used in GitTouch, add notification scope and save.
max-hk commented 4 years ago

Hi, @maxloh , thanks for the feedback!

It seems caused by GitHub's token scope policy update. The solution would depend on the login approach:

  1. Login with OAuth: Go to Me -> Switch accounts to login again. It would ask you the extra notification permission and please say yes.
  2. Login with token: Go to https://github.com/settings/tokens and find the token used in GitTouch, add notification scope and save.

I tried the mentioned steps but the problem persists.

Clearing app data and login again cannot solve the problem too.

pd4d10 commented 4 years ago

Oh, there seems another problem with organization repo.

I'll try to fix this in the next release.

pd4d10 commented 3 years ago

Should have fixed in the latest v1.5.1. Sorry for the long wait!