feat: add first cut at emojis in feed (incomplete because it doesn't detect user's emojis correctly)

This commit is contained in:
2025-10-18 17:18:02 -06:00
parent b0d13b3cd4
commit 9ac9f1d4a3
6 changed files with 226 additions and 15 deletions

View File

@@ -245,6 +245,7 @@ Raymer * @version 1.0.0 */
:last-viewed-claim-id="feedLastViewedClaimId"
:is-registered="isRegistered"
:active-did="activeDid"
:api-server="apiServer"
@load-claim="onClickLoadClaim"
@view-image="openImageViewer"
/>
@@ -1234,6 +1235,7 @@ export default class HomeView extends Vue {
const recipientDid = this.extractRecipientDid(claim);
const fulfillsPlan = await this.getFulfillsPlan(record);
const emojiCount = await record.emojiCount;
// Log record details for debugging
logger.debug("[HomeView] 🔍 Processing record:", {
@@ -1264,6 +1266,7 @@ export default class HomeView extends Vue {
provider,
fulfillsPlan,
providedByPlan,
emojiCount,
);
}
@@ -1487,12 +1490,14 @@ export default class HomeView extends Vue {
provider: Provider | undefined,
fulfillsPlan?: FulfillsPlan,
providedByPlan?: ProvidedByPlan,
emojiCount?: Record<string, number>,
): GiveRecordWithContactInfo {
return {
...record,
jwtId: record.jwtId,
fullClaim: record.fullClaim,
description: record.description || "",
emojiCount: emojiCount || {},
handleId: record.handleId,
issuerDid: record.issuerDid,
fulfillsPlanHandleId: record.fulfillsPlanHandleId,