mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-10-01 09:24:41 +01:00
Fix spinner build.
This commit is contained in:
committed by
Michelle Tang
parent
7e6ad92ca8
commit
5fd8101180
@@ -239,17 +239,18 @@ class ApiPlugin : Plugin {
|
||||
val threadId = parameters["id"]?.firstOrNull()?.toLongOrNull() ?: return PluginResult.ErrorResult.notFound("thread not found")
|
||||
|
||||
val threadRecord = SignalDatabase.threads.getThreadRecord(threadId) ?: return PluginResult.ErrorResult(message = "Thread not found")
|
||||
val recipient = Recipient.resolved(threadRecord.recipientId).fresh()
|
||||
|
||||
return ThreadInfo(
|
||||
threadId = threadRecord.threadId,
|
||||
recipientName = threadRecord.recipient.getDisplayName(AppDependencies.application),
|
||||
recipientId = threadRecord.recipient.id.toLong(),
|
||||
recipientName = recipient.getDisplayName(AppDependencies.application),
|
||||
recipientId = recipient.id.toLong(),
|
||||
unreadCount = threadRecord.unreadCount,
|
||||
snippet = threadRecord.body,
|
||||
snippet = threadRecord.snippet,
|
||||
date = threadRecord.date,
|
||||
archived = threadRecord.isArchived,
|
||||
pinned = threadRecord.isPinned,
|
||||
unreadSelfMentionsCount = threadRecord.unreadSelfMentionsCount
|
||||
archived = threadRecord.archived,
|
||||
pinned = threadRecord.pinnedOrder != null,
|
||||
unreadSelfMentionsCount = threadRecord.unreadSelfMentionCount
|
||||
).toJsonResult()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user