hide reposts/reactions/zaps when the lowdatamode pref is on
Some checks failed
continuous-integration/drone/pr Build is failing
Some checks failed
continuous-integration/drone/pr Build is failing
This commit is contained in:
parent
e2fc71502a
commit
0ff8199896
@ -197,6 +197,9 @@ export default function NoteFooter(props: NoteFooterProps) {
|
||||
}
|
||||
|
||||
function tipButton() {
|
||||
if(prefs.lowDataMode){
|
||||
return null;
|
||||
}
|
||||
const targets = getZapTarget();
|
||||
if (targets) {
|
||||
return (
|
||||
@ -214,7 +217,12 @@ export default function NoteFooter(props: NoteFooterProps) {
|
||||
}
|
||||
|
||||
function repostIcon() {
|
||||
if (readonly) return;
|
||||
if (readonly) {
|
||||
return;
|
||||
}
|
||||
else if(prefs.lowDataMode){
|
||||
return null;
|
||||
}
|
||||
return (
|
||||
<Menu
|
||||
menuButton={
|
||||
@ -254,7 +262,7 @@ export default function NoteFooter(props: NoteFooterProps) {
|
||||
}
|
||||
|
||||
function reactionIcon() {
|
||||
if (!prefs.enableReactions) {
|
||||
if (!prefs.enableReactions || prefs.lowDataMode){
|
||||
return null;
|
||||
}
|
||||
const reacted = hasReacted("+");
|
||||
|
@ -78,7 +78,7 @@ export default defineMessages({
|
||||
NotSubscribedToPush: { defaultMessage: "Not Subscribed to Push", id: "d2ebEu" },
|
||||
LowDataMode: { defaultMessage: "Low Data Mode", id: '87tg/I' },
|
||||
LowDataModeHelp: {
|
||||
defaultMessage: "Reactions will not be shown on timeline and images would not load automatically",
|
||||
id: 'Qie1Ef',
|
||||
defaultMessage: "Reactions/Reposts/Zaps will not be shown on timeline and images would not load automatically",
|
||||
id: 'dmSMtS',
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user