| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Simplex.Chat.View
Documentation
type CurrentTime = UTCTime Source #
data WCallCommand Source #
Constructors
| WCCallStart | |
| WCCallOffer | |
| WCCallAnswer | |
Fields
| |
Instances
| ToJSON WCallCommand Source # | |
Defined in Simplex.Chat.View Methods toJSON :: WCallCommand -> Value toEncoding :: WCallCommand -> Encoding toJSONList :: [WCallCommand] -> Value toEncodingList :: [WCallCommand] -> Encoding omitField :: WCallCommand -> Bool | |
serializeChatError :: Bool -> ChatConfig -> ChatError -> String Source #
serializeChatResponse :: ChatResponseEvent r => (Maybe RemoteHostId, Maybe User) -> ChatConfig -> CurrentTime -> TimeZone -> Maybe RemoteHostId -> r -> String Source #
class ChatResponseEvent r where Source #
Methods
responseToView :: (Maybe RemoteHostId, Maybe User) -> ChatConfig -> Bool -> CurrentTime -> TimeZone -> Maybe RemoteHostId -> r -> [StyledString] Source #
isCommandResponse :: Bool Source #
Instances
| ChatResponseEvent ChatEvent Source # | |
Defined in Simplex.Chat.View Methods responseToView :: (Maybe RemoteHostId, Maybe User) -> ChatConfig -> Bool -> CurrentTime -> TimeZone -> Maybe RemoteHostId -> ChatEvent -> [StyledString] Source # isCommandResponse :: Bool Source # | |
| ChatResponseEvent ChatResponse Source # | |
Defined in Simplex.Chat.View Methods responseToView :: (Maybe RemoteHostId, Maybe User) -> ChatConfig -> Bool -> CurrentTime -> TimeZone -> Maybe RemoteHostId -> ChatResponse -> [StyledString] Source # isCommandResponse :: Bool Source # | |
chatErrorToView :: Bool -> ChatConfig -> ChatError -> [StyledString] Source #
chatResponseToView :: (Maybe RemoteHostId, Maybe User) -> ChatConfig -> Bool -> CurrentTime -> TimeZone -> Maybe RemoteHostId -> ChatResponse -> [StyledString] Source #
ttyUserPrefix :: (Maybe RemoteHostId, Maybe User) -> Maybe RemoteHostId -> User -> [StyledString] -> [StyledString] Source #
viewSubErrorsSummary :: [ConnSubResult] -> [StyledString] Source #
contactList :: [ContactRef] -> String Source #
chatEventToView :: (Maybe RemoteHostId, Maybe User) -> ChatConfig -> Bool -> CurrentTime -> TimeZone -> Maybe RemoteHostId -> ChatEvent -> [StyledString] Source #
chatDirNtf :: forall (c :: ChatType) (d :: MsgDirection). User -> ChatInfo c -> CIDirection c d -> Bool -> Bool Source #
contactNtf :: User -> Contact -> Bool -> Bool Source #
showMessageNtf :: ChatSettings -> Bool -> Bool Source #
chatItemDeletedText :: forall (c :: ChatType) (d :: MsgDirection). ChatItem c d -> Maybe GroupMember -> Maybe Text Source #
viewUsersList :: [UserInfo] -> [StyledString] Source #
showSMPServer :: SMPServer -> String Source #
viewHostEvent :: AProtocolType -> TransportHost -> String Source #
viewChats :: CurrentTime -> TimeZone -> [AChat] -> [StyledString] Source #
viewChatItems :: (User -> [StyledString] -> [StyledString]) -> (forall (c :: ChatType) (d :: MsgDirection). User -> ChatInfo c -> ChatItem c d -> [StyledString] -> [StyledString]) -> User -> [AChatItem] -> UTCTime -> TimeZone -> [StyledString] Source #
viewChatItem :: forall (c :: ChatType) (d :: MsgDirection). MsgDirectionI d => ChatInfo c -> ChatItem c d -> Bool -> CurrentTime -> TimeZone -> [StyledString] Source #
viewChatItemInfo :: AChatItem -> ChatItemInfo -> TimeZone -> [StyledString] Source #
viewChatItemStatusUpdated :: AChatItem -> CurrentTime -> TimeZone -> Bool -> Bool -> [StyledString] Source #
viewDeliveryReceiptPartial :: MsgReceiptStatus -> StyledString Source #
viewDeliveryReceipt :: MsgReceiptStatus -> StyledString Source #
viewItemUpdate :: forall (d :: MsgDirection) (c :: ChatType). MsgDirectionI d => ChatInfo c -> ChatItem c d -> Bool -> CurrentTime -> TimeZone -> [StyledString] Source #
hideLive :: forall (c :: ChatType) (d :: MsgDirection). CIMeta c d -> [StyledString] -> [StyledString] Source #
viewItemNotChanged :: AChatItem -> [StyledString] Source #
viewChatItemsDeleted :: (forall (c :: ChatType) (d :: MsgDirection). ChatInfo c -> ChatItem c d -> [StyledString] -> [StyledString]) -> [ChatItemDeletion] -> Bool -> Bool -> UTCTime -> TimeZone -> Bool -> [StyledString] Source #
viewGroupChatItemsDeleted :: GroupInfo -> [ChatItemId] -> Bool -> Maybe GroupMember -> [StyledString] Source #
viewItemDelete :: forall (c :: ChatType) (d :: MsgDirection). ChatInfo c -> ChatItem c d -> Maybe AChatItem -> Bool -> Bool -> CurrentTime -> TimeZone -> Bool -> [StyledString] Source #
viewItemReaction :: forall (c :: ChatType) (d :: MsgDirection). Bool -> ChatInfo c -> CIReaction c d -> Bool -> CurrentTime -> TimeZone -> [StyledString] Source #
viewItemReactions :: forall (c :: ChatType) (d :: MsgDirection). ChatItem c d -> [StyledString] Source #
viewReactionMembers :: [MemberReaction] -> [StyledString] Source #
directQuote :: forall (d' :: MsgDirection). MsgDirectionI d' => CIDirection 'CTDirect d' -> CIQuote 'CTDirect -> [StyledString] Source #
groupQuote :: GroupInfo -> CIQuote 'CTGroup -> [StyledString] Source #
forwardedFrom :: CIForwardedFrom -> [StyledString] Source #
sentByMember :: GroupInfo -> CIQDirection 'CTGroup -> Maybe GroupMember Source #
sentByMember' :: forall (d :: MsgDirection). GroupInfo -> CIDirection 'CTGroup d -> GroupMember Source #
quoteText :: MsgContent -> StyledString -> [StyledString] Source #
msgPreview :: MsgContent -> [StyledString] Source #
viewRcvIntegrityError :: forall (c :: ChatType). StyledString -> MsgErrorType -> CurrentTime -> TimeZone -> CIMeta c 'MDRcv -> [StyledString] Source #
viewMsgIntegrityError :: MsgErrorType -> [StyledString] Source #
viewContactNotFound :: ContactName -> Maybe (GroupInfo, GroupMember) -> [StyledString] Source #
viewChatCleared :: AChatInfo -> [StyledString] Source #
viewContactsList :: [Contact] -> [StyledString] Source #
viewForwardPlan :: Int -> [ChatItemId] -> Maybe ForwardConfirmation -> [StyledString] Source #
connReqContact_ :: StyledString -> CreatedLinkContact -> [StyledString] Source #
groupLink_ :: StyledString -> GroupInfo -> GroupLink -> [StyledString] Source #
viewGroupLinkDeleted :: GroupInfo -> [StyledString] Source #
viewSentInvitation :: Maybe Profile -> Bool -> [StyledString] Source #
viewStartedConnectionToContact :: Contact -> Maybe Profile -> Bool -> [StyledString] Source #
viewStartedConnectionToGroup :: GroupInfo -> Maybe Profile -> Bool -> [StyledString] Source #
viewReceivedContactRequest :: ContactName -> Profile -> [StyledString] Source #
viewGroupCreated :: GroupInfo -> Bool -> [StyledString] Source #
viewUserJoinedGroup :: GroupInfo -> [StyledString] Source #
viewJoinedGroupMember :: GroupInfo -> GroupMember -> [StyledString] Source #
viewMemberAccepted :: GroupInfo -> GroupMember -> [StyledString] Source #
viewSupportChatRead :: GroupInfo -> GroupMember -> [StyledString] Source #
viewMemberAcceptedByOther :: GroupInfo -> GroupMember -> GroupMember -> [StyledString] Source #
viewJoinedGroupMemberConnecting :: GroupInfo -> GroupMember -> GroupMember -> [StyledString] Source #
viewReceivedGroupInvitation :: GroupInfo -> Contact -> GroupMemberRole -> [StyledString] Source #
groupPreserved :: GroupInfo -> [StyledString] Source #
viewMemberRoleChanged :: GroupInfo -> GroupMember -> GroupMember -> GroupMemberRole -> GroupMemberRole -> [StyledString] Source #
viewMemberRoleUserChanged :: GroupInfo -> [GroupMember] -> GroupMemberRole -> [StyledString] Source #
viewMemberBlockedForAll :: GroupInfo -> GroupMember -> GroupMember -> Bool -> [StyledString] Source #
viewMembersBlockedForAllUser :: GroupInfo -> [GroupMember] -> Bool -> [StyledString] Source #
viewGroupMembers :: Group -> [StyledString] Source #
viewMemberSupportChats :: GroupInfo -> [GroupMember] -> [StyledString] Source #
viewContactConnected :: Contact -> Maybe Profile -> Bool -> [StyledString] Source #
viewGroupsList :: [GroupInfo] -> [StyledString] Source #
viewSentGroupInvitation :: GroupInfo -> Contact -> [StyledString] Source #
viewNewMemberContactReceivedInv :: User -> Contact -> GroupInfo -> GroupMember -> [StyledString] Source #
viewContactAndMemberAssociated :: Contact -> GroupInfo -> GroupMember -> Contact -> [StyledString] Source #
viewUserProfile :: Profile -> [StyledString] Source #
viewUserPrivacy :: User -> User -> [StyledString] Source #
viewConnDiffSync :: DatabaseDiff AgentUserId -> DatabaseDiff AgentConnId -> [StyledString] Source #
viewConnDiffSummary :: DatabaseDiff AgentUserId -> DatabaseDiff AgentConnId -> [StyledString] Source #
viewConnDiffSummary' :: DatabaseDiff AgentUserId -> DatabaseDiff AgentConnId -> [StyledString] Source #
viewConnDiffIds :: DatabaseDiff AgentUserId -> DatabaseDiff AgentConnId -> [StyledString] Source #
subStatusStr :: SubscriptionStatus -> String Source #
protocolName :: forall (p :: ProtocolType). ProtocolTypeI p => SProtocolType p -> StyledString Source #
viewServerTestResult :: AProtoServerWithAuth -> Maybe ProtocolTestFailure -> [StyledString] Source #
viewServerOperators :: [ServerOperator] -> Maybe UsageConditionsAction -> [StyledString] Source #
viewOperator :: forall (s :: DBStored). ServerOperator' s -> Text Source #
shortViewOperator :: ServerOperator -> Text Source #
viewOpIdTag :: forall (s :: DBStored). ServerOperator' s -> Text Source #
viewOpConditions :: ConditionsAcceptance -> Text Source #
viewOpEnabled :: forall (s :: DBStored). ServerOperator' s -> Text Source #
viewUsageConditions :: UsageConditions -> Maybe UsageConditions -> [StyledString] Source #
viewChatItemTTL :: Maybe Int64 -> [StyledString] Source #
viewNetworkConfig :: NetworkConfig -> [StyledString] Source #
smpProxyModeStr :: SMPProxyMode -> SMPProxyFallback -> String Source #
viewContactInfo :: Contact -> Maybe ConnectionStats -> Maybe Profile -> [StyledString] Source #
viewGroupInfo :: GroupInfo -> [StyledString] Source #
viewUITheme :: Maybe UIThemeEntityOverrides -> [StyledString] Source #
viewCustomData :: Maybe CustomData -> [StyledString] Source #
viewGroupMemberInfo :: GroupInfo -> GroupMember -> Maybe ConnectionStats -> [StyledString] Source #
viewConnectionVerified :: Maybe SecurityCode -> StyledString Source #
viewConnectionStats :: ConnectionStats -> [StyledString] Source #
viewRcvQueuesInfo :: [RcvQueueInfo] -> StyledString Source #
viewSndQueuesInfo :: [SndQueueInfo] -> StyledString Source #
viewContactSwitch :: Contact -> SwitchProgress -> [StyledString] Source #
viewGroupMemberSwitch :: GroupInfo -> GroupMember -> SwitchProgress -> [StyledString] Source #
viewGroupMemberRatchetSync :: GroupInfo -> GroupMember -> RatchetSyncProgress -> [StyledString] Source #
viewContactCode :: Contact -> Text -> Bool -> [StyledString] Source #
viewGroupMemberCode :: GroupInfo -> GroupMember -> Text -> Bool -> [StyledString] Source #
viewSecurityCode :: StyledString -> Text -> Text -> Bool -> [StyledString] Source #
viewSwitchPhase :: SwitchPhase -> StyledString Source #
viewUserProfileUpdated :: Profile -> Profile -> UserProfileUpdateSummary -> [StyledString] Source #
viewUserProfileImage :: Profile -> [StyledString] Source #
viewUserContactPrefsUpdated :: User -> Contact -> Contact -> [StyledString] Source #
viewContactPrefsUpdated :: User -> Contact -> Contact -> [StyledString] Source #
viewContactPreferences :: User -> Contact -> Contact -> ContactUserPreferences -> [StyledString] Source #
viewContactPref :: FullPreferences -> FullPreferences -> Maybe Preferences -> ContactUserPreferences -> AChatFeature -> Maybe StyledString Source #
viewPrefsUpdated :: Maybe Preferences -> Maybe Preferences -> [StyledString] Source #
countactUserPrefText :: forall (f :: ChatFeature). FeatureI f => ContactUserPref (FeaturePreference f) -> Text Source #
viewGroupUpdated :: GroupInfo -> GroupInfo -> Maybe GroupMember -> [StyledString] Source #
viewGroupProfile :: GroupInfo -> [StyledString] Source #
viewGroupDescription :: GroupInfo -> [StyledString] Source #
bold' :: String -> StyledString Source #
viewConnectionIncognitoUpdated :: PendingContactConnection -> Maybe Profile -> Bool -> [StyledString] Source #
viewConnectionUserChanged :: User -> PendingContactConnection -> User -> PendingContactConnection -> [StyledString] Source #
viewContactUserChanged :: User -> Contact -> User -> Contact -> [StyledString] Source #
viewGroupUserChanged :: User -> GroupInfo -> User -> GroupInfo -> [StyledString] Source #
viewConnectionPlan :: ChatConfig -> ACreatedConnLink -> ConnectionPlan -> [StyledString] Source #
viewContactUpdated :: Contact -> Contact -> [StyledString] Source #
viewReceivedMessage :: forall (c :: ChatType) (d :: MsgDirection). StyledString -> [StyledString] -> MsgContent -> CurrentTime -> TimeZone -> CIMeta c d -> [StyledString] Source #
viewReceivedUpdatedMessage :: forall (c :: ChatType) (d :: MsgDirection). StyledString -> [StyledString] -> MsgContent -> CurrentTime -> TimeZone -> CIMeta c d -> [StyledString] Source #
viewReceivedMessage_ :: forall (c :: ChatType) (d :: MsgDirection). Bool -> StyledString -> [StyledString] -> MsgContent -> CurrentTime -> TimeZone -> CIMeta c d -> [StyledString] Source #
viewReceivedReaction :: StyledString -> [StyledString] -> StyledString -> CurrentTime -> TimeZone -> UTCTime -> [StyledString] Source #
receivedWithTime_ :: forall (c :: ChatType) (d :: MsgDirection). CurrentTime -> TimeZone -> StyledString -> [StyledString] -> CIMeta c d -> [StyledString] -> Bool -> [StyledString] Source #
ttyMsgTime :: CurrentTime -> TimeZone -> UTCTime -> StyledString Source #
recent :: CurrentTime -> TimeZone -> UTCTime -> Bool Source #
viewSentMessage :: forall (c :: ChatType) (d :: MsgDirection). StyledString -> [StyledString] -> MsgContent -> CurrentTime -> TimeZone -> CIMeta c d -> [StyledString] Source #
viewSentBroadcast :: MsgContent -> Int -> Int -> CurrentTime -> TimeZone -> UTCTime -> [StyledString] Source #
viewSentFileInvitation :: forall (d :: MsgDirection) (c :: ChatType). StyledString -> CIFile d -> CurrentTime -> TimeZone -> CIMeta c d -> [StyledString] Source #
sentWithTime_ :: forall (c :: ChatType) (d :: MsgDirection). CurrentTime -> TimeZone -> [StyledString] -> CIMeta c d -> [StyledString] Source #
ttyMsgContent :: MsgContent -> [StyledString] Source #
prependFirst :: StyledString -> [StyledString] -> [StyledString] Source #
msgPlain :: Text -> [StyledString] Source #
viewSndFileCancelled :: FileTransferMeta -> [SndFileTransfer] -> [StyledString] Source #
sendingFile_ :: StyledString -> SndFileTransfer -> [StyledString] Source #
uploadingFile :: StyledString -> AChatItem -> [StyledString] Source #
standaloneUploadComplete :: FileTransferMeta -> [Text] -> [StyledString] Source #
viewReceivedFileInvitation :: forall (d :: MsgDirection) (c :: ChatType). StyledString -> CIFile d -> CurrentTime -> TimeZone -> CIMeta c d -> [StyledString] Source #
receivedFileInvitation_ :: forall (d :: MsgDirection). CIFile d -> [StyledString] Source #
humanReadableSize :: Integer -> StyledString Source #
savingFile' :: AChatItem -> [StyledString] Source #
receivingFile_' :: (Maybe RemoteHostId, Maybe User) -> Bool -> String -> AChatItem -> [StyledString] Source #
receivingFileStandalone :: String -> RcvFileTransfer -> [StyledString] Source #
viewLocalFile :: forall (d :: MsgDirection) (c :: ChatType). StyledString -> CIFile d -> CurrentTime -> TimeZone -> CIMeta c d -> [StyledString] Source #
cryptoFileArgsStr :: Bool -> CryptoFileArgs -> StyledString Source #
fileFrom :: forall (c :: ChatType) (d :: MsgDirection). ChatInfo c -> CIDirection c d -> StyledString Source #
receivingFile_ :: StyledString -> RcvFileTransfer -> [StyledString] Source #
fileTransferStr :: Int64 -> String -> StyledString Source #
viewFileTransferStatus :: (FileTransfer, [Integer]) -> [StyledString] Source #
listRecipients :: [SndFileTransfer] -> StyledString Source #
fileProgress :: [Integer] -> Integer -> Integer -> StyledString Source #
fileProgressXFTP :: Int64 -> Int64 -> Integer -> StyledString Source #
viewCallInvitation :: Contact -> CallType -> Maybe Key -> [StyledString] Source #
viewCallOffer :: Contact -> CallType -> WebRTCSession -> Maybe Key -> [StyledString] Source #
viewCallAnswer :: Contact -> WebRTCSession -> [StyledString] Source #
callMediaStr :: CallType -> StyledString Source #
viewVersionInfo :: ChatLogLevel -> CoreVersionInfo -> [StyledString] Source #
viewRemoteHosts :: [RemoteHostInfo] -> [StyledString] Source #
viewRemoteCtrls :: [RemoteCtrlInfo] -> [StyledString] Source #
viewRemoteCtrl :: CtrlAppInfo -> AppVersion -> Bool -> StyledString Source #
viewChatError :: Bool -> ChatLogLevel -> Bool -> ChatError -> [StyledString] Source #
viewConnectionEntityInactive :: ConnectionEntity -> Bool -> [StyledString] Source #
viewJSON :: ToJSON a => a -> StyledString Source #
ttyContact :: ContactName -> StyledString Source #
ttyContact' :: Contact -> StyledString Source #
ttyFullContact :: Contact -> StyledString Source #
ttyMember :: GroupMember -> StyledString Source #
ttyFullName :: ContactName -> Text -> Maybe Text -> StyledString Source #
ttyToContact' :: Contact -> StyledString Source #
ttyQuotedMember :: Maybe GroupMember -> StyledString Source #
ttyFromContact :: Contact -> StyledString Source #
ttyFromContactDeleted :: Contact -> Maybe Text -> StyledString Source #
ttyGroup :: GroupName -> StyledString Source #
ttyGroup' :: GroupInfo -> StyledString Source #
viewContactName :: Contact -> Text Source #
viewGroupName :: GroupInfo -> Text Source #
viewMemberName :: GroupMember -> Text Source #
ttyGroups :: [GroupName] -> StyledString Source #
ttyFullGroup :: GroupInfo -> StyledString Source #
ttyFromGroup :: GroupInfo -> Maybe GroupChatScopeInfo -> GroupMember -> StyledString Source #
ttyFromGroupAttention :: GroupInfo -> Maybe GroupChatScopeInfo -> GroupMember -> Bool -> StyledString Source #
ttyFromGroupEdited :: GroupInfo -> Maybe GroupChatScopeInfo -> GroupMember -> StyledString Source #
ttyFromGroupDeleted :: GroupInfo -> Maybe GroupChatScopeInfo -> GroupMember -> Maybe Text -> StyledString Source #
fromGroup_ :: GroupInfo -> Maybe GroupChatScopeInfo -> GroupMember -> Text Source #
fromGroupAttention_ :: GroupInfo -> Maybe GroupChatScopeInfo -> GroupMember -> Bool -> Text Source #
ttyFrom :: Text -> StyledString Source #
ttyTo :: Text -> StyledString Source #
ttyToGroup :: GroupInfo -> Maybe GroupChatScopeInfo -> StyledString Source #
ttyToGroupEdited :: GroupInfo -> Maybe GroupChatScopeInfo -> StyledString Source #
groupScopeInfoStr :: Maybe GroupChatScopeInfo -> Text Source #
ttyFilePath :: FilePath -> StyledString Source #
optFullName :: ContactName -> Text -> Maybe Text -> StyledString Source #
ctIncognito :: Contact -> StyledString Source #
highlight :: StyledFormat a => a -> StyledString Source #
highlight' :: String -> StyledString Source #
styleIncognito :: StyledFormat a => a -> StyledString Source #
styleIncognito' :: String -> StyledString Source #
styleTime :: String -> StyledString Source #
ttyError :: StyledFormat a => a -> StyledString Source #
ttyError' :: String -> StyledString Source #