mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-04 11:52:25 +00:00
Admin star on DM message bubbles from admin peers
Extend the admin star to per-message avatars: incoming bubbles from an admin peer now show the gold star. MessageBubble gains an opt-in adminId and wraps its avatar img in a non-clipped shell only when the author is an admin (non-admin bubbles keep the bare <img>). MessageThread passes the peer pubkey for incoming bubbles; outgoing bubbles are the current user, whose admin status is already shown on the profile button. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
1 parent
610935ac03
commit
9ca726bc99
3 files changed
+27
-2
No files matched your search
@@ -137,6 +137,9 @@ export function MessageThread({
|
||||
message,
|
||||
variant: isOutgoing ? "outgoing" : "incoming",
|
||||
avatarSrc: isOutgoing ? currentUserAvatarUrl : (contact.avatarSrc || ""),
|
||||
// Star incoming bubbles from an admin peer; the current user's own admin
|
||||
// status is already shown on the profile button.
|
||||
adminId: isOutgoing ? "" : (contact.pubkey || contact.id || ""),
|
||||
});
|
||||
timeline.appendChild(bubble);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user