Improves notify props validation (#24031)
* Adds the channel member notify props max runes restriction * Fix translations
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
3c31629813
Коммит
4803889158
@@ -4,6 +4,7 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
@@ -37,4 +38,7 @@ func TestChannelMemberIsValid(t *testing.T) {
|
||||
|
||||
o.Roles = ""
|
||||
require.Nil(t, o.IsValid(), "should be invalid")
|
||||
|
||||
o.NotifyProps["property"] = strings.Repeat("Z", ChannelMemberNotifyPropsMaxRunes)
|
||||
require.NotNil(t, o.IsValid(), "should be invalid")
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user