chore: remove the TranslatedMessage class and add the i18n field to the Message class
Tests have been updated to reflect the removal of this class
This commit is contained in:
@@ -371,9 +371,11 @@ void main() {
|
||||
final path = '/messages/${message.id}/translate';
|
||||
|
||||
const translatedMessageText = 'नमस्ते';
|
||||
final translatedMessage = TranslatedMessage(const {
|
||||
language: translatedMessageText,
|
||||
});
|
||||
final translatedMessage = Message(
|
||||
i18n: const {
|
||||
language: translatedMessageText,
|
||||
},
|
||||
);
|
||||
|
||||
when(() => client.post(
|
||||
path,
|
||||
|
||||
Reference in New Issue
Block a user