From fb08cc7f91e4f394c0ce9c1c53ad4b27f64005f8 Mon Sep 17 00:00:00 2001 From: jguz-pubnub Date: Wed, 31 Jul 2024 16:33:19 +0200 Subject: [PATCH] Providing implementation for the urlDecode method (iOS) --- .../kotlin/com/pubnub/chat/internal/util/Utils.ios.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pubnub-chat-impl/src/iosMain/kotlin/com/pubnub/chat/internal/util/Utils.ios.kt b/pubnub-chat-impl/src/iosMain/kotlin/com/pubnub/chat/internal/util/Utils.ios.kt index 81ae4aed..2af8d19d 100644 --- a/pubnub-chat-impl/src/iosMain/kotlin/com/pubnub/chat/internal/util/Utils.ios.kt +++ b/pubnub-chat-impl/src/iosMain/kotlin/com/pubnub/chat/internal/util/Utils.ios.kt @@ -1,5 +1,8 @@ package com.pubnub.chat.internal.util +import platform.Foundation.NSString +import platform.Foundation.stringByRemovingPercentEncoding + internal actual fun urlDecode(encoded: String): String { - TODO("Not yet implemented") + return (encoded as NSString).stringByRemovingPercentEncoding().orEmpty() }