mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 19:56:45 +02:00
Remove redundant check
This commit is contained in:
parent
61cf98b0f4
commit
ec69498d99
@ -841,7 +841,7 @@ export const Commands = [
|
||||
if (additionalSegment) {
|
||||
return reject(new UserFriendlyError("slash_command|status|too_long_emoji"));
|
||||
}
|
||||
if (text && !userStatusTextWithinMaxLength(text)) {
|
||||
if (!userStatusTextWithinMaxLength(text)) {
|
||||
return reject(new UserFriendlyError("slash_command|status|too_long_text"));
|
||||
}
|
||||
return success(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user