From 50181dc4c4bbd02d412a827e1c377716f8ddadc7 Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Thu, 21 Sep 2023 10:00:19 -0700 Subject: [PATCH] Fix Remote Attachments Scheme not matching (#165) * make iOS match JS and Android * bump the pod spec --- Sources/XMTP/Codecs/RemoteAttachmentCodec.swift | 4 ++-- XMTP.podspec | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/XMTP/Codecs/RemoteAttachmentCodec.swift b/Sources/XMTP/Codecs/RemoteAttachmentCodec.swift index c50e3891..bfd63fc8 100644 --- a/Sources/XMTP/Codecs/RemoteAttachmentCodec.swift +++ b/Sources/XMTP/Codecs/RemoteAttachmentCodec.swift @@ -31,7 +31,7 @@ struct HTTPFetcher: RemoteContentFetcher { public struct RemoteAttachment { public enum Scheme: String { - case https = "https://" + case https = "https" } public var url: String @@ -149,7 +149,7 @@ public struct RemoteAttachmentCodec: ContentCodec { "secret": content.secret.toHex, "salt": content.salt.toHex, "nonce": content.nonce.toHex, - "scheme": "https://", + "scheme": "https", "contentLength": String(content.contentLength ?? -1), "filename": content.filename ?? "", ] diff --git a/XMTP.podspec b/XMTP.podspec index fbc3c7c4..8d57dac4 100644 --- a/XMTP.podspec +++ b/XMTP.podspec @@ -16,7 +16,7 @@ Pod::Spec.new do |spec| # spec.name = "XMTP" - spec.version = "0.5.10-alpha0" + spec.version = "0.5.11-alpha0" spec.summary = "XMTP SDK Cocoapod" # This description is used to generate tags and improve search results.