gomatrix icon indicating copy to clipboard operation
gomatrix copied to clipboard

Add Option to Fetch Full States

Open NotAFile opened this issue 8 years ago • 1 comments

Currently, there seems to be no way of fetching state with the default Syncer. You would need to essentially write your own Syncer.

NotAFile avatar Jun 23 '17 11:06 NotAFile

Correction: you can get state events manually with code like this:

	content := struct {
		Name string `json:"name"`
	}{}

	client.StateEvent(rm.ID, "m.room.name", "", &content)

but it's not very elegant and you basically need to do the decoding yourself.

NotAFile avatar Jun 24 '17 16:06 NotAFile