Skip to content

Commit

Permalink
feat: display name
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-ramos committed Mar 14, 2022
1 parent 4f5121b commit 50ec6f9
Show file tree
Hide file tree
Showing 30 changed files with 1,330 additions and 530 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.94.13
0.95.0
180 changes: 82 additions & 98 deletions appdatabase/migrations/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions appdatabase/migrations/sql/1647278782_display_name.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE settings ADD COLUMN display_name TEXT NOT NULL DEFAULT "";
UPDATE settings SET display_name = "";
5 changes: 5 additions & 0 deletions mobile/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/status-im/status-go/params"
"github.com/status-im/status-go/profiling"
protocol "github.com/status-im/status-go/protocol"
"github.com/status-im/status-go/protocol/identity/alias"
"github.com/status-im/status-go/server"
"github.com/status-im/status-go/services/personal"
"github.com/status-im/status-go/services/typeddata"
Expand Down Expand Up @@ -639,6 +640,10 @@ func GenerateAlias(pk string) string {
return name
}

func IsAlias(value string) string {
return prepareJSONResponse(alias.IsAlias(value), nil)
}

func Identicon(pk string) string {
// We ignore any error, empty string is considered an error
identicon, _ := protocol.Identicon(pk)
Expand Down
Loading

0 comments on commit 50ec6f9

Please sign in to comment.