element-hq / element-hq/element-android

Error when sending event are not correctly handled

Open
#2,656 1 comment 0 reactions 0 assignees View on GitHub
T-Defect
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

When sending an Event, if an error 400 occurs, the user is not informed of the failure. The Event stays in grey in the timeline forever.

To simulate an error 400, we can hack the code and send a listOf(Content) instead of Content when calling [RoomAPI.send()](https://github.com/vector-im/element-android/blob/develop/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/RoomAPI.kt#L125)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.