summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-06-08 11:56:31 +0300
committerKyren223 <Kyren223@proton.me>2025-06-08 11:56:31 +0300
commitbb6b93eefdb6b3044f6e44ac7b16b3257d5021cb (patch)
tree30ea1f57005255233aeb5a3d80557ad5e0cb50db
parent904134789e71d2e260fd1ae2acd7a08a3dd8a605 (diff)
Fixed selected signal not rendering notifications with the proper
background
-rw-r--r--internal/client/ui/core/signallist/signallist.go10
-rw-r--r--terminology.md8
2 files changed, 14 insertions, 4 deletions
diff --git a/internal/client/ui/core/signallist/signallist.go b/internal/client/ui/core/signallist/signallist.go
index 29888ba..c8c27a2 100644
--- a/internal/client/ui/core/signallist/signallist.go
+++ b/internal/client/ui/core/signallist/signallist.go
@@ -87,16 +87,18 @@ func (m Model) View() string {
pings, _ := state.MergedNotification(signal)
if pings != 0 {
notif = notifs[min(pings, 10)-1]
- notif = lipgloss.NewStyle().Inline(true).
- Foreground(colors.Red).Background(colors.BackgroundDim).
- Render(notif)
maxUserWidth -= notifWidth
}
if m.index == m.base+i {
signalStyle = signalStyle.Background(colors.BackgroundHighlight)
userStyle = userStyle.Background(colors.BackgroundHighlight)
- notif = lipgloss.NewStyle().Background(colors.BackgroundHighlight).
+ notif = lipgloss.NewStyle().Inline(true).
+ Foreground(colors.Red).Background(colors.BackgroundHighlight).
+ Render(notif)
+ } else {
+ notif = lipgloss.NewStyle().Inline(true).
+ Foreground(colors.Red).Background(colors.BackgroundDim).
Render(notif)
}
diff --git a/terminology.md b/terminology.md
index 299f2e2..50d4cfa 100644
--- a/terminology.md
+++ b/terminology.md
@@ -4,4 +4,12 @@ TODO
## TODO
+ID - A snowflake ID, a snowflake ID is a unique identifier used across the client and server, it embeds metadata including the date it was generated which can be retrieved for display purposes.
+
+Receiver ID - usually refers to the "other" person's ID in a 1:1 messaging, but can also refer to the literal `receiver_id` SQL field on the `messages` table which may be either the "other" person, or the user itself.
+
+Frequency ID
+
Chat ID - A snowflake ID that refers to either a frequency ID or a receiver ID
+
+Signal - A currently open chat between 2 individual users ("DM")