forked from eatvio/eatvio_app
feat(video_calls): fixed recinnecting logic, added consultant bage
This commit is contained in:
@@ -17,6 +17,18 @@ void main() {
|
||||
expect(payload.counterpartAvatarUrl, 'https://cdn.example/avatar.jpg');
|
||||
});
|
||||
|
||||
test('parses is_consultant flag from push payload', () {
|
||||
final payload = VideoCallPushPayload.tryParse({
|
||||
'type': 'video_call_incoming',
|
||||
'conversation_uuid': 'abc-123',
|
||||
'caller_name': 'Anna',
|
||||
'is_consultant': 'true',
|
||||
});
|
||||
|
||||
expect(payload, isNotNull);
|
||||
expect(payload!.counterpartIsConsultant, isTrue);
|
||||
});
|
||||
|
||||
test('parses action_url with video-call path', () {
|
||||
final payload = VideoCallPushPayload.tryParse({
|
||||
'action_url': 'https://eatvio.ru/video-call-screen?uuid=room-42',
|
||||
|
||||
Reference in New Issue
Block a user