aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/utils/UIHelper.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de/pixart/messenger/utils/UIHelper.java')
-rw-r--r--src/main/java/de/pixart/messenger/utils/UIHelper.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/UIHelper.java b/src/main/java/de/pixart/messenger/utils/UIHelper.java
index dcbe51b53..c74b34d41 100644
--- a/src/main/java/de/pixart/messenger/utils/UIHelper.java
+++ b/src/main/java/de/pixart/messenger/utils/UIHelper.java
@@ -307,7 +307,7 @@ public class UIHelper {
return new Pair<>(context.getString(R.string.location), true);
} else if (message.isXmppUri()) {
return new Pair<>(context.getString(R.string.contact), true);
- } else if (message.treatAsDownloadable()) {
+ } else if (message.treatAsDownloadable() || MessageUtils.unInitiatedButKnownSize(message)) {
return new Pair<>(context.getString(R.string.x_file_offered_for_download,
getFileDescriptionString(context, message)), true);
} else {
@@ -520,7 +520,7 @@ public class UIHelper {
final Account account = conversation.getAccount();
final Jid jid = account.getJid();
final String displayName = account.getDisplayName();
- if (displayName != null ) {
+ if (displayName != null) {
return displayName;
} else {
if (jid.getLocal() != null) {