Skip to content

Commit

Permalink
Contextify
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickxb committed Sep 15, 2017
1 parent a15d0bc commit c47fcf2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions go/client/cmd_chat_renamechannel.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

type CmdChatRenameChannel struct {
g *libkb.GlobalContext
libkb.Contextified

resolvingRequest chatConversationResolvingRequest
setTopicName string
Expand All @@ -22,9 +22,7 @@ type CmdChatRenameChannel struct {
}

func NewCmdChatRenameChannelRunner(g *libkb.GlobalContext) *CmdChatRenameChannel {
return &CmdChatRenameChannel{
g: g,
}
return &CmdChatRenameChannel{Contextified: libkb.NewContextified(g)}
}

func newCmdChatRenameChannel(cl *libcmdline.CommandLine, g *libkb.GlobalContext) cli.Command {
Expand All @@ -41,8 +39,8 @@ func newCmdChatRenameChannel(cl *libcmdline.CommandLine, g *libkb.GlobalContext)
}

func (c *CmdChatRenameChannel) Run() error {
c.g.StartStandaloneChat()
return chatSend(context.TODO(), c.g, ChatSendArg{
c.G().StartStandaloneChat()
return chatSend(context.TODO(), c.G(), ChatSendArg{
resolvingRequest: c.resolvingRequest,
setTopicName: c.setTopicName,
nonBlock: c.nonBlock,
Expand Down

0 comments on commit c47fcf2

Please sign in to comment.