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

Provenance
kosmydel <kukubaczek@gmail.com>Authored on Feb 15 2023, 2:10 AM
Reviewer
inka
Differential Revision
D6739: [lib] Limit maximum chat name to prevent error
Parents
rCOMM044b8239d2c4: [services] Tunnelbroker - Skipping `deviceID` validation in tools function
Branches
Loading...
Tags
Loading...