ProtonMail / ios-mail

Secure email that protects your privacy
http://proton.me
GNU General Public License v3.0
1.42k stars 205 forks source link

Fix missing PersistentQueue.Key in queuedMessageIds #32

Closed fernandomorgan closed 1 year ago

fernandomorgan commented 4 years ago

MessageQueue.Key hides the PersistentQueue.Key struct but in

func queuedMessageIds() -> [String]

we do access the "object" element. I am not sure how this works in Xcode 11.1, but it seems a bug. This PR adds the full qualifying name, "PersistentQueue.Key.object" (this solves an error when building with Xcode 11.5).

I think the best solution would be to encapsulate the access to the "PersistentQueue.Key.object" inside PersistentQueue itself, but that change might be more impactful.

Test plan:

Built it successfully in Xcode 11.1 and 11.5

xavigil commented 1 year ago

The master branch has been discontinued. For any question, suggestion or bug report please contact Proton’s customer support in the following link: https://proton.me/support/contact.

Thanks