hide reposts/reactions/zaps when the lowdatamode pref is on

This commit is contained in:
Kamal Raj Sekar 2024-01-04 07:17:43 +00:00
parent e2fc71502a
commit 0ff8199896
2 changed files with 12 additions and 4 deletions

View File

@ -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("+");

View File

@ -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',
},
});