Refactor some things and format everything

This commit is contained in:
Tulir Asokan
2018-03-21 00:21:16 +02:00
parent 3ad2c11865
commit 7994c289aa
7 changed files with 178 additions and 142 deletions

View File

@ -27,7 +27,7 @@ type Room struct {
*gomatrix.Room
PrevBatch string
Owner string
Owner string
memberCache map[string]*Member
firstMemberCache string
nameCache string
@ -204,7 +204,7 @@ func (room *Room) GetMember(userID string) *Member {
// NewRoom creates a new Room with the given ID
func NewRoom(roomID, owner string) *Room {
return &Room{
Room: gomatrix.NewRoom(roomID),
Room: gomatrix.NewRoom(roomID),
Owner: owner,
}
}