commit e3f80b67cdce17049450aed1e75a4320ade85ec8
Author: Wim <wim@42.be>
Date: Fri Feb 09 00:11:20 2018 +0000
diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go
index e43fd22..8d9f6a3 100644
--- a/matterclient/matterclient.go
+++ b/matterclient/matterclient.go
@@ -5859 +5859 @@ func (m *MMClient) UpdateChannelHeader(channelId string, header string) {
func (m *MMClient) UpdateLastViewed(channelId string) {
m.log.Debugf("posting lastview %#v", channelId)
view := &model.ChannelView{ChannelId: channelId}
- res, _ := m.Client.ViewChannel(m.User.Id, view)
- if !res {
- m.log.Errorf("ChannelView update for %s failed", channelId)
+ _, resp := m.Client.ViewChannel(m.User.Id, view)
+ if resp.Error != nil {
+ m.log.Errorf("ChannelView update for %s failed: %s", channelId, resp.Error)
}
}