Revision 06f77931
Added by Marc Dequènes over 13 years ago
- ID 06f77931318bb489eca93b67514ccc34db6f788e
lib/cyborghood/cyborg/protocol.rb | ||
---|---|---|
end
|
||
|
||
def receive_notify_event(message)
|
||
@conversation.user_notification << {
|
||
@conversation.bot.get_channel("peer/#{@conversation.peer_name}/incoming") << {
|
||
:from => message.conversation.peer_id,
|
||
:topic => message.action_parameters[:name],
|
||
:info => message.action_parameters[:info]
|
||
... | ... | |
|
||
def check_thread_idle(conv_thread)
|
||
return if @action_followup.has_key? conv_thread.id
|
||
|
||
@conversation.system_notification << { :topic => 'THREAD IDLE', :thread => conv_thread.name }
|
||
@conversation.bot.get_channel("peer/#{@conversation.identifier}/system") << {
|
||
:topic => 'THREAD IDLE',
|
||
:thread => conv_thread.name
|
||
}
|
||
end
|
||
end
|
||
end
|
Also available in: Unified diff
[evol] reworked notification system a bit (global registration)