doc/asmack-beem/beem_patches/50-fix-chatmanager.patch
changeset 1005 4c7edc276676
parent 1004 aa8c2dac6d02
child 1006 246d10f27fc6
equal deleted inserted replaced
1004:aa8c2dac6d02 1005:4c7edc276676
     1    Copyright (C) 2010 by Frederic-Charles Barthelery,
       
     2                          Jean-Manuel Da Silva,
       
     3                          Nikita Kozlov,
       
     4                          Philippe Lago,
       
     5                          Jean Baptiste Vergely,
       
     6                          Vincent Veronis.
       
     7 
       
     8    Licensed under the Apache License, Version 2.0 (the "License");
       
     9    you may not use this file except in compliance with the License.
       
    10    You may obtain a copy of the License at
       
    11 
       
    12        http://www.apache.org/licenses/LICENSE-2.0
       
    13 
       
    14    Unless required by applicable law or agreed to in writing, software
       
    15    distributed under the License is distributed on an "AS IS" BASIS,
       
    16    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       
    17    See the License for the specific language governing permissions and
       
    18    limitations under the License.
       
    19 
       
    20 --- ../../../src/smack/org/jivesoftware/smack/ChatManager.java	2010-02-23 19:27:26.000000000 +0100
       
    21 +++ org/jivesoftware/smack/ChatManager.java	2010-02-23 19:37:47.000000000 +0100
       
    22 @@ -111,7 +111,9 @@
       
    23                      	chat = getUserChat(message.getFrom());
       
    24                      }
       
    25                  }
       
    26 -
       
    27 +		if (chat == null) {
       
    28 +                	chat = getUserChat(StringUtils.parseBareAddress(message.getFrom()));
       
    29 +		}
       
    30                  if(chat == null) {
       
    31                      chat = createChat(message);
       
    32                  }