File tree 3 files changed +17
-3
lines changed
java/org/quantumbadger/redreader/account
3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change
1
+ /Alpha 335 (2023-07-02)
2
+ Fixed an issue with subscriptions after re-authenticating
3
+
1
4
/Alpha 334 (2023-06-25)
2
5
Due to Reddit API changes, any active accounts must be logged in again
3
6
Original file line number Diff line number Diff line change 1
- 105 /1.21
1
+ 106 /1.21.1
2
2
Show Reddit user agreement prompt at startup
3
3
Due to Reddit API changes, any active accounts must be logged in again
4
4
More specific error message when a subreddit is private
@@ -12,6 +12,7 @@ Fix for MediaMuxer crash
12
12
Imgur links on non-standard subdomains are now handled correctly
13
13
Detects more bot usernames
14
14
Dependency updates
15
+ v1.21.1: Fixed an issue with subscriptions after re-authenticating
15
16
16
17
104/1.20
17
18
Renamed "Find Subreddit" to "Find Location"
Original file line number Diff line number Diff line change 22
22
import org .quantumbadger .redreader .common .StringUtils ;
23
23
import org .quantumbadger .redreader .reddit .api .RedditOAuth ;
24
24
25
+ import java .util .Objects ;
26
+
25
27
public class RedditAccount {
26
28
27
29
@ NonNull public final String username ;
@@ -71,8 +73,16 @@ public synchronized void setAccessToken(final RedditOAuth.AccessToken token) {
71
73
72
74
@ Override
73
75
public boolean equals (final Object o ) {
74
- return o instanceof RedditAccount
75
- && username .equalsIgnoreCase (((RedditAccount )o ).username );
76
+
77
+ if (!(o instanceof RedditAccount )) {
78
+ return false ;
79
+ }
80
+
81
+ final RedditAccount other = (RedditAccount )o ;
82
+
83
+ return username .equalsIgnoreCase (other .username )
84
+ && Objects .equals (clientId , other .clientId )
85
+ && Objects .equals (refreshToken , other .refreshToken );
76
86
}
77
87
78
88
@ Override
You can’t perform that action at this time.
0 commit comments