refactor: Put forwarded text into inputfield instead of sending directly

This commit is contained in:
Krille 2024-01-03 13:37:36 +01:00
commit fec39eb602
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
3 changed files with 17 additions and 4 deletions

View file

@ -124,10 +124,15 @@ class ChatListItem extends StatelessWidget {
room: room,
),
);
Matrix.of(context).shareContent = null;
} else {
room.sendEvent(shareContent);
final text = shareContent.tryGet<String>('body');
Matrix.of(context).shareContent = null;
context.go(
'/rooms/${room.id}?body=$text',
);
return;
}
Matrix.of(context).shareContent = null;
}
context.go('/rooms/${room.id}');