chore: Add language to OwnUser

This commit is contained in:
groovinchip
2021-07-22 11:08:10 -04:00
parent f109a47909
commit 4f768024c6
4 changed files with 16 additions and 1 deletions
@@ -24,11 +24,15 @@ void main() async {
/// Please see the following for more information:
/// https://getstream.io/chat/docs/ios_user_setup_and_tokens/
await client.connectUser(
User(id: 'super-band-9'),
User(id: 'super-band-9', language: 'fr'),
'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoic3VwZXItYmFuZC05In0.'
'0L6lGoeLwkz0aZRUcpZKsvaXtNEDHBcezVTZ0oPq40A',
);
client.on().listen((e) {
print('e.user.language ${e.me?.language}');
});
final channel = client.channel('messaging', id: 'godevs');
await channel.watch();