mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-11 18:07:41 +00:00
Clear open group inbox messages
This commit is contained in:
@@ -953,5 +953,17 @@ object OpenGroupApi {
|
||||
}
|
||||
}
|
||||
|
||||
fun deleteAllInboxMessages(server: String): Promise<Map<*, *>, java.lang.Exception> {
|
||||
val request = Request(
|
||||
verb = DELETE,
|
||||
room = null,
|
||||
server = server,
|
||||
endpoint = Endpoint.Inbox
|
||||
)
|
||||
return getResponseBody(request).map { response ->
|
||||
JsonUtil.fromJson(response, Map::class.java)
|
||||
}
|
||||
}
|
||||
|
||||
// endregion
|
||||
}
|
Reference in New Issue
Block a user