Never silently truncate the draft when attaching an IPFS link

Check before uploading that the link (from the gateway and a CIDv1-sized
placeholder) fits with the draft and the reply prefix, and tell the user
when it doesn't instead of cutting their text. The channel limit now
counts the @[name] reply prefix like the send path.
This commit is contained in:
zjs81 committed 2026-10-24 21:57:55 -07:00
1 parent 084a8fb98b
commit 34db64d7af
25 files changed
+315 -103

No files matched your search

+8
View File
@@ -1849,6 +1849,14 @@ class AppLocalizationsIt extends AppLocalizations {
String get chat_ipfsUploadNotConfigured =>
'Configure an IPFS upload provider in App Settings first.';
@override
String get chat_ipfsLinkNoRoom =>
'Not enough room for the image link. Shorten your message, then try again.';
@override
String get chat_ipfsLinkOverLimit =>
'Image link added, but the message is now too long. Shorten it before sending.';
@override
String get chat_imagePickFailed =>
'Non sono riuscito ad aprire quell\'immagine';