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:
EvgenyandEvgeny @ SimpleX Chat authored and GitHub committed 2026-10-17 19:23:53 +01:00
1 parent 9a90d8e230
commit 77f9f4a464
29 files changed
+101 -45

No files matched your search

+3 -1
View File
@@ -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