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 2e4471cee6

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