v1.10.1, bug fix

Signed-off-by: nuclearfog <hatespirit666@gmail.com>
This commit is contained in:
nuclearfog 2021-10-01 19:34:06 +02:00
parent 01a2a4a637
commit cf24c18184
No known key found for this signature in database
GPG Key ID: AA0271FBE406DB98
2 changed files with 4 additions and 4 deletions

View File

@ -10,8 +10,8 @@ android {
applicationId 'org.nuclearfog.twidda'
minSdkVersion 16
targetSdkVersion 30
versionCode 45
versionName '1.10'
versionCode 46
versionName '1.10.1'
// limiting language support for smaller APK size
resConfigs 'en', 'de-rDE', 'zh-rCN'
vectorDrawables.useSupportLibrary true

View File

@ -125,10 +125,10 @@ public class UserAction extends AsyncTask<UserAction.Action, User, Relation> {
case ACTION_UNBLOCK:
user = mTwitter.unblockUser(userId);
publishProgress(user);
appDB.muteUser(userId, false);
// remove from exclude list only if user is not muted
relation = mTwitter.getConnection(userId);
if (!relation.isMuted()) {
appDB.muteUser(userId, false);
exclDB.removeUser(userId);
}
return relation;
@ -142,10 +142,10 @@ public class UserAction extends AsyncTask<UserAction.Action, User, Relation> {
case ACTION_UNMUTE:
user = mTwitter.unmuteUser(userId);
publishProgress(user);
appDB.muteUser(userId, false);
// remove from exclude list only if user is not blocked
relation = mTwitter.getConnection(userId);
if (!relation.isBlocked()) {
appDB.muteUser(userId, false);
exclDB.removeUser(userId);
}
return relation;