diff --git a/api/chalicelib/core/sessions_replay.py b/api/chalicelib/core/sessions_replay.py index e60e0f0f6..67e15979a 100644 --- a/api/chalicelib/core/sessions_replay.py +++ b/api/chalicelib/core/sessions_replay.py @@ -47,7 +47,7 @@ def get_by_id2_pg(project_id, session_id, context: schemas.CurrentContext, full_ if data is not None: data = helper.dict_to_camel_case(data) if full_data: - if data["platform"] == 'ios': + if data["platform"] == 'ios' or data["platform"] == 'android': data['events'] = events_ios.get_by_sessionId(project_id=project_id, session_id=session_id) for e in data['events']: if e["type"].endswith("_IOS"): @@ -165,7 +165,7 @@ def get_events(project_id, session_id): if s_data is not None: s_data = helper.dict_to_camel_case(s_data) data = {} - if s_data["platform"] == 'ios': + if s_data["platform"] == 'ios' or data["platform"] == 'android': data['events'] = events_ios.get_by_sessionId(project_id=project_id, session_id=session_id) for e in data['events']: if e["type"].endswith("_IOS"):