From 3efcb5dfa102e8f794e8bae8e4e78c4ed37969af Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Thu, 10 Dec 2015 03:35:59 -0800 Subject: [PATCH] Fix libphonenumber shortcode data for Finland Fixes #4853 // FREEBIE --- src/org/thoughtcrime/securesms/util/ShortCodeUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/util/ShortCodeUtil.java b/src/org/thoughtcrime/securesms/util/ShortCodeUtil.java index 7c679a022e..941b2e5291 100644 --- a/src/org/thoughtcrime/securesms/util/ShortCodeUtil.java +++ b/src/org/thoughtcrime/securesms/util/ShortCodeUtil.java @@ -29,8 +29,8 @@ public class ShortCodeUtil { String localCountryCode = util.getRegionCodeForNumber(localNumberObject); String bareNumber = number.replaceAll("[^0-9+]", ""); - // libphonenumber doesn't seem to be correct for Germany - if (bareNumber.length() <= 6 && "DE".equals(localCountryCode)) { + // libphonenumber doesn't seem to be correct for Germany and Finland + if (bareNumber.length() <= 6 && ("DE".equals(localCountryCode) || "FI".equals(localCountryCode))) { return true; }