PLT-1527 Add a slash command to set yourself away (#3752)
* added handlers for slash commands * added manual status persistance * added tests * removed extra debug output and comments * rebase - fixing the PR * making echo messages after slash commands ephemeral
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
db660bdf9c
Коммит
dc09b7781a
@@ -83,7 +83,7 @@ func TestStatuses(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
SetStatusAwayIfNeeded(th.BasicUser2.Id)
|
||||
SetStatusAwayIfNeeded(th.BasicUser2.Id, false)
|
||||
|
||||
awayTimeout := *utils.Cfg.TeamSettings.UserStatusAwayTimeout
|
||||
defer func() {
|
||||
@@ -93,8 +93,8 @@ func TestStatuses(t *testing.T) {
|
||||
|
||||
time.Sleep(1500 * time.Millisecond)
|
||||
|
||||
SetStatusAwayIfNeeded(th.BasicUser2.Id)
|
||||
SetStatusAwayIfNeeded(th.BasicUser2.Id)
|
||||
SetStatusAwayIfNeeded(th.BasicUser2.Id, false)
|
||||
SetStatusAwayIfNeeded(th.BasicUser2.Id, false)
|
||||
|
||||
WebSocketClient2.Close()
|
||||
time.Sleep(300 * time.Millisecond)
|
||||
|
||||
Ссылка в новой задаче
Block a user