summaryrefslogtreecommitdiffstats
path: root/web/react/components/activity_log_modal.jsx
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2016-01-26 21:04:29 -0500
committer=Corey Hulen <corey@hulen.com>2016-01-26 21:04:29 -0500
commit038e50b5b5a2d813a3ac82850ce866c1a13089e4 (patch)
tree4d6e7533bd23f130c19f30cc7a52f5d0d69fbec2 /web/react/components/activity_log_modal.jsx
parentc2bc9454ce5550a180d8ee9fec75db7f3841b1ad (diff)
downloadchat-038e50b5b5a2d813a3ac82850ce866c1a13089e4.tar.gz
chat-038e50b5b5a2d813a3ac82850ce866c1a13089e4.tar.bz2
chat-038e50b5b5a2d813a3ac82850ce866c1a13089e4.zip
PLT-1586 Changing session reporting
Diffstat (limited to 'web/react/components/activity_log_modal.jsx')
-rw-r--r--web/react/components/activity_log_modal.jsx9
1 files changed, 6 insertions, 3 deletions
diff --git a/web/react/components/activity_log_modal.jsx b/web/react/components/activity_log_modal.jsx
index 6a880f0ee..91ca87647 100644
--- a/web/react/components/activity_log_modal.jsx
+++ b/web/react/components/activity_log_modal.jsx
@@ -100,12 +100,15 @@ export default class ActivityLogModal extends React.Component {
if (currentSession.props.platform === 'Windows') {
devicePicture = 'fa fa-windows';
+ } else if (currentSession.device_id.indexOf('apple:') === 0) {
+ devicePicture = 'fa fa-apple';
+ devicePlatform = 'iPhone Native App';
+ } else if (currentSession.device_id.indexOf('Android:') === 0) {
+ devicePlatform = 'Android Native App';
+ devicePicture = 'fa fa-android';
} else if (currentSession.props.platform === 'Macintosh' ||
currentSession.props.platform === 'iPhone') {
devicePicture = 'fa fa-apple';
- } else if (currentSession.props.platform.browser.indexOf('Mattermost/') === 0) {
- devicePicture = 'fa fa-apple';
- devicePlatform = 'iPhone';
} else if (currentSession.props.platform === 'Linux') {
if (currentSession.props.os.indexOf('Android') >= 0) {
devicePlatform = 'Android';