Revert "Handle cases when AS is not masquerading"

This reverts commit 911deb88f4.
This commit is contained in:
Andrew Morgan 2018-06-12 16:41:32 +01:00
parent 1401a102fc
commit cc9cae60cb
6 changed files with 91 additions and 33 deletions

View file

@ -15,10 +15,16 @@
package gomatrixserverlib
// ApplicationServiceUnsigned is the contents of the unsigned field of an
// ApplicationServiceEvent
type ApplicationServiceUnsigned struct {
Age int64 `json:"age,omitempty"`
}
// ApplicationServiceEvent is an event format that is sent off to an
// application service as part of a transaction.
type ApplicationServiceEvent struct {
Age int64 `json:"age,omitempty"`
Unsigned RawJSON `json:"unsigned,omitempty"`
Content RawJSON `json:"content,omitempty"`
EventID string `json:"event_id,omitempty"`
OriginServerTimestamp int64 `json:"origin_server_ts,omitempty"`