|
|
|
@ -20,7 +20,7 @@ func handleTab(viewName string) error {
@@ -20,7 +20,7 @@ func handleTab(viewName string) error {
|
|
|
|
|
inputString, err := getInputString(viewName) |
|
|
|
|
if err != nil { |
|
|
|
|
return err |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
// if you successfully get an input string, grab the last word from the string
|
|
|
|
|
ss := regexp.MustCompile(`[ #]`).Split(inputString, -1) |
|
|
|
|
s := ss[len(ss)-1] |
|
|
|
@ -59,7 +59,7 @@ func handleTab(viewName string) error {
@@ -59,7 +59,7 @@ func handleTab(viewName string) error {
|
|
|
|
|
writeToView(viewName, remainder) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -123,9 +123,10 @@ func getCurrentChannelMembership() []string {
@@ -123,9 +123,10 @@ func getCurrentChannelMembership() []string {
|
|
|
|
|
var rs []string |
|
|
|
|
if channel.Name != "" { |
|
|
|
|
t := k.NewTeam(channel.Name) |
|
|
|
|
if testVar, err := t.MemberList(); err != nil { |
|
|
|
|
testVar, err := t.MemberList() |
|
|
|
|
if err != nil { |
|
|
|
|
return rs // then this isn't a team, its a PM or there was an error in the API call
|
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
for _, m := range testVar.Result.Members.Owners { |
|
|
|
|
rs = append(rs, fmt.Sprintf("%+v", m.Username)) |
|
|
|
|
} |
|
|
|
@ -138,7 +139,7 @@ func getCurrentChannelMembership() []string {
@@ -138,7 +139,7 @@ func getCurrentChannelMembership() []string {
|
|
|
|
|
for _, m := range testVar.Result.Members.Readers { |
|
|
|
|
rs = append(rs, fmt.Sprintf("%+v", m.Username)) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
return rs |
|
|
|
|
} |
|
|
|
|