mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-16 17:29:14 +00:00
Fix secondary post button appearing on reply despite being set to “None” (#3039)
Fixes #3005
This commit is contained in:
@@ -21,7 +21,7 @@ const sideArmPrivacy = state => {
|
|||||||
const inReplyTo = state.getIn(['compose', 'in_reply_to']);
|
const inReplyTo = state.getIn(['compose', 'in_reply_to']);
|
||||||
const replyPrivacy = inReplyTo ? state.getIn(['statuses', inReplyTo, 'visibility']) : null;
|
const replyPrivacy = inReplyTo ? state.getIn(['statuses', inReplyTo, 'visibility']) : null;
|
||||||
const sideArmBasePrivacy = state.getIn(['local_settings', 'side_arm']);
|
const sideArmBasePrivacy = state.getIn(['local_settings', 'side_arm']);
|
||||||
const sideArmRestrictedPrivacy = replyPrivacy ? privacyPreference(replyPrivacy, sideArmBasePrivacy) : null;
|
const sideArmRestrictedPrivacy = replyPrivacy && sideArmBasePrivacy !== 'none' ? privacyPreference(replyPrivacy, sideArmBasePrivacy) : null;
|
||||||
let sideArmPrivacy = null;
|
let sideArmPrivacy = null;
|
||||||
switch (state.getIn(['local_settings', 'side_arm_reply_mode'])) {
|
switch (state.getIn(['local_settings', 'side_arm_reply_mode'])) {
|
||||||
case 'copy':
|
case 'copy':
|
||||||
|
|||||||
Reference in New Issue
Block a user