From 0afb682db138d6c4b644426bccb5c93008d35094 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Fri, 28 Feb 2025 21:23:43 +0200 Subject: Added the ability to view user profiles --- internal/client/ui/core/chat/chat.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'internal/client/ui/core/chat') diff --git a/internal/client/ui/core/chat/chat.go b/internal/client/ui/core/chat/chat.go index c7735f7..9b0f240 100644 --- a/internal/client/ui/core/chat/chat.go +++ b/internal/client/ui/core/chat/chat.go @@ -413,6 +413,17 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) { m.SetIndex(Unselected) } + case "p": + if m.selectedMessage == nil { + return m, nil + } + + return m, func() tea.Msg { + return ui.ProfilePopupMsg{ + User: m.selectedMessage.SenderID, + } + } + case "x", "d": if m.selectedMessage == nil { return m, nil -- cgit v1.3.1