Documentation ¶
Index ¶
- Constants
- Variables
- func AddUserToTLFName(g *globals.Context, tlfName string, vis keybase1.TLFVisibility, ...) string
- func AggRateLimits(rlimits []chat1.RateLimit) (res []chat1.RateLimit)
- func AggRateLimitsP(rlimits []*chat1.RateLimit) (res []chat1.RateLimit)
- func AllChatConversationStatuses() (res []chat1.ConversationStatus)
- func ApplyInboxQuery(ctx context.Context, debugLabeler DebugLabeler, query *chat1.GetInboxQuery, ...) (res []types.RemoteConversation)
- func AssertLoggedInUID(ctx context.Context, g *globals.Context) (uid gregor1.UID, err error)
- func AssetsForMessage(g *globals.Context, msgBody chat1.MessageBody) (assets []chat1.Asset)
- func AttachContactNames(mctx libkb.MetaContext, participants []chat1.ConversationLocalParticipant)
- func Collar(lower int, ideal int, upper int) int
- func CreateHiddenPlaceholder(msgID chat1.MessageID) chat1.MessageUnboxed
- func CreateTopicNameState(cmp chat1.ConversationIDMessageIDPairs) (chat1.TopicNameState, error)
- func DBConvLess(a pager.InboxEntry, b pager.InboxEntry) bool
- func DecodeBase64(enc []byte) ([]byte, error)
- func DecodePagination(p *chat1.UIPagination) (res *chat1.Pagination, err error)
- func DecorateBody(ctx context.Context, body string, offset, length int, decoration interface{}) (res string, added int)
- func DecorateWithKBFSPath(ctx context.Context, body string, paths []chat1.KBFSPath) (res string)
- func DecorateWithLinks(ctx context.Context, body string) string
- func DecorateWithMentions(ctx context.Context, body string, atMentions []string, ...) string
- func DedupStringLists(lists ...[]string) (res []string)
- func EphemeralLifetimeFromConv(ctx context.Context, g *globals.Context, conv chat1.ConversationLocal) (res *gregor1.DurationSec, err error)
- func EscapeForDecorate(ctx context.Context, body string) string
- func EscapeShrugs(ctx context.Context, body string) string
- func ExportToSummary(i chat1.InboxUIItem) (s chat1.ConvSummary)
- func FilterByType(msgs []chat1.MessageUnboxed, query *chat1.GetThreadQuery, ...) (res []chat1.MessageUnboxed)
- func FilterExploded(conv types.UnboxConversationInfo, msgs []chat1.MessageUnboxed, now time.Time) (res []chat1.MessageUnboxed)
- func ForceReloadUPAKsForUIDs(ctx context.Context, g *globals.Context, uids []keybase1.UID) error
- func FormatConversationName(info chat1.ConversationInfoLocal, myUsername string) string
- func GetConvLastSendTime(rc types.RemoteConversation) gregor1.Time
- func GetConvMtime(rc types.RemoteConversation) (res gregor1.Time)
- func GetConvMtimeLocal(conv chat1.ConversationLocal) gregor1.Time
- func GetConvParticipantUsernames(ctx context.Context, g *globals.Context, uid gregor1.UID, ...) (parts []string, err error)
- func GetConvPriorityScore(rc types.RemoteConversation) float64
- func GetConvSnippet(ctx context.Context, g *globals.Context, uid gregor1.UID, ...) (chat1.SnippetDecoration, string, string)
- func GetDesktopNotificationSnippet(ctx context.Context, g *globals.Context, uid gregor1.UID, ...) string
- func GetGregorBool(ctx context.Context, g *globals.Context, key string, defaultVal bool) (bool, error)
- func GetGregorConn(ctx context.Context, g *globals.Context, log DebugLabeler, ...) (conn *rpc.Connection, token gregor1.SessionToken, err error)
- func GetMsgSnippet(ctx context.Context, g *globals.Context, uid gregor1.UID, ...) (decoration chat1.SnippetDecoration, snippet string, snippetDecorated string)
- func GetMsgSnippetBody(ctx context.Context, g *globals.Context, uid gregor1.UID, ...) (snippet, snippetDecorated string)
- func GetMsgSummaryByType(msgs []chat1.MessageSummary, typ chat1.MessageType) (chat1.MessageSummary, error)
- func GetPaymentAtMentions(ctx context.Context, upak libkb.UPAKLoader, payments []chat1.TextPayment, ...) (atMentions []chat1.KnownUserMention)
- func GetQueryRe(query string) (*regexp.Regexp, error)
- func GetReaction(msg chat1.MessageUnboxed) (string, error)
- func GetRemoteConvDisplayName(rc types.RemoteConversation) string
- func GetRemoteConvTLFName(conv types.RemoteConversation) string
- func GetSupersedes(msg chat1.MessageUnboxed) ([]chat1.MessageID, error)
- func GetTextAtMentionedItems(ctx context.Context, g *globals.Context, uid gregor1.UID, ...) (atRes []chat1.KnownUserMention, maybeRes []chat1.MaybeMention, ...)
- func GetUnverifiedConv(ctx context.Context, g *globals.Context, uid gregor1.UID, ...) (res types.RemoteConversation, err error)
- func GetVerifiedConv(ctx context.Context, g *globals.Context, uid gregor1.UID, ...) (res chat1.ConversationLocal, err error)
- func IsBadgeableMessageType(messageType chat1.MessageType) bool
- func IsCollapsibleMessageType(messageType chat1.MessageType) bool
- func IsConvEmpty(conv chat1.Conversation) bool
- func IsDeleteableByDeleteMessageType(valid chat1.MessageUnboxedValid) bool
- func IsDeletedConvError(err error) bool
- func IsEditableByEditMessageType(messageType chat1.MessageType) bool
- func IsMapUnfurl(msg chat1.MessageUnboxed) bool
- func IsNonEmptyConvMessageType(messageType chat1.MessageType) bool
- func IsNotifiableChatMessageType(messageType chat1.MessageType, atMentions []gregor1.UID, ...) bool
- func IsPermanentErr(err error) bool
- func IsSnippetChatMessageType(messageType chat1.MessageType) bool
- func IsVisibleChatMessageType(messageType chat1.MessageType) bool
- func MessageIDControlToPagination(ctx context.Context, logger DebugLabeler, control *chat1.MessageIDControl, ...) (res *chat1.Pagination)
- func NewChatTopicID() (id []byte, err error)
- func NormalizeAssertionOrName(mctx libkb.MetaContext, s string) (string, error)
- func NormalizeNamesInTLF(mctx libkb.MetaContext, writerNames, readerNames []string, ...) (string, error)
- func NotificationInfoSet(settings *chat1.ConversationNotificationInfo, apptype keybase1.DeviceType, ...)
- func ParseAtMentionedItems(ctx context.Context, g *globals.Context, body string, ...) (atRes []chat1.KnownUserMention, maybeRes []chat1.MaybeMention, ...)
- func ParseChannelNameMentions(ctx context.Context, body string, uid gregor1.UID, teamID chat1.TLFID, ...) (res []chat1.ChannelNameMention)
- func ParseDurationExtended(s string) (d time.Duration, err error)
- func ParseKBFSPaths(ctx context.Context, body string) (paths []chat1.KBFSPath)
- func ParseTimeFromRFC3339OrDurationFromPast(g *globals.Context, s string) (t time.Time, err error)
- func PickLatestMessageSummary(conv MessageSummaryContainer, typs []chat1.MessageType) (res chat1.MessageSummary, err error)
- func PluckConvIDs(convs []chat1.Conversation) (res []chat1.ConversationID)
- func PluckConvIDsLocal(convs []chat1.ConversationLocal) (res []chat1.ConversationID)
- func PluckConvIDsRC(convs []types.RemoteConversation) (res []chat1.ConversationID)
- func PluckConvs(rcs []types.RemoteConversation) (res []chat1.Conversation)
- func PluckMUMessageIDs(msgs []chat1.MessageUnboxed) (res []chat1.MessageID)
- func PluckMessageIDs(msgs []chat1.MessageSummary) []chat1.MessageID
- func PluckUIMessageIDs(msgs []chat1.UIMessage) (res []chat1.MessageID)
- func PresentBytes(bytes int64) string
- func PresentChannelNameMentions(ctx context.Context, crs []chat1.ChannelNameMention) (res []chat1.UIChannelNameMention)
- func PresentConversationErrorLocal(ctx context.Context, g *globals.Context, uid gregor1.UID, ...) (res chat1.InboxUIItemError)
- func PresentConversationLocal(ctx context.Context, g *globals.Context, uid gregor1.UID, ...) (res chat1.InboxUIItem)
- func PresentConversationLocals(ctx context.Context, g *globals.Context, uid gregor1.UID, ...) (res []chat1.InboxUIItem)
- func PresentConversationParticipantsLocal(ctx context.Context, rawParticipants []chat1.ConversationLocalParticipant) (participants []chat1.UIParticipant)
- func PresentDecoratedPendingTextBody(ctx context.Context, g *globals.Context, uid gregor1.UID, ...) *string
- func PresentDecoratedReactionMap(ctx context.Context, g *globals.Context, uid gregor1.UID, ...) (res chat1.UIReactionMap)
- func PresentDecoratedSnippet(ctx context.Context, g *globals.Context, body string, uid gregor1.UID, ...) string
- func PresentDecoratedTextBody(ctx context.Context, g *globals.Context, uid gregor1.UID, ...) *string
- func PresentDecoratedTextNoMentions(ctx context.Context, body string) string
- func PresentDecoratedUserBio(ctx context.Context, bio string) (res string)
- func PresentMessageUnboxed(ctx context.Context, g *globals.Context, rawMsg chat1.MessageUnboxed, ...) (res chat1.UIMessage)
- func PresentMessagesUnboxed(ctx context.Context, g *globals.Context, msgs []chat1.MessageUnboxed, ...) (res []chat1.UIMessage)
- func PresentPagination(p *chat1.Pagination) (res *chat1.UIPagination)
- func PresentRemoteConversation(ctx context.Context, g *globals.Context, uid gregor1.UID, ...) (res chat1.UnverifiedInboxUIItem)
- func PresentRemoteConversationAsBigTeamChannelRow(ctx context.Context, rc types.RemoteConversation) (res chat1.UIInboxBigTeamChannelRow)
- func PresentRemoteConversationAsSearchHit(conv types.RemoteConversation, username string) chat1.UIChatSearchConvHit
- func PresentRemoteConversationAsSmallTeamRow(ctx context.Context, rc types.RemoteConversation, username string) (res chat1.UIInboxSmallTeamRow)
- func PresentRemoteConversations(ctx context.Context, g *globals.Context, uid gregor1.UID, ...) (res []chat1.UnverifiedInboxUIItem)
- func PresentRemoteConversationsAsSearchHits(convs []types.RemoteConversation, username string) (res []chat1.UIChatSearchConvHit)
- func PresentThreadView(ctx context.Context, g *globals.Context, uid gregor1.UID, tv chat1.ThreadView, ...) (res chat1.UIMessages)
- func PresentUnfurl(ctx context.Context, g *globals.Context, convID chat1.ConversationID, ...) *chat1.UnfurlDisplay
- func PresentUnfurls(ctx context.Context, g *globals.Context, uid gregor1.UID, ...) (res []chat1.UIMessageUnfurlInfo)
- func RemoteConv(conv chat1.Conversation) types.RemoteConversation
- func RemoteConvs(convs []chat1.Conversation) (res []types.RemoteConversation)
- func RemoveUnfurl(mvalid *chat1.MessageUnboxedValid, unfurlMessageID chat1.MessageID)
- func ReorderParticipants(mctx libkb.MetaContext, g libkb.UIDMapperContext, umapper libkb.UIDMapper, ...) (writerNames []chat1.ConversationLocalParticipant, err error)
- func ReorderParticipantsKBFS(mctx libkb.MetaContext, g libkb.UIDMapperContext, umapper libkb.UIDMapper, ...) (writerNames []chat1.ConversationLocalParticipant, err error)
- func ReplaceQuotedSubstrings(xs string, skipAngleQuotes bool) string
- func SanitizeTopicName(topicName string) string
- func SearchableRemoteConversationName(conv types.RemoteConversation, username string) string
- func SetGregorBool(ctx context.Context, g *globals.Context, key string, disabled bool) error
- func SetUnfurl(mvalid *chat1.MessageUnboxedValid, unfurlMessageID chat1.MessageID, ...)
- func SplitAndNormalizeTLFName(mctx libkb.MetaContext, name string, public bool) (writerNames, readerNames []string, extensionSuffix string, err error)
- func SplitTLFName(tlfName string) []string
- func StripUsernameFromConvName(name string, username string) (res string)
- func SuspendComponent(ctx context.Context, g *globals.Context, suspendable types.Suspendable) func()
- func SuspendComponents(ctx context.Context, g *globals.Context, suspendables []types.Suspendable) func()
- func SystemMessageMentions(ctx context.Context, g *globals.Context, uid gregor1.UID, ...) (atMentions []gregor1.UID, chanMention chat1.ChannelMention, ...)
- func ToLastActiveStatus(mtime gregor1.Time) chat1.LastActiveStatus
- func UsernamePackageToParticipant(p libkb.UsernamePackage) chat1.ConversationLocalParticipant
- func VisibleChatConversationStatuses() (res []chat1.ConversationStatus)
- type BadTLFNameError
- type ByConvID
- type ByMsgID
- type ByMsgSummaryCtime
- type ByMsgUnboxedCtime
- type ByMsgUnboxedMsgID
- type Collapses
- func (c *Collapses) IsCollapsed(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...) bool
- func (c *Collapses) ToggleRange(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...) error
- func (c *Collapses) ToggleSingle(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...) error
- type ConvByConvID
- type ConvLocalByConvID
- type ConvLocalByTopicName
- type ConversationLockTab
- func (c *ConversationLockTab) Acquire(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID) (blocked bool, err error)
- func (c *ConversationLockTab) NumLocks() int
- func (c *ConversationLockTab) Release(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID) (released bool)
- func (c *ConversationLockTab) SetBlockCb(ch *chan struct{})
- func (c *ConversationLockTab) SetMaxAcquireRetries(n int)
- type ConversationMemberStatusBehavior
- type ConversationStatusBehavior
- type DebugLabeler
- func (d DebugLabeler) Debug(ctx context.Context, msg string, args ...interface{})
- func (d DebugLabeler) GetLog() logger.Logger
- func (d DebugLabeler) GetPerfLog() logger.Logger
- func (d DebugLabeler) PerfTrace(ctx context.Context, err *error, format string, args ...interface{}) func()
- func (d DebugLabeler) Trace(ctx context.Context, err *error, format string, args ...interface{}) func()
- type DummyChatNotifications
- func (d DummyChatNotifications) ChatArchiveComplete(context.Context, chat1.ArchiveJobID) error
- func (d DummyChatNotifications) ChatArchiveProgress(context.Context, chat1.ChatArchiveProgressArg) error
- func (d DummyChatNotifications) ChatAttachmentDownloadComplete(context.Context, chat1.ChatAttachmentDownloadCompleteArg) error
- func (d DummyChatNotifications) ChatAttachmentDownloadProgress(context.Context, chat1.ChatAttachmentDownloadProgressArg) error
- func (d DummyChatNotifications) ChatAttachmentUploadProgress(context.Context, chat1.ChatAttachmentUploadProgressArg) error
- func (d DummyChatNotifications) ChatAttachmentUploadStart(context.Context, chat1.ChatAttachmentUploadStartArg) error
- func (d DummyChatNotifications) ChatConvUpdate(context.Context, chat1.ChatConvUpdateArg) error
- func (d DummyChatNotifications) ChatIdentifyUpdate(context.Context, keybase1.CanonicalTLFNameAndIDWithBreaks) error
- func (d DummyChatNotifications) ChatInboxStale(context.Context, keybase1.UID) error
- func (d DummyChatNotifications) ChatInboxSyncStarted(context.Context, keybase1.UID) error
- func (d DummyChatNotifications) ChatInboxSynced(context.Context, chat1.ChatInboxSyncedArg) error
- func (d DummyChatNotifications) ChatJoinedConversation(context.Context, chat1.ChatJoinedConversationArg) error
- func (d DummyChatNotifications) ChatKBFSToImpteamUpgrade(context.Context, chat1.ChatKBFSToImpteamUpgradeArg) error
- func (d DummyChatNotifications) ChatLeftConversation(context.Context, chat1.ChatLeftConversationArg) error
- func (d DummyChatNotifications) ChatParticipantsInfo(context.Context, map[chat1.ConvIDStr][]chat1.UIParticipant) error
- func (d DummyChatNotifications) ChatPaymentInfo(context.Context, chat1.ChatPaymentInfoArg) error
- func (d DummyChatNotifications) ChatPromptUnfurl(context.Context, chat1.ChatPromptUnfurlArg) error
- func (d DummyChatNotifications) ChatRequestInfo(context.Context, chat1.ChatRequestInfoArg) error
- func (d DummyChatNotifications) ChatResetConversation(context.Context, chat1.ChatResetConversationArg) error
- func (d DummyChatNotifications) ChatSetConvRetention(context.Context, chat1.ChatSetConvRetentionArg) error
- func (d DummyChatNotifications) ChatSetConvSettings(context.Context, chat1.ChatSetConvSettingsArg) error
- func (d DummyChatNotifications) ChatSetTeamRetention(context.Context, chat1.ChatSetTeamRetentionArg) error
- func (d DummyChatNotifications) ChatSubteamRename(context.Context, chat1.ChatSubteamRenameArg) error
- func (d DummyChatNotifications) ChatTLFFinalize(context.Context, chat1.ChatTLFFinalizeArg) error
- func (d DummyChatNotifications) ChatTLFResolve(context.Context, chat1.ChatTLFResolveArg) error
- func (d DummyChatNotifications) ChatThreadsStale(context.Context, chat1.ChatThreadsStaleArg) error
- func (d DummyChatNotifications) ChatTypingUpdate(context.Context, []chat1.ConvTypingUpdate) error
- func (d DummyChatNotifications) ChatWelcomeMessageLoaded(context.Context, chat1.ChatWelcomeMessageLoadedArg) error
- func (d DummyChatNotifications) NewChatActivity(ctx context.Context, arg chat1.NewChatActivityArg) error
- type DummyChatUI
- func (r DummyChatUI) ChatBotCommandsUpdateStatus(context.Context, chat1.ChatBotCommandsUpdateStatusArg) error
- func (r DummyChatUI) ChatClearWatch(context.Context, chat1.ChatClearWatchArg) error
- func (r DummyChatUI) ChatCoinFlipStatus(ctx context.Context, arg chat1.ChatCoinFlipStatusArg) error
- func (r DummyChatUI) ChatCommandMarkdown(ctx context.Context, arg chat1.ChatCommandMarkdownArg) error
- func (r DummyChatUI) ChatCommandStatus(context.Context, chat1.ChatCommandStatusArg) error
- func (r DummyChatUI) ChatConfirmChannelDelete(ctx context.Context, arg chat1.ChatConfirmChannelDeleteArg) (bool, error)
- func (r DummyChatUI) ChatGiphySearchResults(ctx context.Context, arg chat1.ChatGiphySearchResultsArg) error
- func (r DummyChatUI) ChatGiphyToggleResultWindow(ctx context.Context, arg chat1.ChatGiphyToggleResultWindowArg) error
- func (r DummyChatUI) ChatInboxConversation(ctx context.Context, arg chat1.ChatInboxConversationArg) error
- func (r DummyChatUI) ChatInboxFailed(ctx context.Context, arg chat1.ChatInboxFailedArg) error
- func (r DummyChatUI) ChatInboxLayout(ctx context.Context, arg chat1.ChatInboxLayoutArg) error
- func (r DummyChatUI) ChatInboxUnverified(ctx context.Context, arg chat1.ChatInboxUnverifiedArg) error
- func (r DummyChatUI) ChatLoadGalleryHit(ctx context.Context, arg chat1.ChatLoadGalleryHitArg) error
- func (r DummyChatUI) ChatMaybeMentionUpdate(ctx context.Context, arg chat1.ChatMaybeMentionUpdateArg) error
- func (r DummyChatUI) ChatSearchBotHits(ctx context.Context, arg chat1.ChatSearchBotHitsArg) error
- func (r DummyChatUI) ChatSearchConvHits(ctx context.Context, arg chat1.ChatSearchConvHitsArg) error
- func (r DummyChatUI) ChatSearchDone(ctx context.Context, arg chat1.ChatSearchDoneArg) error
- func (r DummyChatUI) ChatSearchHit(ctx context.Context, arg chat1.ChatSearchHitArg) error
- func (r DummyChatUI) ChatSearchInboxDone(ctx context.Context, arg chat1.ChatSearchInboxDoneArg) error
- func (r DummyChatUI) ChatSearchInboxHit(ctx context.Context, arg chat1.ChatSearchInboxHitArg) error
- func (r DummyChatUI) ChatSearchInboxStart(ctx context.Context, sessionID int) error
- func (r DummyChatUI) ChatSearchIndexStatus(ctx context.Context, arg chat1.ChatSearchIndexStatusArg) error
- func (r DummyChatUI) ChatSearchTeamHits(ctx context.Context, arg chat1.ChatSearchTeamHitsArg) error
- func (r DummyChatUI) ChatShowManageChannels(ctx context.Context, arg chat1.ChatShowManageChannelsArg) error
- func (r DummyChatUI) ChatStellarDataConfirm(ctx context.Context, arg chat1.ChatStellarDataConfirmArg) (bool, error)
- func (r DummyChatUI) ChatStellarDataError(ctx context.Context, arg chat1.ChatStellarDataErrorArg) (bool, error)
- func (r DummyChatUI) ChatStellarDone(ctx context.Context, arg chat1.ChatStellarDoneArg) error
- func (r DummyChatUI) ChatStellarShowConfirm(ctx context.Context, sessionID int) error
- func (r DummyChatUI) ChatThreadCached(ctx context.Context, arg chat1.ChatThreadCachedArg) error
- func (r DummyChatUI) ChatThreadFull(ctx context.Context, arg chat1.ChatThreadFullArg) error
- func (r DummyChatUI) ChatThreadStatus(ctx context.Context, arg chat1.ChatThreadStatusArg) error
- func (r DummyChatUI) ChatWatchPosition(context.Context, chat1.ChatWatchPositionArg) (chat1.LocationWatchID, error)
- func (r DummyChatUI) TriggerContactSync(context.Context, int) error
- type MessageSummaryContainer
- type NoSuchNameError
- type NoSuchUserError
- type NullChatUI
- func (u NullChatUI) ChatBotCommandsUpdateStatus(context.Context, chat1.ConversationID, chat1.UIBotCommandsUpdateStatus) error
- func (u NullChatUI) ChatClearWatch(context.Context, chat1.LocationWatchID) error
- func (u NullChatUI) ChatCoinFlipStatus(context.Context, []chat1.UICoinFlipStatus) error
- func (u NullChatUI) ChatCommandMarkdown(context.Context, chat1.ConversationID, *chat1.UICommandMarkdown) error
- func (u NullChatUI) ChatCommandStatus(context.Context, chat1.ConversationID, string, chat1.UICommandStatusDisplayTyp, ...) error
- func (u NullChatUI) ChatConfirmChannelDelete(context.Context, chat1.ChatConfirmChannelDeleteArg) (bool, error)
- func (u NullChatUI) ChatGiphySearchResults(ctx context.Context, convID chat1.ConversationID, ...) error
- func (u NullChatUI) ChatGiphyToggleResultWindow(ctx context.Context, convID chat1.ConversationID, show, clearInput bool) error
- func (u NullChatUI) ChatInboxConversation(context.Context, chat1.ChatInboxConversationArg) error
- func (u NullChatUI) ChatInboxFailed(context.Context, chat1.ChatInboxFailedArg) error
- func (u NullChatUI) ChatInboxLayout(context.Context, string) error
- func (u NullChatUI) ChatInboxUnverified(context.Context, chat1.ChatInboxUnverifiedArg) error
- func (u NullChatUI) ChatLoadGalleryHit(context.Context, chat1.UIMessage) error
- func (u NullChatUI) ChatMaybeMentionUpdate(context.Context, string, string, chat1.UIMaybeMentionInfo) error
- func (u NullChatUI) ChatSearchBotHits(context.Context, chat1.UIChatSearchBotHits) error
- func (u NullChatUI) ChatSearchConvHits(context.Context, chat1.UIChatSearchConvHits) error
- func (u NullChatUI) ChatSearchDone(context.Context, chat1.ChatSearchDoneArg) error
- func (u NullChatUI) ChatSearchHit(context.Context, chat1.ChatSearchHitArg) error
- func (u NullChatUI) ChatSearchInboxDone(context.Context, chat1.ChatSearchInboxDoneArg) error
- func (u NullChatUI) ChatSearchInboxHit(context.Context, chat1.ChatSearchInboxHitArg) error
- func (u NullChatUI) ChatSearchInboxStart(context.Context) error
- func (u NullChatUI) ChatSearchIndexStatus(context.Context, chat1.ChatSearchIndexStatusArg) error
- func (u NullChatUI) ChatSearchTeamHits(context.Context, chat1.UIChatSearchTeamHits) error
- func (u NullChatUI) ChatShowManageChannels(context.Context, string) error
- func (u NullChatUI) ChatStellarDataConfirm(context.Context, chat1.UIChatPaymentSummary) (bool, error)
- func (u NullChatUI) ChatStellarDataError(context.Context, keybase1.Status) (bool, error)
- func (u NullChatUI) ChatStellarDone(context.Context, bool) error
- func (u NullChatUI) ChatStellarShowConfirm(context.Context) error
- func (u NullChatUI) ChatThreadCached(context.Context, *string) error
- func (u NullChatUI) ChatThreadFull(context.Context, string) error
- func (u NullChatUI) ChatThreadStatus(context.Context, chat1.UIChatThreadStatus) error
- func (u NullChatUI) ChatWatchPosition(context.Context, chat1.ConversationID, chat1.UIWatchPositionPerm) (chat1.LocationWatchID, error)
- func (u NullChatUI) TriggerContactSync(context.Context) error
- type PresentParticipantsMode
- type RemoteConvByConvID
- type RemoteConvByMtime
- type TlfNameNotCanonical
Constants ¶
const ( // ReaderSep is the string that separates readers from writers in a // TLF name. ReaderSep = "#" // TlfHandleExtensionSep is the string that separates the folder // participants from an extension suffix in the TLF name. TlfHandleExtensionSep = " " // PublicUIDName is the name given to keybase1.PublicUID. This string // should correspond to an illegal or reserved Keybase user name. PublicUIDName = "_public" )
const ( ChatTopicIDLen = 16 ChatTopicIDSuffix = 0x20 )
const ConvertHEICGregorKey = "convertheic"
const DisablePlaintextDesktopGregorKey = "disableplaintextdesktop"
const ServiceDecorationPrefix = `(?:^|[\s([/{:;.,!?"'])`
Start at the beginning of the line, space, or some hand picked artisanal characters
Variables ¶
var ErrConvLockTabDeadlock = errors.New("timeout reading thread")
var ErrGetUnverifiedConvNotFound = errors.New("GetUnverifiedConv: conversation not found")
var ErrGetVerifiedConvNotFound = errors.New("GetVerifiedConv: conversation not found")
Functions ¶
func AddUserToTLFName ¶
func AddUserToTLFName(g *globals.Context, tlfName string, vis keybase1.TLFVisibility, membersType chat1.ConversationMembersType) string
func AggRateLimitsP ¶
AggRateLimitsP takes a list of rate limit responses and dedups them to the last one received of each category
func AllChatConversationStatuses ¶
func AllChatConversationStatuses() (res []chat1.ConversationStatus)
func ApplyInboxQuery ¶
func ApplyInboxQuery(ctx context.Context, debugLabeler DebugLabeler, query *chat1.GetInboxQuery, rcs []types.RemoteConversation) (res []types.RemoteConversation)
func AssertLoggedInUID ¶
func AssetsForMessage ¶
AssetsForMessage gathers all assets on a message
func AttachContactNames ¶
func AttachContactNames(mctx libkb.MetaContext, participants []chat1.ConversationLocalParticipant)
AttachContactNames retrieves display names for SBS phones/emails that are in the phonebook. ConversationLocalParticipant structures are modified in place in `participants` passed in argument.
func CreateHiddenPlaceholder ¶
func CreateHiddenPlaceholder(msgID chat1.MessageID) chat1.MessageUnboxed
func CreateTopicNameState ¶
func CreateTopicNameState(cmp chat1.ConversationIDMessageIDPairs) (chat1.TopicNameState, error)
func DBConvLess ¶
func DBConvLess(a pager.InboxEntry, b pager.InboxEntry) bool
func DecodeBase64 ¶
func DecodePagination ¶
func DecodePagination(p *chat1.UIPagination) (res *chat1.Pagination, err error)
func DecorateBody ¶
func DecorateWithKBFSPath ¶
func DecorateWithMentions ¶
func DecorateWithMentions(ctx context.Context, body string, atMentions []string, maybeMentions []chat1.MaybeMention, chanMention chat1.ChannelMention, channelNameMentions []chat1.ChannelNameMention) string
func DedupStringLists ¶
func EphemeralLifetimeFromConv ¶
func EphemeralLifetimeFromConv(ctx context.Context, g *globals.Context, conv chat1.ConversationLocal) (res *gregor1.DurationSec, err error)
func ExportToSummary ¶
func ExportToSummary(i chat1.InboxUIItem) (s chat1.ConvSummary)
func FilterByType ¶
func FilterByType(msgs []chat1.MessageUnboxed, query *chat1.GetThreadQuery, includeAllErrors bool) (res []chat1.MessageUnboxed)
FilterByType filters messages based on a query. If includeAllErrors then MessageUnboxedError are all returned. Otherwise, they are filtered based on type. Messages whose type cannot be determined are considered errors.
func FilterExploded ¶
func FilterExploded(conv types.UnboxConversationInfo, msgs []chat1.MessageUnboxed, now time.Time) (res []chat1.MessageUnboxed)
Filter messages that are both exploded that are no longer shown in the GUI (as ash lines)
func ForceReloadUPAKsForUIDs ¶
func FormatConversationName ¶
func FormatConversationName(info chat1.ConversationInfoLocal, myUsername string) string
func GetConvLastSendTime ¶
func GetConvLastSendTime(rc types.RemoteConversation) gregor1.Time
func GetConvMtime ¶
func GetConvMtime(rc types.RemoteConversation) (res gregor1.Time)
func GetConvMtimeLocal ¶
func GetConvMtimeLocal(conv chat1.ConversationLocal) gregor1.Time
func GetConvPriorityScore ¶
func GetConvPriorityScore(rc types.RemoteConversation) float64
GetConvPriorityScore weighs conversations that are fully read above ones that are not, weighting more recently modified conversations higher.. Used to order conversations when background loading.
func GetConvSnippet ¶
func GetGregorBool ¶
func GetGregorConn ¶
func GetGregorConn(ctx context.Context, g *globals.Context, log DebugLabeler, handler func(nist *libkb.NIST) rpc.ConnectionHandler) (conn *rpc.Connection, token gregor1.SessionToken, err error)
func GetMsgSnippet ¶
func GetMsgSnippet(ctx context.Context, g *globals.Context, uid gregor1.UID, msg chat1.MessageUnboxed, conv chat1.ConversationLocal, currentUsername string) (decoration chat1.SnippetDecoration, snippet string, snippetDecorated string)
func GetMsgSnippetBody ¶
func GetMsgSummaryByType ¶
func GetMsgSummaryByType(msgs []chat1.MessageSummary, typ chat1.MessageType) (chat1.MessageSummary, error)
func GetPaymentAtMentions ¶
func GetPaymentAtMentions(ctx context.Context, upak libkb.UPAKLoader, payments []chat1.TextPayment, l *DebugLabeler) (atMentions []chat1.KnownUserMention)
func GetQueryRe ¶
GetQueryRe returns a regex to match the query string on message text. This is used for result highlighting.
func GetReaction ¶
func GetReaction(msg chat1.MessageUnboxed) (string, error)
func GetRemoteConvDisplayName ¶
func GetRemoteConvDisplayName(rc types.RemoteConversation) string
func GetRemoteConvTLFName ¶
func GetRemoteConvTLFName(conv types.RemoteConversation) string
func GetSupersedes ¶
func GetSupersedes(msg chat1.MessageUnboxed) ([]chat1.MessageID, error)
GetSupersedes must be called with a valid msg
func GetTextAtMentionedItems ¶
func GetTextAtMentionedItems(ctx context.Context, g *globals.Context, uid gregor1.UID, convID chat1.ConversationID, msg chat1.MessageText, getConvMembs func() ([]string, error), debug *DebugLabeler) (atRes []chat1.KnownUserMention, maybeRes []chat1.MaybeMention, chanRes chat1.ChannelMention)
func GetUnverifiedConv ¶
func GetUnverifiedConv(ctx context.Context, g *globals.Context, uid gregor1.UID, convID chat1.ConversationID, dataSource types.InboxSourceDataSourceTyp) (res types.RemoteConversation, err error)
func GetVerifiedConv ¶
func GetVerifiedConv(ctx context.Context, g *globals.Context, uid gregor1.UID, convID chat1.ConversationID, dataSource types.InboxSourceDataSourceTyp) (res chat1.ConversationLocal, err error)
func IsBadgeableMessageType ¶
func IsBadgeableMessageType(messageType chat1.MessageType) bool
func IsCollapsibleMessageType ¶
func IsCollapsibleMessageType(messageType chat1.MessageType) bool
func IsConvEmpty ¶
func IsConvEmpty(conv chat1.Conversation) bool
func IsDeleteableByDeleteMessageType ¶
func IsDeleteableByDeleteMessageType(valid chat1.MessageUnboxedValid) bool
func IsDeletedConvError ¶
func IsEditableByEditMessageType ¶
func IsEditableByEditMessageType(messageType chat1.MessageType) bool
func IsMapUnfurl ¶
func IsMapUnfurl(msg chat1.MessageUnboxed) bool
func IsNonEmptyConvMessageType ¶
func IsNonEmptyConvMessageType(messageType chat1.MessageType) bool
func IsNotifiableChatMessageType ¶
func IsNotifiableChatMessageType(messageType chat1.MessageType, atMentions []gregor1.UID, chanMention chat1.ChannelMention) bool
func IsPermanentErr ¶
func IsSnippetChatMessageType ¶
func IsSnippetChatMessageType(messageType chat1.MessageType) bool
func IsVisibleChatMessageType ¶
func IsVisibleChatMessageType(messageType chat1.MessageType) bool
func MessageIDControlToPagination ¶
func MessageIDControlToPagination(ctx context.Context, logger DebugLabeler, control *chat1.MessageIDControl, conv *types.RemoteConversation) (res *chat1.Pagination)
func NewChatTopicID ¶
func NormalizeAssertionOrName ¶
func NormalizeAssertionOrName(mctx libkb.MetaContext, s string) (string, error)
TODO: this function can likely be replaced with a call to AssertionParseAndOnly when CORE-2967 and CORE-2968 are fixed.
func NormalizeNamesInTLF ¶
func NormalizeNamesInTLF(mctx libkb.MetaContext, writerNames, readerNames []string, extensionSuffix string) (string, error)
normalizeNamesInTLF takes a split TLF name and, without doing any resolutions or identify calls, normalizes all elements of the name. It then returns the normalized name.
func NotificationInfoSet ¶
func NotificationInfoSet(settings *chat1.ConversationNotificationInfo, apptype keybase1.DeviceType, kind chat1.NotificationKind, enabled bool)
func ParseAtMentionedItems ¶
func ParseAtMentionedItems(ctx context.Context, g *globals.Context, body string, knownMentions []chat1.KnownUserMention, getConvMembs func() ([]string, error)) (atRes []chat1.KnownUserMention, maybeRes []chat1.MaybeMention, chanRes chat1.ChannelMention)
func ParseDurationExtended ¶
parseDurationExtended is like time.ParseDuration, but adds "d" unit. "1d" is one day, defined as 24*time.Hour. Only whole days are supported for "d" unit, but it can be followed by smaller units, e.g., "1d1h".
func ParseKBFSPaths ¶
func PickLatestMessageSummary ¶
func PickLatestMessageSummary(conv MessageSummaryContainer, typs []chat1.MessageType) (res chat1.MessageSummary, err error)
func PluckConvIDs ¶
func PluckConvIDs(convs []chat1.Conversation) (res []chat1.ConversationID)
func PluckConvIDsLocal ¶
func PluckConvIDsLocal(convs []chat1.ConversationLocal) (res []chat1.ConversationID)
func PluckConvIDsRC ¶
func PluckConvIDsRC(convs []types.RemoteConversation) (res []chat1.ConversationID)
func PluckConvs ¶
func PluckConvs(rcs []types.RemoteConversation) (res []chat1.Conversation)
func PluckMUMessageIDs ¶
func PluckMUMessageIDs(msgs []chat1.MessageUnboxed) (res []chat1.MessageID)
func PluckMessageIDs ¶
func PluckMessageIDs(msgs []chat1.MessageSummary) []chat1.MessageID
func PresentBytes ¶
func PresentChannelNameMentions ¶
func PresentChannelNameMentions(ctx context.Context, crs []chat1.ChannelNameMention) (res []chat1.UIChannelNameMention)
func PresentConversationErrorLocal ¶
func PresentConversationErrorLocal(ctx context.Context, g *globals.Context, uid gregor1.UID, rawConv chat1.ConversationErrorLocal) (res chat1.InboxUIItemError)
func PresentConversationLocal ¶
func PresentConversationLocal(ctx context.Context, g *globals.Context, uid gregor1.UID, rawConv chat1.ConversationLocal, partMode PresentParticipantsMode) (res chat1.InboxUIItem)
func PresentConversationLocals ¶
func PresentConversationLocals(ctx context.Context, g *globals.Context, uid gregor1.UID, convs []chat1.ConversationLocal, partMode PresentParticipantsMode) (res []chat1.InboxUIItem)
func PresentConversationParticipantsLocal ¶
func PresentConversationParticipantsLocal(ctx context.Context, rawParticipants []chat1.ConversationLocalParticipant) (participants []chat1.UIParticipant)
func PresentDecoratedReactionMap ¶
func PresentDecoratedReactionMap(ctx context.Context, g *globals.Context, uid gregor1.UID, convID chat1.ConversationID, msg chat1.MessageUnboxedValid, reactions chat1.ReactionMap) (res chat1.UIReactionMap)
func PresentDecoratedSnippet ¶
func PresentDecoratedUserBio ¶
func PresentMessageUnboxed ¶
func PresentMessagesUnboxed ¶
func PresentPagination ¶
func PresentPagination(p *chat1.Pagination) (res *chat1.UIPagination)
func PresentRemoteConversation ¶
func PresentRemoteConversation(ctx context.Context, g *globals.Context, uid gregor1.UID, rc types.RemoteConversation) (res chat1.UnverifiedInboxUIItem)
func PresentRemoteConversationAsBigTeamChannelRow ¶
func PresentRemoteConversationAsBigTeamChannelRow(ctx context.Context, rc types.RemoteConversation) (res chat1.UIInboxBigTeamChannelRow)
func PresentRemoteConversationAsSearchHit ¶
func PresentRemoteConversationAsSearchHit(conv types.RemoteConversation, username string) chat1.UIChatSearchConvHit
func PresentRemoteConversationAsSmallTeamRow ¶
func PresentRemoteConversationAsSmallTeamRow(ctx context.Context, rc types.RemoteConversation, username string) (res chat1.UIInboxSmallTeamRow)
func PresentRemoteConversations ¶
func PresentRemoteConversations(ctx context.Context, g *globals.Context, uid gregor1.UID, rcs []types.RemoteConversation) (res []chat1.UnverifiedInboxUIItem)
func PresentRemoteConversationsAsSearchHits ¶
func PresentRemoteConversationsAsSearchHits(convs []types.RemoteConversation, username string) (res []chat1.UIChatSearchConvHit)
func PresentThreadView ¶
func PresentThreadView(ctx context.Context, g *globals.Context, uid gregor1.UID, tv chat1.ThreadView, convID chat1.ConversationID) (res chat1.UIMessages)
func PresentUnfurl ¶
func PresentUnfurl(ctx context.Context, g *globals.Context, convID chat1.ConversationID, u chat1.Unfurl) *chat1.UnfurlDisplay
func PresentUnfurls ¶
func PresentUnfurls(ctx context.Context, g *globals.Context, uid gregor1.UID, convID chat1.ConversationID, unfurls map[chat1.MessageID]chat1.UnfurlResult) (res []chat1.UIMessageUnfurlInfo)
func RemoteConv ¶
func RemoteConv(conv chat1.Conversation) types.RemoteConversation
func RemoteConvs ¶
func RemoteConvs(convs []chat1.Conversation) (res []types.RemoteConversation)
func RemoveUnfurl ¶
func RemoveUnfurl(mvalid *chat1.MessageUnboxedValid, unfurlMessageID chat1.MessageID)
func ReorderParticipants ¶
func ReorderParticipants(mctx libkb.MetaContext, g libkb.UIDMapperContext, umapper libkb.UIDMapper, tlfName string, verifiedMembers []string, activeList []gregor1.UID) (writerNames []chat1.ConversationLocalParticipant, err error)
ReorderParticipants based on the order in activeList. Only allows usernames from tlfname in the output. This never fails, worse comes to worst it just returns the split of tlfname.
func ReorderParticipantsKBFS ¶
func ReorderParticipantsKBFS(mctx libkb.MetaContext, g libkb.UIDMapperContext, umapper libkb.UIDMapper, tlfName string, activeList []gregor1.UID) (writerNames []chat1.ConversationLocalParticipant, err error)
func ReplaceQuotedSubstrings ¶
func SanitizeTopicName ¶
func SearchableRemoteConversationName ¶
func SearchableRemoteConversationName(conv types.RemoteConversation, username string) string
func SetGregorBool ¶
func SetUnfurl ¶
func SetUnfurl(mvalid *chat1.MessageUnboxedValid, unfurlMessageID chat1.MessageID, unfurl chat1.UnfurlResult)
func SplitTLFName ¶
func SuspendComponent ¶
func SuspendComponent(ctx context.Context, g *globals.Context, suspendable types.Suspendable) func()
SuspendComponent will suspend a Suspendable type until the return function is called. This allows a succinct call like defer SuspendComponent(ctx, g, g.ConvLoader)() in RPC handlers wishing to lock out the conv loader.
func SuspendComponents ¶
func SystemMessageMentions ¶
func SystemMessageMentions(ctx context.Context, g *globals.Context, uid gregor1.UID, body chat1.MessageSystem) (atMentions []gregor1.UID, chanMention chat1.ChannelMention, channelNameMentions []chat1.ChannelNameMention)
func ToLastActiveStatus ¶
func ToLastActiveStatus(mtime gregor1.Time) chat1.LastActiveStatus
func UsernamePackageToParticipant ¶
func UsernamePackageToParticipant(p libkb.UsernamePackage) chat1.ConversationLocalParticipant
func VisibleChatConversationStatuses ¶
func VisibleChatConversationStatuses() (res []chat1.ConversationStatus)
Which convs show in the inbox.
Types ¶
type BadTLFNameError ¶
type BadTLFNameError struct {
Name string
}
BadTLFNameError indicates a top-level folder name that has an incorrect format.
func (BadTLFNameError) Error ¶
func (e BadTLFNameError) Error() string
Error implements the error interface for BadTLFNameError.
type ByConvID ¶
type ByConvID []chat1.ConversationID
type ByMsgSummaryCtime ¶
type ByMsgSummaryCtime []chat1.MessageSummary
func (ByMsgSummaryCtime) Len ¶
func (c ByMsgSummaryCtime) Len() int
func (ByMsgSummaryCtime) Less ¶
func (c ByMsgSummaryCtime) Less(i, j int) bool
func (ByMsgSummaryCtime) Swap ¶
func (c ByMsgSummaryCtime) Swap(i, j int)
type ByMsgUnboxedCtime ¶
type ByMsgUnboxedCtime []chat1.MessageUnboxed
func (ByMsgUnboxedCtime) Len ¶
func (c ByMsgUnboxedCtime) Len() int
func (ByMsgUnboxedCtime) Less ¶
func (c ByMsgUnboxedCtime) Less(i, j int) bool
func (ByMsgUnboxedCtime) Swap ¶
func (c ByMsgUnboxedCtime) Swap(i, j int)
type ByMsgUnboxedMsgID ¶
type ByMsgUnboxedMsgID []chat1.MessageUnboxed
func (ByMsgUnboxedMsgID) Len ¶
func (c ByMsgUnboxedMsgID) Len() int
func (ByMsgUnboxedMsgID) Less ¶
func (c ByMsgUnboxedMsgID) Less(i, j int) bool
func (ByMsgUnboxedMsgID) Swap ¶
func (c ByMsgUnboxedMsgID) Swap(i, j int)
type Collapses ¶
type Collapses struct { globals.Contextified DebugLabeler // contains filtered or unexported fields }
func NewCollapses ¶
func (*Collapses) IsCollapsed ¶
func (*Collapses) ToggleRange ¶
type ConvByConvID ¶
type ConvByConvID []chat1.Conversation
func (ConvByConvID) Len ¶
func (c ConvByConvID) Len() int
func (ConvByConvID) Less ¶
func (c ConvByConvID) Less(i, j int) bool
func (ConvByConvID) Swap ¶
func (c ConvByConvID) Swap(i, j int)
type ConvLocalByConvID ¶
type ConvLocalByConvID []chat1.ConversationLocal
func (ConvLocalByConvID) Len ¶
func (c ConvLocalByConvID) Len() int
func (ConvLocalByConvID) Less ¶
func (c ConvLocalByConvID) Less(i, j int) bool
func (ConvLocalByConvID) Swap ¶
func (c ConvLocalByConvID) Swap(i, j int)
type ConvLocalByTopicName ¶
type ConvLocalByTopicName []chat1.ConversationLocal
func (ConvLocalByTopicName) Len ¶
func (c ConvLocalByTopicName) Len() int
func (ConvLocalByTopicName) Less ¶
func (c ConvLocalByTopicName) Less(i, j int) bool
func (ConvLocalByTopicName) Swap ¶
func (c ConvLocalByTopicName) Swap(i, j int)
type ConversationLockTab ¶
type ConversationLockTab struct { globals.Contextified sync.Mutex DebugLabeler // contains filtered or unexported fields }
func NewConversationLockTab ¶
func NewConversationLockTab(g *globals.Context) *ConversationLockTab
func (*ConversationLockTab) Acquire ¶
func (c *ConversationLockTab) Acquire(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID) (blocked bool, err error)
Acquire obtains a per user per conversation lock on a per trace basis. That is, the lock is a shared lock for the current chat trace, and serves to synchronize large chat operations. If there is no chat trace, this is a no-op.
func (*ConversationLockTab) NumLocks ¶
func (c *ConversationLockTab) NumLocks() int
func (*ConversationLockTab) Release ¶
func (c *ConversationLockTab) Release(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID) (released bool)
func (*ConversationLockTab) SetBlockCb ¶
func (c *ConversationLockTab) SetBlockCb(ch *chan struct{})
func (*ConversationLockTab) SetMaxAcquireRetries ¶
func (c *ConversationLockTab) SetMaxAcquireRetries(n int)
type ConversationMemberStatusBehavior ¶
type ConversationMemberStatusBehavior struct { // Whether to show the conv in the inbox ShowInInbox bool // Whether to show desktop notifications DesktopNotifications bool // Whether to send push notifications PushNotifications bool // Whether to show as part of badging ShowBadges bool }
ConversationMemberStatusBehavior describes how a ConversationMemberStatus behaves
func GetConversationMemberStatusBehavior ¶
func GetConversationMemberStatusBehavior(s chat1.ConversationMemberStatus) ConversationMemberStatusBehavior
type ConversationStatusBehavior ¶
type ConversationStatusBehavior struct { // Whether to show the conv in the inbox ShowInInbox bool // Whether sending to this conv sets it back to UNFILED SendingRemovesStatus bool // Whether any incoming activity sets it back to UNFILED ActivityRemovesStatus bool // Whether to show desktop notifications DesktopNotifications bool // Whether to send push notifications PushNotifications bool // Whether to show as part of badging ShowBadges bool }
ConversationStatusBehavior describes how a ConversationStatus behaves
func GetConversationStatusBehavior ¶
func GetConversationStatusBehavior(s chat1.ConversationStatus) ConversationStatusBehavior
GetConversationStatusBehavior gives information about what is allowed for a conversation status. When changing these, be sure to update gregor's postMessage as well
type DebugLabeler ¶
type DebugLabeler struct { libkb.Contextified // contains filtered or unexported fields }
func NewDebugLabeler ¶
func NewDebugLabeler(g *libkb.GlobalContext, label string, verbose bool) DebugLabeler
func (DebugLabeler) Debug ¶
func (d DebugLabeler) Debug(ctx context.Context, msg string, args ...interface{})
func (DebugLabeler) GetLog ¶
func (d DebugLabeler) GetLog() logger.Logger
func (DebugLabeler) GetPerfLog ¶
func (d DebugLabeler) GetPerfLog() logger.Logger
type DummyChatNotifications ¶
type DummyChatNotifications struct{}
func (DummyChatNotifications) ChatArchiveComplete ¶
func (d DummyChatNotifications) ChatArchiveComplete(context.Context, chat1.ArchiveJobID) error
func (DummyChatNotifications) ChatArchiveProgress ¶
func (d DummyChatNotifications) ChatArchiveProgress(context.Context, chat1.ChatArchiveProgressArg) error
func (DummyChatNotifications) ChatAttachmentDownloadComplete ¶
func (d DummyChatNotifications) ChatAttachmentDownloadComplete(context.Context, chat1.ChatAttachmentDownloadCompleteArg) error
func (DummyChatNotifications) ChatAttachmentDownloadProgress ¶
func (d DummyChatNotifications) ChatAttachmentDownloadProgress(context.Context, chat1.ChatAttachmentDownloadProgressArg) error
func (DummyChatNotifications) ChatAttachmentUploadProgress ¶
func (d DummyChatNotifications) ChatAttachmentUploadProgress(context.Context, chat1.ChatAttachmentUploadProgressArg) error
func (DummyChatNotifications) ChatAttachmentUploadStart ¶
func (d DummyChatNotifications) ChatAttachmentUploadStart(context.Context, chat1.ChatAttachmentUploadStartArg) error
func (DummyChatNotifications) ChatConvUpdate ¶
func (d DummyChatNotifications) ChatConvUpdate(context.Context, chat1.ChatConvUpdateArg) error
func (DummyChatNotifications) ChatIdentifyUpdate ¶
func (d DummyChatNotifications) ChatIdentifyUpdate(context.Context, keybase1.CanonicalTLFNameAndIDWithBreaks) error
func (DummyChatNotifications) ChatInboxStale ¶
func (DummyChatNotifications) ChatInboxSyncStarted ¶
func (DummyChatNotifications) ChatInboxSynced ¶
func (d DummyChatNotifications) ChatInboxSynced(context.Context, chat1.ChatInboxSyncedArg) error
func (DummyChatNotifications) ChatJoinedConversation ¶
func (d DummyChatNotifications) ChatJoinedConversation(context.Context, chat1.ChatJoinedConversationArg) error
func (DummyChatNotifications) ChatKBFSToImpteamUpgrade ¶
func (d DummyChatNotifications) ChatKBFSToImpteamUpgrade(context.Context, chat1.ChatKBFSToImpteamUpgradeArg) error
func (DummyChatNotifications) ChatLeftConversation ¶
func (d DummyChatNotifications) ChatLeftConversation(context.Context, chat1.ChatLeftConversationArg) error
func (DummyChatNotifications) ChatParticipantsInfo ¶
func (d DummyChatNotifications) ChatParticipantsInfo(context.Context, map[chat1.ConvIDStr][]chat1.UIParticipant) error
func (DummyChatNotifications) ChatPaymentInfo ¶
func (d DummyChatNotifications) ChatPaymentInfo(context.Context, chat1.ChatPaymentInfoArg) error
func (DummyChatNotifications) ChatPromptUnfurl ¶
func (d DummyChatNotifications) ChatPromptUnfurl(context.Context, chat1.ChatPromptUnfurlArg) error
func (DummyChatNotifications) ChatRequestInfo ¶
func (d DummyChatNotifications) ChatRequestInfo(context.Context, chat1.ChatRequestInfoArg) error
func (DummyChatNotifications) ChatResetConversation ¶
func (d DummyChatNotifications) ChatResetConversation(context.Context, chat1.ChatResetConversationArg) error
func (DummyChatNotifications) ChatSetConvRetention ¶
func (d DummyChatNotifications) ChatSetConvRetention(context.Context, chat1.ChatSetConvRetentionArg) error
func (DummyChatNotifications) ChatSetConvSettings ¶
func (d DummyChatNotifications) ChatSetConvSettings(context.Context, chat1.ChatSetConvSettingsArg) error
func (DummyChatNotifications) ChatSetTeamRetention ¶
func (d DummyChatNotifications) ChatSetTeamRetention(context.Context, chat1.ChatSetTeamRetentionArg) error
func (DummyChatNotifications) ChatSubteamRename ¶
func (d DummyChatNotifications) ChatSubteamRename(context.Context, chat1.ChatSubteamRenameArg) error
func (DummyChatNotifications) ChatTLFFinalize ¶
func (d DummyChatNotifications) ChatTLFFinalize(context.Context, chat1.ChatTLFFinalizeArg) error
func (DummyChatNotifications) ChatTLFResolve ¶
func (d DummyChatNotifications) ChatTLFResolve(context.Context, chat1.ChatTLFResolveArg) error
func (DummyChatNotifications) ChatThreadsStale ¶
func (d DummyChatNotifications) ChatThreadsStale(context.Context, chat1.ChatThreadsStaleArg) error
func (DummyChatNotifications) ChatTypingUpdate ¶
func (d DummyChatNotifications) ChatTypingUpdate(context.Context, []chat1.ConvTypingUpdate) error
func (DummyChatNotifications) ChatWelcomeMessageLoaded ¶
func (d DummyChatNotifications) ChatWelcomeMessageLoaded(context.Context, chat1.ChatWelcomeMessageLoadedArg) error
func (DummyChatNotifications) NewChatActivity ¶
func (d DummyChatNotifications) NewChatActivity(ctx context.Context, arg chat1.NewChatActivityArg) error
type DummyChatUI ¶
type DummyChatUI struct{}
func (DummyChatUI) ChatBotCommandsUpdateStatus ¶
func (r DummyChatUI) ChatBotCommandsUpdateStatus(context.Context, chat1.ChatBotCommandsUpdateStatusArg) error
func (DummyChatUI) ChatClearWatch ¶
func (r DummyChatUI) ChatClearWatch(context.Context, chat1.ChatClearWatchArg) error
func (DummyChatUI) ChatCoinFlipStatus ¶
func (r DummyChatUI) ChatCoinFlipStatus(ctx context.Context, arg chat1.ChatCoinFlipStatusArg) error
func (DummyChatUI) ChatCommandMarkdown ¶
func (r DummyChatUI) ChatCommandMarkdown(ctx context.Context, arg chat1.ChatCommandMarkdownArg) error
func (DummyChatUI) ChatCommandStatus ¶
func (r DummyChatUI) ChatCommandStatus(context.Context, chat1.ChatCommandStatusArg) error
func (DummyChatUI) ChatConfirmChannelDelete ¶
func (r DummyChatUI) ChatConfirmChannelDelete(ctx context.Context, arg chat1.ChatConfirmChannelDeleteArg) (bool, error)
func (DummyChatUI) ChatGiphySearchResults ¶
func (r DummyChatUI) ChatGiphySearchResults(ctx context.Context, arg chat1.ChatGiphySearchResultsArg) error
func (DummyChatUI) ChatGiphyToggleResultWindow ¶
func (r DummyChatUI) ChatGiphyToggleResultWindow(ctx context.Context, arg chat1.ChatGiphyToggleResultWindowArg) error
func (DummyChatUI) ChatInboxConversation ¶
func (r DummyChatUI) ChatInboxConversation(ctx context.Context, arg chat1.ChatInboxConversationArg) error
func (DummyChatUI) ChatInboxFailed ¶
func (r DummyChatUI) ChatInboxFailed(ctx context.Context, arg chat1.ChatInboxFailedArg) error
func (DummyChatUI) ChatInboxLayout ¶
func (r DummyChatUI) ChatInboxLayout(ctx context.Context, arg chat1.ChatInboxLayoutArg) error
func (DummyChatUI) ChatInboxUnverified ¶
func (r DummyChatUI) ChatInboxUnverified(ctx context.Context, arg chat1.ChatInboxUnverifiedArg) error
func (DummyChatUI) ChatLoadGalleryHit ¶
func (r DummyChatUI) ChatLoadGalleryHit(ctx context.Context, arg chat1.ChatLoadGalleryHitArg) error
func (DummyChatUI) ChatMaybeMentionUpdate ¶
func (r DummyChatUI) ChatMaybeMentionUpdate(ctx context.Context, arg chat1.ChatMaybeMentionUpdateArg) error
func (DummyChatUI) ChatSearchBotHits ¶
func (r DummyChatUI) ChatSearchBotHits(ctx context.Context, arg chat1.ChatSearchBotHitsArg) error
func (DummyChatUI) ChatSearchConvHits ¶
func (r DummyChatUI) ChatSearchConvHits(ctx context.Context, arg chat1.ChatSearchConvHitsArg) error
func (DummyChatUI) ChatSearchDone ¶
func (r DummyChatUI) ChatSearchDone(ctx context.Context, arg chat1.ChatSearchDoneArg) error
func (DummyChatUI) ChatSearchHit ¶
func (r DummyChatUI) ChatSearchHit(ctx context.Context, arg chat1.ChatSearchHitArg) error
func (DummyChatUI) ChatSearchInboxDone ¶
func (r DummyChatUI) ChatSearchInboxDone(ctx context.Context, arg chat1.ChatSearchInboxDoneArg) error
func (DummyChatUI) ChatSearchInboxHit ¶
func (r DummyChatUI) ChatSearchInboxHit(ctx context.Context, arg chat1.ChatSearchInboxHitArg) error
func (DummyChatUI) ChatSearchInboxStart ¶
func (r DummyChatUI) ChatSearchInboxStart(ctx context.Context, sessionID int) error
func (DummyChatUI) ChatSearchIndexStatus ¶
func (r DummyChatUI) ChatSearchIndexStatus(ctx context.Context, arg chat1.ChatSearchIndexStatusArg) error
func (DummyChatUI) ChatSearchTeamHits ¶
func (r DummyChatUI) ChatSearchTeamHits(ctx context.Context, arg chat1.ChatSearchTeamHitsArg) error
func (DummyChatUI) ChatShowManageChannels ¶
func (r DummyChatUI) ChatShowManageChannels(ctx context.Context, arg chat1.ChatShowManageChannelsArg) error
func (DummyChatUI) ChatStellarDataConfirm ¶
func (r DummyChatUI) ChatStellarDataConfirm(ctx context.Context, arg chat1.ChatStellarDataConfirmArg) (bool, error)
func (DummyChatUI) ChatStellarDataError ¶
func (r DummyChatUI) ChatStellarDataError(ctx context.Context, arg chat1.ChatStellarDataErrorArg) (bool, error)
func (DummyChatUI) ChatStellarDone ¶
func (r DummyChatUI) ChatStellarDone(ctx context.Context, arg chat1.ChatStellarDoneArg) error
func (DummyChatUI) ChatStellarShowConfirm ¶
func (r DummyChatUI) ChatStellarShowConfirm(ctx context.Context, sessionID int) error
func (DummyChatUI) ChatThreadCached ¶
func (r DummyChatUI) ChatThreadCached(ctx context.Context, arg chat1.ChatThreadCachedArg) error
func (DummyChatUI) ChatThreadFull ¶
func (r DummyChatUI) ChatThreadFull(ctx context.Context, arg chat1.ChatThreadFullArg) error
func (DummyChatUI) ChatThreadStatus ¶
func (r DummyChatUI) ChatThreadStatus(ctx context.Context, arg chat1.ChatThreadStatusArg) error
func (DummyChatUI) ChatWatchPosition ¶
func (r DummyChatUI) ChatWatchPosition(context.Context, chat1.ChatWatchPositionArg) (chat1.LocationWatchID, error)
func (DummyChatUI) TriggerContactSync ¶
func (r DummyChatUI) TriggerContactSync(context.Context, int) error
type MessageSummaryContainer ¶
type MessageSummaryContainer interface {
GetMaxMessage(typ chat1.MessageType) (chat1.MessageSummary, error)
}
type NoSuchNameError ¶
type NoSuchNameError struct {
Name string
}
NoSuchNameError indicates that the user tried to access a subdirectory entry that doesn't exist.
func (NoSuchNameError) Error ¶
func (e NoSuchNameError) Error() string
Error implements the error interface for NoSuchNameError
type NoSuchUserError ¶
type NoSuchUserError struct {
Input string
}
NoSuchUserError indicates that the given user couldn't be resolved.
func (NoSuchUserError) Error ¶
func (e NoSuchUserError) Error() string
Error implements the error interface for NoSuchUserError
func (NoSuchUserError) ToStatus ¶
func (e NoSuchUserError) ToStatus() keybase1.Status
ToStatus implements the keybase1.ToStatusAble interface for NoSuchUserError
type NullChatUI ¶
type NullChatUI struct{}
func (NullChatUI) ChatBotCommandsUpdateStatus ¶
func (u NullChatUI) ChatBotCommandsUpdateStatus(context.Context, chat1.ConversationID, chat1.UIBotCommandsUpdateStatus) error
func (NullChatUI) ChatClearWatch ¶
func (u NullChatUI) ChatClearWatch(context.Context, chat1.LocationWatchID) error
func (NullChatUI) ChatCoinFlipStatus ¶
func (u NullChatUI) ChatCoinFlipStatus(context.Context, []chat1.UICoinFlipStatus) error
func (NullChatUI) ChatCommandMarkdown ¶
func (u NullChatUI) ChatCommandMarkdown(context.Context, chat1.ConversationID, *chat1.UICommandMarkdown) error
func (NullChatUI) ChatCommandStatus ¶
func (u NullChatUI) ChatCommandStatus(context.Context, chat1.ConversationID, string, chat1.UICommandStatusDisplayTyp, []chat1.UICommandStatusActionTyp) error
func (NullChatUI) ChatConfirmChannelDelete ¶
func (u NullChatUI) ChatConfirmChannelDelete(context.Context, chat1.ChatConfirmChannelDeleteArg) (bool, error)
func (NullChatUI) ChatGiphySearchResults ¶
func (u NullChatUI) ChatGiphySearchResults(ctx context.Context, convID chat1.ConversationID, results chat1.GiphySearchResults) error
func (NullChatUI) ChatGiphyToggleResultWindow ¶
func (u NullChatUI) ChatGiphyToggleResultWindow(ctx context.Context, convID chat1.ConversationID, show, clearInput bool) error
func (NullChatUI) ChatInboxConversation ¶
func (u NullChatUI) ChatInboxConversation(context.Context, chat1.ChatInboxConversationArg) error
func (NullChatUI) ChatInboxFailed ¶
func (u NullChatUI) ChatInboxFailed(context.Context, chat1.ChatInboxFailedArg) error
func (NullChatUI) ChatInboxLayout ¶
func (u NullChatUI) ChatInboxLayout(context.Context, string) error
func (NullChatUI) ChatInboxUnverified ¶
func (u NullChatUI) ChatInboxUnverified(context.Context, chat1.ChatInboxUnverifiedArg) error
func (NullChatUI) ChatLoadGalleryHit ¶
func (NullChatUI) ChatMaybeMentionUpdate ¶
func (u NullChatUI) ChatMaybeMentionUpdate(context.Context, string, string, chat1.UIMaybeMentionInfo) error
func (NullChatUI) ChatSearchBotHits ¶
func (u NullChatUI) ChatSearchBotHits(context.Context, chat1.UIChatSearchBotHits) error
func (NullChatUI) ChatSearchConvHits ¶
func (u NullChatUI) ChatSearchConvHits(context.Context, chat1.UIChatSearchConvHits) error
func (NullChatUI) ChatSearchDone ¶
func (u NullChatUI) ChatSearchDone(context.Context, chat1.ChatSearchDoneArg) error
func (NullChatUI) ChatSearchHit ¶
func (u NullChatUI) ChatSearchHit(context.Context, chat1.ChatSearchHitArg) error
func (NullChatUI) ChatSearchInboxDone ¶
func (u NullChatUI) ChatSearchInboxDone(context.Context, chat1.ChatSearchInboxDoneArg) error
func (NullChatUI) ChatSearchInboxHit ¶
func (u NullChatUI) ChatSearchInboxHit(context.Context, chat1.ChatSearchInboxHitArg) error
func (NullChatUI) ChatSearchInboxStart ¶
func (u NullChatUI) ChatSearchInboxStart(context.Context) error
func (NullChatUI) ChatSearchIndexStatus ¶
func (u NullChatUI) ChatSearchIndexStatus(context.Context, chat1.ChatSearchIndexStatusArg) error
func (NullChatUI) ChatSearchTeamHits ¶
func (u NullChatUI) ChatSearchTeamHits(context.Context, chat1.UIChatSearchTeamHits) error
func (NullChatUI) ChatShowManageChannels ¶
func (u NullChatUI) ChatShowManageChannels(context.Context, string) error
func (NullChatUI) ChatStellarDataConfirm ¶
func (u NullChatUI) ChatStellarDataConfirm(context.Context, chat1.UIChatPaymentSummary) (bool, error)
func (NullChatUI) ChatStellarDataError ¶
func (NullChatUI) ChatStellarDone ¶
func (u NullChatUI) ChatStellarDone(context.Context, bool) error
func (NullChatUI) ChatStellarShowConfirm ¶
func (u NullChatUI) ChatStellarShowConfirm(context.Context) error
func (NullChatUI) ChatThreadCached ¶
func (u NullChatUI) ChatThreadCached(context.Context, *string) error
func (NullChatUI) ChatThreadFull ¶
func (u NullChatUI) ChatThreadFull(context.Context, string) error
func (NullChatUI) ChatThreadStatus ¶
func (u NullChatUI) ChatThreadStatus(context.Context, chat1.UIChatThreadStatus) error
func (NullChatUI) ChatWatchPosition ¶
func (u NullChatUI) ChatWatchPosition(context.Context, chat1.ConversationID, chat1.UIWatchPositionPerm) (chat1.LocationWatchID, error)
func (NullChatUI) TriggerContactSync ¶
func (u NullChatUI) TriggerContactSync(context.Context) error
type PresentParticipantsMode ¶
type PresentParticipantsMode int
const ( PresentParticipantsModeInclude PresentParticipantsMode = iota PresentParticipantsModeSkip )
type RemoteConvByConvID ¶
type RemoteConvByConvID []types.RemoteConversation
func (RemoteConvByConvID) Len ¶
func (c RemoteConvByConvID) Len() int
func (RemoteConvByConvID) Less ¶
func (c RemoteConvByConvID) Less(i, j int) bool
func (RemoteConvByConvID) Swap ¶
func (c RemoteConvByConvID) Swap(i, j int)
type RemoteConvByMtime ¶
type RemoteConvByMtime []types.RemoteConversation
func (RemoteConvByMtime) Len ¶
func (c RemoteConvByMtime) Len() int
func (RemoteConvByMtime) Less ¶
func (c RemoteConvByMtime) Less(i, j int) bool
func (RemoteConvByMtime) Swap ¶
func (c RemoteConvByMtime) Swap(i, j int)
type TlfNameNotCanonical ¶
type TlfNameNotCanonical struct {
Name, NameToTry string
}
TlfNameNotCanonical indicates that a name isn't a canonical, and that another (not necessarily canonical) name should be tried.
func (TlfNameNotCanonical) Error ¶
func (e TlfNameNotCanonical) Error() string