         updateLastSeenTimestamp(convoID: convoId)
         
         // Ask NotificationController to send this message as a push notification
-        for notificationID in notificationIDs {
+        for notificationID in notificationIDs.values {
             NotificationsController.send(to: notificationID, title: message.sender, message: message.text ?? Constants.Placeholders.pictureMessagePlaceholder)
         }
     }

                print("New inactive member: \(username)")
                self.activeMembers.removeValue(forKey: uid)
                self.inactiveMembers[uid] = username
            }
        })
    }

                print("New active member: \(username)")
                self.inactiveMembers.removeValue(forKey: uid)
                self.activeMembers[uid] = username
                
                // Ask database manager for user's notification id and adds it to local dictionary
                DatabaseController.notificationIDForUser(with: uid, completion: { notificationID in
                    if let id = notificationID { self.notificationIDs[username] = id }
                })
            }
        })
        
    
