MM-15128 change openDialog to allow dialogs with no elements (#10755)
Этот коммит содержится в:
коммит произвёл
Hanzei
родитель
d4225349ef
Коммит
290d000ad2
@@ -79,11 +79,6 @@ func openDialog(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
if dialog.Dialog.Elements == nil || len(dialog.Dialog.Elements) == 0 {
|
||||
c.SetInvalidParam("dialog.elements")
|
||||
return
|
||||
}
|
||||
|
||||
if err := c.App.OpenInteractiveDialog(dialog); err != nil {
|
||||
c.Err = err
|
||||
return
|
||||
|
||||
Ссылка в новой задаче
Block a user