summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/mattermost/platform/model/session.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-03-25 21:04:10 +0100
committerWim <wim@42.be>2017-03-25 21:04:10 +0100
commiteacb1c1771cec126593f99f50aca4584236475fa (patch)
tree5ae7d8271c28e378d1d5ca2d0e1e243717a9bdbe /vendor/github.com/mattermost/platform/model/session.go
parent07fd825349e8b7e86f8afb3843cb8e2c2afc7c74 (diff)
downloadmatterbridge-msglm-eacb1c1771cec126593f99f50aca4584236475fa.tar.gz
matterbridge-msglm-eacb1c1771cec126593f99f50aca4584236475fa.tar.bz2
matterbridge-msglm-eacb1c1771cec126593f99f50aca4584236475fa.zip
Update vendor (mattermost)
Diffstat (limited to 'vendor/github.com/mattermost/platform/model/session.go')
-rw-r--r--vendor/github.com/mattermost/platform/model/session.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/vendor/github.com/mattermost/platform/model/session.go b/vendor/github.com/mattermost/platform/model/session.go
index a6a753e7..277e910f 100644
--- a/vendor/github.com/mattermost/platform/model/session.go
+++ b/vendor/github.com/mattermost/platform/model/session.go
@@ -11,7 +11,7 @@ import (
const (
SESSION_COOKIE_TOKEN = "MMAUTHTOKEN"
- SESSION_CACHE_SIZE = 25000
+ SESSION_CACHE_SIZE = 35000
SESSION_PROP_PLATFORM = "platform"
SESSION_PROP_OS = "os"
SESSION_PROP_BROWSER = "browser"
@@ -111,8 +111,7 @@ func (me *Session) GetTeamByTeamId(teamId string) *TeamMember {
}
func (me *Session) IsMobileApp() bool {
- return len(me.DeviceId) > 0 &&
- (strings.HasPrefix(me.DeviceId, PUSH_NOTIFY_APPLE+":") || strings.HasPrefix(me.DeviceId, PUSH_NOTIFY_ANDROID+":"))
+ return len(me.DeviceId) > 0
}
func (me *Session) GetUserRoles() []string {