use the DATA_SUGGESTED_ALIAS to check the status

This commit is contained in:
Alfred Kamanda 2025-07-01 01:29:52 +03:00
parent 8416d4fddb
commit ba2cb4b813
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -2603,7 +2603,7 @@ func (h *MenuHandlers) RequestCustomAlias(ctx context.Context, sym string, input
}
sanitizedInput := sanitizeAliasHint(string(input))
// Check if an alias already exists
existingAlias, err := store.ReadEntry(ctx, sessionId, storedb.DATA_ACCOUNT_ALIAS)
existingAlias, err := store.ReadEntry(ctx, sessionId, storedb.DATA_SUGGESTED_ALIAS)
if err == nil && len(existingAlias) > 0 {
logg.InfoCtxf(ctx, "Current alias", "alias", string(existingAlias))
// Update existing alias