From 1ab29963fd452623d81bd1855d895dd1f2cf23ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ku=C3=9Fowski?= Date: Wed, 19 Nov 2025 12:53:49 +0100 Subject: [PATCH 1/2] chore: Follow up polls --- lib/pages/chat/start_poll_bottom_sheet.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pages/chat/start_poll_bottom_sheet.dart b/lib/pages/chat/start_poll_bottom_sheet.dart index fd14c4186..3fc5acc6a 100644 --- a/lib/pages/chat/start_poll_bottom_sheet.dart +++ b/lib/pages/chat/start_poll_bottom_sheet.dart @@ -81,9 +81,9 @@ class _StartPollBottomSheetState extends State { children: [ TextField( controller: _bodyController, - minLines: 1, + minLines: 2, maxLines: 4, - maxLength: 512, + maxLength: 1024, onChanged: _updateCanCreate, decoration: InputDecoration( hintText: L10n.of(context).pollQuestion, From 7724de65a2eef2ce153be0ef66d8f31a956075d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ku=C3=9Fowski?= Date: Wed, 19 Nov 2025 14:40:05 +0100 Subject: [PATCH 2/2] chore: Allow all chars for emoji search --- lib/pages/chat/input_bar.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/pages/chat/input_bar.dart b/lib/pages/chat/input_bar.dart index 59fee9014..b1073fe6a 100644 --- a/lib/pages/chat/input_bar.dart +++ b/lib/pages/chat/input_bar.dart @@ -71,8 +71,10 @@ class InputBar extends StatelessWidget { if (ret.length > maxResults) return ret; } } - final emojiMatch = - RegExp(r'(?:\s|^):(?:([-\w]+)~)?([-\w]+)$').firstMatch(searchText); + final emojiMatch = RegExp( + r'(?:\s|^):(?:([\p{L}\p{N}_-]+)~)?([\p{L}\p{N}_-]+)$', + unicode: true, + ).firstMatch(searchText); if (emojiMatch != null) { final packSearch = emojiMatch[1]; final emoteSearch = emojiMatch[2]!.toLowerCase();