Browse code

FIX: neotvorenie noveho chatu

Cinan Rakosnik authored on 02/05/2013 at 15:41:12
Showing 2 changed files
... ...
@@ -88,7 +88,7 @@ class Xmpp.Collections.ChatsCollection extends Backbone.Collection
88 88
 
89 89
   find: (who, withWhom) ->
90 90
     _.find(@models, (chat) ->
91
-      chat.get('who') == who && chat.get('withWhom') == withWhom
91
+      chat.get('who') == who and chat.get('withWhom') == withWhom and not chat.get('isMultiChat')
92 92
     )
93 93
 
94 94
   findById: (id) ->
... ...
@@ -41,9 +41,6 @@ class Xmpp.Views.Contacts.ContactView extends Backbone.View
41 41
     @parentList.activeGroup == true
42 42
 
43 43
   startChat: ->
44
-    if @belongsToActiveList()
45
-      return
46
-
47 44
     who      = App.Models.me
48 45
     withWhom = @model
49 46