HomePhabricator
Diffusion Comm ca3c8384e847

[lib] Limit maximum chat name to prevent error

Description

[lib] Limit maximum chat name to prevent error

Summary:
When you set too long a chat name (>191 characters) it resulted in a server error (SQL name field limit).
Added limits to GUI: native and web. Validating the result on the keyserver before it reaches SQL.

Original issue

Test Plan:

  • Tested on iOS, Android, and the web app.
  • Now you can't input more characters than the limit set.
  • If you do (older app version) the server throws error (before it reaches SQL).

Reviewers: tomek, inka, michal

Reviewed By: inka

Subscribers: ashoat, atul

Differential Revision: https://phab.comm.dev/D6739

Details