aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkg/models/message.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/models/message.go b/pkg/models/message.go
index 89d7d73..25b2966 100644
--- a/pkg/models/message.go
+++ b/pkg/models/message.go
@@ -74,6 +74,9 @@ func (m Message) GetAuthorName() string {
if err != nil {
return ""
}
+ if addr.Name == "" {
+ return addr.Address
+ }
return addr.Name
}