This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Add an AMQP message when composing.

  • Loading branch information...
spladug committed Jun 24, 2012
1 parent a682691 commit 695b10f2426d0d9ee66873581f4921eaf110a261
Showing with 2 additions and 0 deletions.
  1. +2 −0 r2/r2/controllers/api.py
View
@@ -183,6 +183,8 @@ def POST_compose(self, form, jquery, to, subject, body, ip):
form.set_html(".status", _("your message has been delivered"))
form.set_inputs(to = "", subject = "", text = "", captcha="")
+ amqp.add_item('new_message', m._fullname)
+
queries.new_message(m, inbox_rel)
@validatedForm(VUser(),

0 comments on commit 695b10f

Please sign in to comment.