mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-22 10:32:27 +00:00
core: add peer type "agent" (#7738)
* add agent peer type * bot types * agent app icons * refactor * smaller image --------- Co-authored-by: Evgeny @ SimpleX Chat <259188159+evgeny-simplex@users.noreply.github.com>
This commit is contained in:
1 parent
9a90d8e230
commit
77f9f4a464
29 files changed
+101
-45
No files matched your search
@@ -749,7 +749,7 @@ data Profile = Profile
|
||||
}
|
||||
deriving (Eq, Show)
|
||||
|
||||
data ChatPeerType = CPTHuman | CPTBot | CPTBusiness | CPTUnknown Text
|
||||
data ChatPeerType = CPTHuman | CPTBot | CPTBusiness | CPTAgent | CPTUnknown Text
|
||||
deriving (Eq, Show)
|
||||
|
||||
instance FromJSON ChatPeerType where
|
||||
@@ -768,11 +768,13 @@ instance TextEncoding ChatPeerType where
|
||||
"human" -> CPTHuman
|
||||
"bot" -> CPTBot
|
||||
"business" -> CPTBusiness
|
||||
"agent" -> CPTAgent
|
||||
tag -> CPTUnknown tag
|
||||
textEncode = \case
|
||||
CPTHuman -> "human"
|
||||
CPTBot -> "bot"
|
||||
CPTBusiness -> "business"
|
||||
CPTAgent -> "agent"
|
||||
CPTUnknown tag -> tag
|
||||
|
||||
profileFromName :: ContactName -> Profile
|
||||
|
||||
Reference in new issue
Block a user