Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Add GetDisplayName() method #37

Merged
merged 4 commits into from
Aug 25, 2017
Merged

Add GetDisplayName() method #37

merged 4 commits into from
Aug 25, 2017

Conversation

MTRNord
Copy link
Contributor

@MTRNord MTRNord commented Aug 22, 2017

This PR adds the missing GetDisplayName() method.

( Thanks to @t3chguy for the snippet )

@t3chguy
Copy link
Member

t3chguy commented Aug 22, 2017

might be nice to have a helper of osmething like GetOwnDisplayName()

responses.go Outdated
@@ -90,6 +90,11 @@ type RespUserInteractive struct {
Error string `json:"error"`
}

// RespUserDisplayName is the JSON response for https://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-r0-profile-userid-displayname
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm gonna complain about the placement of this, you're splitting the above struct from its methods below

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh didn't saw that method :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@kegsay
Copy link
Member

kegsay commented Aug 25, 2017

LGTM

@kegsay kegsay merged commit c267fe0 into matrix-org:master Aug 25, 2017
@MTRNord MTRNord deleted the patch-1 branch August 25, 2017 10:19
@ptman
Copy link
Contributor

ptman commented Mar 2, 2020

So is #36 done?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants