From 83ec5b889257938d2278e7a6cb5c7eee5c0fdaf4 Mon Sep 17 00:00:00 2001
From: Oleksandr Zhurbenko
Date: Tue, 28 Jul 2015 13:14:03 -0700
Subject: [PATCH] Added Polling related functions to the bbb_api_brigde
---
.../app/client/lib/bbb_api_bridge.coffee | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/bigbluebutton-html5/app/client/lib/bbb_api_bridge.coffee b/bigbluebutton-html5/app/client/lib/bbb_api_bridge.coffee
index 5568e7f976..4e03209b63 100755
--- a/bigbluebutton-html5/app/client/lib/bbb_api_bridge.coffee
+++ b/bigbluebutton-html5/app/client/lib/bbb_api_bridge.coffee
@@ -22,6 +22,16 @@ https://github.com/bigbluebutton/bigbluebutton/blob/master/bigbluebutton-client/
callback res
else
res
+
+ BBB.isPollGoing = (userId) ->
+ if userId isnt undefined and Meteor.Polls.findOne({"poll_info.users": userId})
+ return true
+ else
+ return false
+
+ BBB.getCurrentPoll = (userId) ->
+ if userId isnt undefined and Meteor.Polls.findOne({"poll_info.users": userId})
+ return Meteor.Polls.findOne({"poll_info.users": userId})
BBB.getMeetingId = ->
Meteor.Meetings.findOne()?.meetingId