Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
link 'list reminders' back to 'view reminders' fixes Issue #100
Browse files Browse the repository at this point in the history
  • Loading branch information
scottleedavis committed May 17, 2019
1 parent e725c04 commit 87518d0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "com.github.scottleedavis.mattermost-plugin-remind",
"name": "Remind Bot Mattermost Plugin",
"description": "Sets Reminders",
"version": "0.2.5",
"version": "0.2.6",
"server": {
"executables": {
"linux-amd64": "server/dist/plugin-linux-amd64",
Expand Down
10 changes: 9 additions & 1 deletion server/Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion server/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ func (p *Plugin) handleViewEphemeral(w http.ResponseWriter, r *http.Request) {
writePostActionIntegrationResponseError(w, &model.PostActionIntegrationResponse{})
return
}
p.ListReminders(user, "")
p.API.SendEphemeralPost(user.Id, p.ListReminders(user, request.ChannelId))

writePostActionIntegrationResponseOk(w, &model.PostActionIntegrationResponse{})

}
Expand Down
1 change: 1 addition & 0 deletions server/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ func TestHandleViewEphmeral(t *testing.T) {
api.On("GetUserByUsername", mock.Anything).Return(user, nil)
api.On("KVGet", user.Username).Return(stringReminders, nil)
api.On("CreatePost", mock.Anything).Maybe()
api.On("SendEphemeralPost", mock.Anything, mock.Anything).Return(nil)

return api
}
Expand Down
2 changes: 1 addition & 1 deletion server/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ var manifest = struct {
Version string
}{
Id: "com.github.scottleedavis.mattermost-plugin-remind",
Version: "0.2.5",
Version: "0.2.6",
}

0 comments on commit 87518d0

Please sign in to comment.