Expose invitation group tags and localized Android titles
This commit is contained in:
1 parent
306aaa94ba
commit
0ce6e9e83a
3 files changed
+4
-1
No files matched your search
@@ -67,7 +67,7 @@ data class Message(val id: Long, val author: String, val text: String, val ts: L
|
||||
val imageWidth: Int = 0, val imageHeight: Int = 0,
|
||||
val videoWidth: Int = 0, val videoHeight: Int = 0, val videoDurationMs: Int = 0,
|
||||
val downloadState: String = "", /* "", "downloading", "downloaded", "error" */
|
||||
val deliveryStatusRes: Int = 0)
|
||||
val deliveryStatusRes: Int = 0, val inviteGroupName: String? = null)
|
||||
|
||||
data class ChatMember(val nodeId: Long, val name: String, val online: Boolean = false,
|
||||
val isAdmin: Boolean = false, val isSuper: Boolean = false,
|
||||
@@ -592,6 +592,7 @@ class ChatRepository {
|
||||
ts = obj.optLong("ts", 0),
|
||||
isOutgoing = outgoing,
|
||||
contentType = obj.optString("content_type", "text/plain"),
|
||||
inviteGroupName = if (obj.optString("ct") == "invite") obj.getJSONObject("tags").getString("group_name") else null,
|
||||
filePath = path,
|
||||
fileSize = obj.optLong("media_size"),
|
||||
waveform = obj.optString("waveform").map { "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(it).coerceAtLeast(0) / 63f },
|
||||
|
||||
Reference in new issue
Block a user