forked from Kieran/snort
hide reposts/reactions/zaps when the lowdatamode pref is on
This commit is contained in:
parent
e2fc71502a
commit
2e4471cee6
@ -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("+");
|
||||
|
Loading…
Reference in New Issue
Block a user