From 775f7999686bbdc3e282ac9c0120dc3b2e0b8d76 Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Sun, 17 Sep 2023 09:41:58 -0300 Subject: [PATCH] fix(notifications): fix reply visibility being PUBLIC no matter the status being replied to --- .../java/org/joinmastodon/android/PushNotificationReceiver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java b/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java index 8c49bcaa40..9d7cb97b40 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java +++ b/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java @@ -337,7 +337,7 @@ private void handleReplyAction(Context context, String accountID, Intent intent, CreateStatus.Request req=new CreateStatus.Request(); req.status = initialText + input.toString(); req.language = preferences.postingDefaultLanguage; - req.visibility = preferences.postingDefaultVisibility; + req.visibility = (notification.status.visibility == StatusPrivacy.PUBLIC && GlobalUserPreferences.defaultToUnlistedReplies ? StatusPrivacy.UNLISTED : notification.status.visibility); req.inReplyToId = notification.status.id; if (notification.status.hasSpoiler() &&