From fdbd8a06ca58cbfc17cecdd00fd0ffd2ac17ad30 Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Wed, 14 Apr 2010 20:28:13 +0200 Subject: [PATCH] Fixed wrong broadcast on using /query --- src/org/yaaic/command/handler/QueryHandler.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/org/yaaic/command/handler/QueryHandler.java b/src/org/yaaic/command/handler/QueryHandler.java index d5ed5bd..1c24354 100644 --- a/src/org/yaaic/command/handler/QueryHandler.java +++ b/src/org/yaaic/command/handler/QueryHandler.java @@ -57,12 +57,13 @@ public class QueryHandler extends BaseHandler throw new CommandException("Query already exists"); } - server.addConversationl(new Query(params[1])); + query = new Query(params[1]); + server.addConversationl(query); Intent intent = Broadcast.createConversationIntent( - Broadcast.CONVERSATION_MESSAGE, + Broadcast.CONVERSATION_NEW, server.getId(), - conversation.getName() + query.getName() ); service.sendBroadcast(intent); } else {