morpheus

A Matrix client written in Go-QT
git clone git://archive.git.mtrnord.blog/Nordgedanken/morpheus.git
Log | Files | Refs | README | LICENSE

commit 8ace611eee95f09389c9c802ddf229fa55732d6d
parent cb9ead6c16686c9ad8d0a8c56c3acd77313ad118
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 21 Oct 2017 19:51:56 +0200

Make Codeclimate happy

Signed-off-by: MTRNord <mtrnord1@gmail.com>

Diffstat:
Mmatrix/rooms.go | 1+
Mmatrix/types.go | 1+
Mui/types.go | 1+
3 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/matrix/rooms.go b/matrix/rooms.go @@ -43,6 +43,7 @@ func (r *Room) crawlRoomTopic() { r.RoomTopic = roomTopic.Topic } +// GetRoomTopic returns the Topic of the Room and crawls it if needed func (r *Room) GetRoomTopic() (topic string) { if r.RoomTopic == "" { r.crawlRoomTopic() diff --git a/matrix/types.go b/matrix/types.go @@ -27,6 +27,7 @@ type JoinedRooms struct { JoinedRooms []string `json:"joined_rooms,omitempty"` } +// RoomAvatar is the json response when getting the room avatar list type RoomAvatar struct { Age int `json:"age,omitempty"` Content struct { diff --git a/ui/types.go b/ui/types.go @@ -43,6 +43,7 @@ type MainUI struct { currentRoom string } +// SetCurrentRoom sets the new room ID of the MainUI func (m *MainUI) SetCurrentRoom(RoomID string) { m.currentRoom = RoomID }