Revert "Better file guessing for quoted files"
This reverts commit 36064b7e0c
.
This commit is contained in:
parent
36064b7e0c
commit
0122e07bfa
1 changed files with 1 additions and 3 deletions
|
@ -87,7 +87,6 @@ import java.util.HashMap;
|
|||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
@ -131,7 +130,6 @@ import eu.siacs.conversations.utils.CryptoHelper;
|
|||
import eu.siacs.conversations.utils.Emoticons;
|
||||
import eu.siacs.conversations.utils.GeoHelper;
|
||||
import eu.siacs.conversations.utils.MessageUtils;
|
||||
import eu.siacs.conversations.utils.MimeUtils;
|
||||
import eu.siacs.conversations.utils.RichPreview;
|
||||
import eu.siacs.conversations.utils.StylingHelper;
|
||||
import eu.siacs.conversations.utils.ThemeHelper;
|
||||
|
@ -820,7 +818,7 @@ public class MessageAdapter extends ArrayAdapter<Message> {
|
|||
StylingHelper.highlight(activity, body, highlightedTerm, StylingHelper.isDarkText(viewHolder.messageBody));
|
||||
}
|
||||
}
|
||||
if (activity.xmppConnectionService.getPreferences().getBoolean("send_link_previews", true) && (isFirstImageQuote || isSecondImageQuote || isOmemoImageQuote) && Objects.equals(MimeUtils.guessMimeTypeFromUri(activity, Uri.parse(body.toString())), "image/*") || Objects.equals(MimeUtils.guessMimeTypeFromUri(activity, Uri.parse(body.toString())), "video/*")) {
|
||||
if (activity.xmppConnectionService.getPreferences().getBoolean("send_link_previews", true) && (isFirstImageQuote || isSecondImageQuote || isOmemoImageQuote) && containsLink(body.toString())) {
|
||||
List<String> uri = extractUrls(body.toString());
|
||||
for (String imageurl : uri) {
|
||||
if (activity.xmppConnectionService.getBooleanPreference("play_gif_inside", R.bool.play_gif_inside)) {
|
||||
|
|
Loading…
Reference in a new issue