Fixes the participants on a community index

This commit is contained in:
Vitor Pamplona
2023-07-06 11:41:03 -04:00
parent c823d1689f
commit f249884907
3 changed files with 8 additions and 2 deletions

View File

@@ -52,6 +52,12 @@ class ParticipantListBuilder {
addFollowsThatDirectlyParticipateOnToSet(it, followingSet, mySet)
}
baseNote.boosts.forEach {
it.replyTo?.forEach {
addFollowsThatDirectlyParticipateOnToSet(it, followingSet, mySet)
}
}
LocalCache.getChannelIfExists(baseNote.idHex)?.notes?.values?.forEach {
addFollowsThatDirectlyParticipateOnToSet(it, followingSet, mySet)
}

View File

@@ -22,7 +22,7 @@ class CommunityPostApprovalEvent(
fromJson(it, Client.lenient)
}
} catch (e: Exception) {
Log.e("LnZapEvent", "Failed to Parse Contained Post $content", e)
Log.e("CommunityPostEvent", "Failed to Parse Contained Post $content", e)
null
}

View File

@@ -490,7 +490,7 @@ fun RenderLiveActivityThumb(baseNote: Note, accountViewModel: AccountViewModel,
}
}
@OptIn(ExperimentalLayoutApi::class)
@Composable
fun RenderCommunitiesThumb(baseNote: Note, accountViewModel: AccountViewModel, nav: (String) -> Unit) {
val noteEvent = baseNote.event as? CommunityDefinitionEvent ?: return