From 674f90f27f5cca809da5d1849d4971ba0364e61b Mon Sep 17 00:00:00 2001
From: David Baker <dave@matrix.org>
Date: Thu, 23 Jul 2015 19:33:37 -0700
Subject: [PATCH] If no Notifications, we essentially don't have permission
 (should fix on iOS)

---
 src/controllers/organisms/Notifier.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/controllers/organisms/Notifier.js b/src/controllers/organisms/Notifier.js
index 29618d8d..cd99d320 100644
--- a/src/controllers/organisms/Notifier.js
+++ b/src/controllers/organisms/Notifier.js
@@ -44,6 +44,7 @@ module.exports = {
     },
 
     havePermission: function() {
+        if (!this.supportsDesktopNotifications()) return false;
         return global.Notification.permission == 'granted';
     },