From 82d02e923ad350ca0580cbfa8b4a2e791e3f3362 Mon Sep 17 00:00:00 2001 From: Efim Poberezkin <8711996+efim-poberezkin@users.noreply.github.com> Date: Tue, 8 Feb 2022 11:20:41 +0400 Subject: [PATCH] ios: add CIStatus type (#280) --- apps/ios/Shared/Model/ChatModel.swift | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/ios/Shared/Model/ChatModel.swift b/apps/ios/Shared/Model/ChatModel.swift index fe539577d2..bdd62accdf 100644 --- a/apps/ios/Shared/Model/ChatModel.swift +++ b/apps/ios/Shared/Model/ChatModel.swift @@ -409,6 +409,15 @@ struct CIMeta: Decodable { var createdAt: Date } +enum CIStatus: Decodable { + case sndNew + case sndSent + case sndErrorAuth + case sndError(agentErrorType: AgentErrorType) + case rcvNew + case rcvRead +} + func ciMetaSample(_ id: Int64, _ ts: Date, _ text: String) -> CIMeta { CIMeta( itemId: id,