From 9da3eec64f4b59a10d8f8501e70ee0a40afeac6f Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Sun, 20 Dec 2020 20:28:40 +0100 Subject: [PATCH] Fix small formatting issue --- .../android/sdk/internal/session/media/UrlsExtractor.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/media/UrlsExtractor.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/media/UrlsExtractor.kt index 87b9ab349f..e531d6af9f 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/media/UrlsExtractor.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/media/UrlsExtractor.kt @@ -32,9 +32,11 @@ internal class UrlsExtractor @Inject constructor() { return event.takeIf { it.getClearType() == EventType.MESSAGE } ?.getClearContent() ?.toModel() - ?.takeIf { it.msgType == MessageType.MSGTYPE_TEXT || - it.msgType == MessageType.MSGTYPE_NOTICE || - it.msgType == MessageType.MSGTYPE_EMOTE } + ?.takeIf { + it.msgType == MessageType.MSGTYPE_TEXT + || it.msgType == MessageType.MSGTYPE_NOTICE + || it.msgType == MessageType.MSGTYPE_EMOTE + } ?.body ?.let { urlRegex.findAll(it) } ?.map { it.value }