doc/asmack-beem/beem_patches/50-fix-chatmanager.patch
author Nikita Kozlov <nikita@beem-project.com>
Sun, 16 Jan 2011 12:44:59 +0100
changeset 854 30d32b73be7c
parent 797 fbd3585af53e
permissions -rw-r--r--
fix Bug #321 I have commented the PrivacyListManagerAdapter initialization because the exception came from the underneath code. Also, since the feature isn't finished (especially tested) and enabled in the gui, it will be safer.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
797
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 694
diff changeset
     1
   Copyright (C) 2010 by Frederic-Charles Barthelery,
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 694
diff changeset
     2
                         Jean-Manuel Da Silva,
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 694
diff changeset
     3
                         Nikita Kozlov,
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 694
diff changeset
     4
                         Philippe Lago,
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 694
diff changeset
     5
                         Jean Baptiste Vergely,
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 694
diff changeset
     6
                         Vincent Veronis.
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 694
diff changeset
     7
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 694
diff changeset
     8
   Licensed under the Apache License, Version 2.0 (the "License");
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 694
diff changeset
     9
   you may not use this file except in compliance with the License.
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 694
diff changeset
    10
   You may obtain a copy of the License at
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 694
diff changeset
    11
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 694
diff changeset
    12
       http://www.apache.org/licenses/LICENSE-2.0
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 694
diff changeset
    13
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 694
diff changeset
    14
   Unless required by applicable law or agreed to in writing, software
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 694
diff changeset
    15
   distributed under the License is distributed on an "AS IS" BASIS,
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 694
diff changeset
    16
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 694
diff changeset
    17
   See the License for the specific language governing permissions and
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 694
diff changeset
    18
   limitations under the License.
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 694
diff changeset
    19
694
cffbce08906d Add informations on how to build the asmack flavour for beem.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    20
--- ../../../src/smack/org/jivesoftware/smack/ChatManager.java	2010-02-23 19:27:26.000000000 +0100
cffbce08906d Add informations on how to build the asmack flavour for beem.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    21
+++ org/jivesoftware/smack/ChatManager.java	2010-02-23 19:37:47.000000000 +0100
cffbce08906d Add informations on how to build the asmack flavour for beem.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    22
@@ -111,7 +111,9 @@
cffbce08906d Add informations on how to build the asmack flavour for beem.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    23
                     	chat = getUserChat(message.getFrom());
cffbce08906d Add informations on how to build the asmack flavour for beem.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    24
                     }
cffbce08906d Add informations on how to build the asmack flavour for beem.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    25
                 }
cffbce08906d Add informations on how to build the asmack flavour for beem.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    26
-
cffbce08906d Add informations on how to build the asmack flavour for beem.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    27
+		if (chat == null) {
cffbce08906d Add informations on how to build the asmack flavour for beem.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    28
+                	chat = getUserChat(StringUtils.parseBareAddress(message.getFrom()));
cffbce08906d Add informations on how to build the asmack flavour for beem.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    29
+		}
cffbce08906d Add informations on how to build the asmack flavour for beem.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    30
                 if(chat == null) {
cffbce08906d Add informations on how to build the asmack flavour for beem.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    31
                     chat = createChat(message);
cffbce08906d Add informations on how to build the asmack flavour for beem.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    32
                 }