don't pass room around, use many watches
This commit is contained in:
parent
e0ba99d9b9
commit
60be7aaf72
15 changed files with 207 additions and 231 deletions
|
|
@ -223,13 +223,13 @@ class RoomChatController extends AsyncNotifier<InMemoryChatController> {
|
|||
}
|
||||
|
||||
Future<void> send(
|
||||
String message, {
|
||||
String text, {
|
||||
bool shouldMention = true,
|
||||
required Iterable<Tag> tags,
|
||||
required IList<Tag> tags,
|
||||
required RelationType relationType,
|
||||
Message? relation,
|
||||
}) async {
|
||||
var taggedMessage = message;
|
||||
var taggedMessage = text;
|
||||
|
||||
for (final tag in tags) {
|
||||
final escaped = RegExp.escape(tag.id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue