[MM-8497] Ability to set Do Not Disturb for a specified period of time (#17680)
* Revert "Revert "[MM-8497] Ability to set Do Not Disturb for a specified period of time (#16067)" (#17657)"
This reverts commit ff383990f8.
* add debug log for recurring function
* add feature flag for dnd timed status
* refactoring changes
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
@@ -3057,6 +3057,31 @@ func (_m *API) SetTeamIcon(teamID string, data []byte) *model.AppError {
|
||||
return r0
|
||||
}
|
||||
|
||||
// SetUserStatusTimedDND provides a mock function with given fields: userId, endtime
|
||||
func (_m *API) SetUserStatusTimedDND(userId string, endtime int64) (*model.Status, *model.AppError) {
|
||||
ret := _m.Called(userId, endtime)
|
||||
|
||||
var r0 *model.Status
|
||||
if rf, ok := ret.Get(0).(func(string, int64) *model.Status); ok {
|
||||
r0 = rf(userId, endtime)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.Status)
|
||||
}
|
||||
}
|
||||
|
||||
var r1 *model.AppError
|
||||
if rf, ok := ret.Get(1).(func(string, int64) *model.AppError); ok {
|
||||
r1 = rf(userId, endtime)
|
||||
} else {
|
||||
if ret.Get(1) != nil {
|
||||
r1 = ret.Get(1).(*model.AppError)
|
||||
}
|
||||
}
|
||||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// UnregisterCommand provides a mock function with given fields: teamID, trigger
|
||||
func (_m *API) UnregisterCommand(teamID string, trigger string) error {
|
||||
ret := _m.Called(teamID, trigger)
|
||||
|
||||
Ссылка в новой задаче
Block a user