mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-02-24 15:31:56 -05:00
Revert "ConversationActivity: onConversationMessage(): Use addBulkMessages()" (Buggy)
This reverts commit 4e683a97178310437618300076e119532239e130.
This commit is contained in:
parent
ace19fe095
commit
e76fc676a9
@ -311,8 +311,14 @@ public class ConversationActivity extends Activity implements ServiceConnection,
|
|||||||
Conversation conversation = server.getConversation(target);
|
Conversation conversation = server.getConversation(target);
|
||||||
MessageListAdapter adapter = conversation.getMessageListAdapter();
|
MessageListAdapter adapter = conversation.getMessageListAdapter();
|
||||||
|
|
||||||
if (conversation.hasBufferedMessages() && adapter != null) {
|
while(conversation.hasBufferedMessages()) {
|
||||||
adapter.addBulkMessages(conversation.getBuffer());
|
Message message = conversation.pollBufferedMessage();
|
||||||
|
|
||||||
|
if (adapter != null) {
|
||||||
|
adapter.addMessage(message);
|
||||||
|
} else {
|
||||||
|
//"MessageListAdapter is null (conversation " + conversation.getName() + " has no adapter assigned)"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user