MCPcopy Create free account
hub / github.com/daodst/chat / SetDisplayName

Method SetDisplayName

userapi/internal/api.go:868–870  ·  view source on GitHub ↗
(ctx context.Context, req *api.PerformUpdateDisplayNameRequest, _ *struct{})

Source from the content-addressed store, hash-verified

866}
867
868func (a *UserInternalAPI) SetDisplayName(ctx context.Context, req *api.PerformUpdateDisplayNameRequest, _ *struct{}) error {
869 return a.DB.SetDisplayName(ctx, req.Localpart, req.DisplayName)
870}
871
872func (a *UserInternalAPI) QueryLocalpartForThreePID(ctx context.Context, req *api.QueryLocalpartForThreePIDRequest, res *api.QueryLocalpartForThreePIDResponse) error {
873 localpart, err := a.DB.GetLocalpartForThreePID(ctx, req.ThreePID, req.Medium)

Callers

nothing calls this directly

Calls 1

SetDisplayNameMethod · 0.65

Tested by

no test coverage detected