forked from firka/student-legacy
fixed smth in message sending
This commit is contained in:
parent
b929766b14
commit
50d2d44ac2
@ -55,7 +55,7 @@ class SendMessageSheetState extends State<SendMessageSheet> {
|
||||
.map((item) => DropdownMenuItem<String>(
|
||||
value: item.kretaId.toString(),
|
||||
child: Text(
|
||||
item.name ?? (item.id ?? 'Nincs név').toString(),
|
||||
"${item.name ?? (item.id ?? 'Nincs név').toString()}${item.type.code != 'TANAR' ? " (${item.type.shortName})" : ''}",
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.bold,
|
||||
@ -191,9 +191,9 @@ class SendMessageSheetState extends State<SendMessageSheet> {
|
||||
: 'Nincs tárgy';
|
||||
|
||||
messageProvider.sendMessage(
|
||||
recipients: [],
|
||||
recipients: selectedRecipients,
|
||||
subject: subjectText,
|
||||
messageText: _subjectController.text,
|
||||
messageText: _messageController.text,
|
||||
);
|
||||
},
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user