forked from mirror/monocles_chat_clean
Default to store media in cache
This commit is contained in:
parent
f8e0b479f6
commit
8b78b2357d
4 changed files with 4 additions and 3 deletions
|
@ -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) {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue