Default to store media in cache

This commit is contained in:
Arne 2024-09-06 10:52:54 +02:00
parent f8e0b479f6
commit 8b78b2357d
4 changed files with 4 additions and 3 deletions

View file

@ -1156,7 +1156,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
if ("cache".equals(getAttribute("storeMedia"))) return true;
if ("shared".equals(getAttribute("storeMedia"))) return false;
if (mode == Conversation.MODE_MULTI && !mucOptions.isPrivateAndNonAnonymous()) return true;
return false;
return true;
}
public boolean setAttribute(String key, boolean value) {

View file

@ -202,7 +202,7 @@
android:layout_height="wrap_content">
<TextView
android:text="Store media only in cache"
android:text="@string/store_media_only_in_cache"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"

View file

@ -435,7 +435,7 @@
android:layout_height="wrap_content">
<TextView
android:text="Store media only in cache"
android:text="@string/store_media_only_in_cache"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"

View file

@ -1081,4 +1081,5 @@
<string name="block_avatar">Block avatar</string>
<string name="pref_show_less_avatars">Show less avatars</string>
<string name="pref_show_less_avatars_summary">Show only needed avatars in the chats</string>
<string name="store_media_only_in_cache">Store media only in cache</string>
</resources>