From d782d3006bf84f10e6469b660d44f1272744b5d2 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Tue, 19 Dec 2017 11:01:55 -0800 Subject: [PATCH] Per-recipient ringtones can't be file based --- src/org/thoughtcrime/securesms/recipients/Recipient.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/thoughtcrime/securesms/recipients/Recipient.java b/src/org/thoughtcrime/securesms/recipients/Recipient.java index e2641231ee..f0018b697c 100644 --- a/src/org/thoughtcrime/securesms/recipients/Recipient.java +++ b/src/org/thoughtcrime/securesms/recipients/Recipient.java @@ -453,6 +453,10 @@ public class Recipient implements RecipientModifiedListener { } public synchronized @Nullable Uri getRingtone() { + if (ringtone != null && ringtone.getScheme() != null && ringtone.getScheme().startsWith("file")) { + return null; + } + return ringtone; }