mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 11:42:15 -05:00
fixed npe in new message parser
This commit is contained in:
parent
1b5631c835
commit
9658146575
@ -375,7 +375,9 @@ public class MessageParser extends AbstractParser implements
|
|||||||
if (displayed != null) {
|
if (displayed != null) {
|
||||||
if (packet.fromAccount(account)) {
|
if (packet.fromAccount(account)) {
|
||||||
Conversation conversation = mXmppConnectionService.find(account,counterpart.toBareJid());
|
Conversation conversation = mXmppConnectionService.find(account,counterpart.toBareJid());
|
||||||
|
if (conversation != null) {
|
||||||
mXmppConnectionService.markRead(conversation);
|
mXmppConnectionService.markRead(conversation);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
updateLastseen(packet, account, true);
|
updateLastseen(packet, account, true);
|
||||||
final Message displayedMessage = mXmppConnectionService.markMessage(account, from.toBareJid(), displayed.getAttribute("id"), Message.STATUS_SEND_DISPLAYED);
|
final Message displayedMessage = mXmppConnectionService.markMessage(account, from.toBareJid(), displayed.getAttribute("id"), Message.STATUS_SEND_DISPLAYED);
|
||||||
|
Loading…
Reference in New Issue
Block a user