temporarily commented out lines that send realtime messages via redis
This commit is contained in:
parent
d6d428df60
commit
fbdfff6b83
3 changed files with 15 additions and 15 deletions
|
@ -44,7 +44,7 @@ class MappingsController < ApplicationController
|
||||||
@mapping.save()
|
@mapping.save()
|
||||||
|
|
||||||
#push add to map to realtime viewers of the map
|
#push add to map to realtime viewers of the map
|
||||||
@mapping.message 'create',@user.id
|
#@mapping.message 'create',@user.id
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -101,7 +101,7 @@ class SynapsesController < ApplicationController
|
||||||
@mapping.save
|
@mapping.save
|
||||||
|
|
||||||
#push add to map to realtime viewers of the map
|
#push add to map to realtime viewers of the map
|
||||||
@mapping.message 'create',@user.id
|
#@mapping.message 'create',@user.id
|
||||||
|
|
||||||
# set the permission of the synapse to whatever the permission of the
|
# set the permission of the synapse to whatever the permission of the
|
||||||
#map is
|
#map is
|
||||||
|
@ -156,11 +156,11 @@ class SynapsesController < ApplicationController
|
||||||
#push notify to anyone viewing this synapse on a map in realtime (see mapping.rb to understand the 'message' action)
|
#push notify to anyone viewing this synapse on a map in realtime (see mapping.rb to understand the 'message' action)
|
||||||
# if the topic was private and is being switched to PU or CO it is the same as being created for other viewers
|
# if the topic was private and is being switched to PU or CO it is the same as being created for other viewers
|
||||||
if @permissionBefore == "private" and @permissionAfter != "private"
|
if @permissionBefore == "private" and @permissionAfter != "private"
|
||||||
@synapse.message 'create',@current.id
|
#@synapse.message 'create',@current.id
|
||||||
elsif @permissionBefore != "private" and @permissionAfter == "private"
|
elsif @permissionBefore != "private" and @permissionAfter == "private"
|
||||||
@synapse.message 'destroy',@current.id
|
#@synapse.message 'destroy',@current.id
|
||||||
else
|
else
|
||||||
@synapse.message 'update',@current.id
|
#@synapse.message 'update',@current.id
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ class SynapsesController < ApplicationController
|
||||||
@mapping = Mapping.find_by_synapse_id_and_map_id(params[:synapse_id],params[:map_id])
|
@mapping = Mapping.find_by_synapse_id_and_map_id(params[:synapse_id],params[:map_id])
|
||||||
|
|
||||||
#push notify to anyone viewing same map in realtime (see mapping.rb to understand the 'message' action)
|
#push notify to anyone viewing same map in realtime (see mapping.rb to understand the 'message' action)
|
||||||
@mapping.message 'destroy',@user.id
|
#@mapping.message 'destroy',@user.id
|
||||||
|
|
||||||
@mapping.delete
|
@mapping.delete
|
||||||
|
|
||||||
|
@ -193,7 +193,7 @@ class SynapsesController < ApplicationController
|
||||||
|
|
||||||
@synapse.mappings.each do |m|
|
@synapse.mappings.each do |m|
|
||||||
#push notify to anyone viewing same map in realtime (see mapping.rb to understand the 'message' action)
|
#push notify to anyone viewing same map in realtime (see mapping.rb to understand the 'message' action)
|
||||||
m.message 'destroy',@current.id
|
#m.message 'destroy',@current.id
|
||||||
|
|
||||||
m.delete
|
m.delete
|
||||||
end
|
end
|
||||||
|
|
|
@ -127,7 +127,7 @@ class TopicsController < ApplicationController
|
||||||
@mapping.save
|
@mapping.save
|
||||||
|
|
||||||
#push add to map to realtime viewers of the map
|
#push add to map to realtime viewers of the map
|
||||||
@mapping.message 'create',@user.id
|
#@mapping.message 'create',@user.id
|
||||||
end
|
end
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
@ -170,11 +170,11 @@ class TopicsController < ApplicationController
|
||||||
#push notify to anyone viewing this topic on a map in realtime (see mapping.rb to understand the 'message' action)
|
#push notify to anyone viewing this topic on a map in realtime (see mapping.rb to understand the 'message' action)
|
||||||
# if the topic was private and is being switched to PU or CO it is the same as being created for other viewers
|
# if the topic was private and is being switched to PU or CO it is the same as being created for other viewers
|
||||||
if @permissionBefore == "private" and @permissionAfter != "private"
|
if @permissionBefore == "private" and @permissionAfter != "private"
|
||||||
@topic.message 'create',@current.id
|
#@topic.message 'create',@current.id
|
||||||
elsif @permissionBefore != "private" and @permissionAfter == "private"
|
elsif @permissionBefore != "private" and @permissionAfter == "private"
|
||||||
@topic.message 'destroy',@current.id
|
#@topic.message 'destroy',@current.id
|
||||||
else
|
else
|
||||||
@topic.message 'update',@current.id
|
#@topic.message 'update',@current.id
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -198,14 +198,14 @@ class TopicsController < ApplicationController
|
||||||
@mappings.each do |m|
|
@mappings.each do |m|
|
||||||
|
|
||||||
#push notify to anyone viewing same map in realtime (see mapping.rb to understand the 'message' action)
|
#push notify to anyone viewing same map in realtime (see mapping.rb to understand the 'message' action)
|
||||||
m.message 'destroy',@current.id
|
#m.message 'destroy',@current.id
|
||||||
|
|
||||||
m.delete
|
m.delete
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
#push notify to anyone viewing same map in realtime (see mapping.rb to understand the 'message' action)
|
#push notify to anyone viewing same map in realtime (see mapping.rb to understand the 'message' action)
|
||||||
@mapping.message 'destroy',@current.id
|
#@mapping.message 'destroy',@current.id
|
||||||
|
|
||||||
@mapping.delete
|
@mapping.delete
|
||||||
|
|
||||||
|
@ -226,7 +226,7 @@ class TopicsController < ApplicationController
|
||||||
@synapses.each do |synapse|
|
@synapses.each do |synapse|
|
||||||
synapse.mappings.each do |m|
|
synapse.mappings.each do |m|
|
||||||
#push notify to anyone viewing same map in realtime (see mapping.rb to understand the 'message' action)
|
#push notify to anyone viewing same map in realtime (see mapping.rb to understand the 'message' action)
|
||||||
m.message 'destroy',@current.id
|
#m.message 'destroy',@current.id
|
||||||
|
|
||||||
m.delete
|
m.delete
|
||||||
end
|
end
|
||||||
|
@ -236,7 +236,7 @@ class TopicsController < ApplicationController
|
||||||
|
|
||||||
@mappings.each do |mapping|
|
@mappings.each do |mapping|
|
||||||
#push notify to anyone viewing a map with this topic in realtime (see mapping.rb to understand the 'message' action)
|
#push notify to anyone viewing a map with this topic in realtime (see mapping.rb to understand the 'message' action)
|
||||||
mapping.message 'destroy',@current.id
|
#mapping.message 'destroy',@current.id
|
||||||
|
|
||||||
mapping.delete
|
mapping.delete
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue