|
| 1 | +package utils |
| 2 | + |
| 3 | +import ( |
| 4 | + "github.com/keybase/client/go/libkb" |
| 5 | + "github.com/keybase/client/go/protocol/chat1" |
| 6 | + "github.com/keybase/client/go/protocol/keybase1" |
| 7 | + "golang.org/x/net/context" |
| 8 | +) |
| 9 | + |
| 10 | +type NullChatUI struct{} |
| 11 | + |
| 12 | +var _ libkb.ChatUI = (*NullChatUI)(nil) |
| 13 | + |
| 14 | +func (u NullChatUI) ChatAttachmentDownloadStart(context.Context) error { return nil } |
| 15 | +func (u NullChatUI) ChatAttachmentDownloadProgress(context.Context, chat1.ChatAttachmentDownloadProgressArg) error { |
| 16 | + return nil |
| 17 | +} |
| 18 | +func (u NullChatUI) ChatAttachmentDownloadDone(context.Context) error { return nil } |
| 19 | +func (u NullChatUI) ChatInboxUnverified(context.Context, chat1.ChatInboxUnverifiedArg) error { |
| 20 | + return nil |
| 21 | +} |
| 22 | +func (u NullChatUI) ChatInboxConversation(context.Context, chat1.ChatInboxConversationArg) error { |
| 23 | + return nil |
| 24 | +} |
| 25 | +func (u NullChatUI) ChatInboxFailed(context.Context, chat1.ChatInboxFailedArg) error { return nil } |
| 26 | +func (u NullChatUI) ChatThreadCached(context.Context, *string) error { return nil } |
| 27 | +func (u NullChatUI) ChatThreadFull(context.Context, string) error { return nil } |
| 28 | +func (u NullChatUI) ChatThreadStatus(context.Context, chat1.UIChatThreadStatus) error { return nil } |
| 29 | +func (u NullChatUI) ChatConfirmChannelDelete(context.Context, chat1.ChatConfirmChannelDeleteArg) (bool, error) { |
| 30 | + return false, nil |
| 31 | +} |
| 32 | +func (u NullChatUI) ChatSearchHit(context.Context, chat1.ChatSearchHitArg) error { return nil } |
| 33 | +func (u NullChatUI) ChatSearchDone(context.Context, chat1.ChatSearchDoneArg) error { return nil } |
| 34 | +func (u NullChatUI) ChatSearchInboxHit(context.Context, chat1.ChatSearchInboxHitArg) error { return nil } |
| 35 | +func (u NullChatUI) ChatSearchInboxStart(context.Context) error { return nil } |
| 36 | +func (u NullChatUI) ChatSearchInboxDone(context.Context, chat1.ChatSearchInboxDoneArg) error { |
| 37 | + return nil |
| 38 | +} |
| 39 | +func (u NullChatUI) ChatSearchIndexStatus(context.Context, chat1.ChatSearchIndexStatusArg) error { |
| 40 | + return nil |
| 41 | +} |
| 42 | +func (u NullChatUI) ChatSearchConvHits(context.Context, chat1.UIChatSearchConvHits) error { return nil } |
| 43 | +func (u NullChatUI) ChatStellarShowConfirm(context.Context) error { return nil } |
| 44 | +func (u NullChatUI) ChatStellarDataConfirm(context.Context, chat1.UIChatPaymentSummary) (bool, error) { |
| 45 | + return false, nil |
| 46 | +} |
| 47 | +func (u NullChatUI) ChatStellarDataError(context.Context, keybase1.Status) (bool, error) { |
| 48 | + return false, nil |
| 49 | +} |
| 50 | +func (u NullChatUI) ChatStellarDone(context.Context, bool) error { return nil } |
| 51 | +func (u NullChatUI) ChatGiphySearchResults(ctx context.Context, convID chat1.ConversationID, |
| 52 | + results chat1.GiphySearchResults) error { |
| 53 | + return nil |
| 54 | +} |
| 55 | +func (u NullChatUI) ChatGiphyToggleResultWindow(ctx context.Context, convID chat1.ConversationID, show, clearInput bool) error { |
| 56 | + return nil |
| 57 | +} |
| 58 | +func (u NullChatUI) ChatShowManageChannels(context.Context, string) error { return nil } |
| 59 | +func (u NullChatUI) ChatCoinFlipStatus(context.Context, []chat1.UICoinFlipStatus) error { return nil } |
| 60 | +func (u NullChatUI) ChatCommandMarkdown(context.Context, chat1.ConversationID, *chat1.UICommandMarkdown) error { |
| 61 | + return nil |
| 62 | +} |
| 63 | +func (u NullChatUI) ChatMaybeMentionUpdate(context.Context, string, string, chat1.UIMaybeMentionInfo) error { |
| 64 | + return nil |
| 65 | +} |
| 66 | +func (u NullChatUI) ChatLoadGalleryHit(context.Context, chat1.UIMessage) error { return nil } |
| 67 | +func (u NullChatUI) ChatWatchPosition(context.Context, chat1.ConversationID, chat1.UIWatchPositionPerm) (chat1.LocationWatchID, error) { |
| 68 | + return 0, nil |
| 69 | +} |
| 70 | +func (u NullChatUI) ChatClearWatch(context.Context, chat1.LocationWatchID) error { return nil } |
| 71 | +func (u NullChatUI) ChatCommandStatus(context.Context, chat1.ConversationID, string, chat1.UICommandStatusDisplayTyp, |
| 72 | + []chat1.UICommandStatusActionTyp) error { |
| 73 | + return nil |
| 74 | +} |
| 75 | +func (u NullChatUI) ChatBotCommandsUpdateStatus(context.Context, chat1.ConversationID, chat1.UIBotCommandsUpdateStatus) error { |
| 76 | + return nil |
| 77 | +} |
| 78 | +func (u NullChatUI) TriggerContactSync(context.Context) error { return nil } |
0 commit comments