diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-08-28 11:01:24 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-08-28 11:01:24 +0200 |
commit | 85b31b8d8b5c553d0126fcc7938abd096433f035 (patch) | |
tree | b4f60888d9fa22c14e4f00c7faa358dcf0cb0713 /src/eu/siacs/conversations/parser | |
parent | 12cbd07693709673c19afd65fb08686daf0b24f7 (diff) |
fixed spelling thanks @betheg
Diffstat (limited to 'src/eu/siacs/conversations/parser')
-rw-r--r-- | src/eu/siacs/conversations/parser/MessageParser.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/eu/siacs/conversations/parser/MessageParser.java b/src/eu/siacs/conversations/parser/MessageParser.java index ad1ce9b9..0d46074d 100644 --- a/src/eu/siacs/conversations/parser/MessageParser.java +++ b/src/eu/siacs/conversations/parser/MessageParser.java @@ -34,11 +34,11 @@ public class MessageParser extends AbstractParser implements Message finishedMessage; if (pgpBody != null) { finishedMessage = new Message(conversation, packet.getFrom(), - pgpBody, Message.ENCRYPTION_PGP, Message.STATUS_RECIEVED); + pgpBody, Message.ENCRYPTION_PGP, Message.STATUS_RECEIVED); } else { finishedMessage = new Message(conversation, packet.getFrom(), packet.getBody(), Message.ENCRYPTION_NONE, - Message.STATUS_RECIEVED); + Message.STATUS_RECEIVED); } finishedMessage.setRemoteMsgId(packet.getId()); if (conversation.getMode() == Conversation.MODE_MULTI @@ -115,7 +115,7 @@ public class MessageParser extends AbstractParser implements .setLatestMarkableMessageId(getMarkableMessageId(packet)); Message finishedMessage = new Message(conversation, packet.getFrom(), body, Message.ENCRYPTION_OTR, - Message.STATUS_RECIEVED); + Message.STATUS_RECEIVED); finishedMessage.setTime(getTimestamp(packet)); finishedMessage.setRemoteMsgId(packet.getId()); return finishedMessage; @@ -156,7 +156,7 @@ public class MessageParser extends AbstractParser implements status = Message.STATUS_SEND; } } else { - status = Message.STATUS_RECIEVED; + status = Message.STATUS_RECEIVED; } String pgpBody = getPgpBody(packet); conversation.setLatestMarkableMessageId(getMarkableMessageId(packet)); @@ -169,7 +169,7 @@ public class MessageParser extends AbstractParser implements Message.ENCRYPTION_PGP, status); } finishedMessage.setRemoteMsgId(packet.getId()); - if (status == Message.STATUS_RECIEVED) { + if (status == Message.STATUS_RECEIVED) { finishedMessage.setTrueCounterpart(conversation.getMucOptions() .getTrueCounterpart(counterPart)); } @@ -186,7 +186,7 @@ public class MessageParser extends AbstractParser implements Element forwarded; if (packet.hasChild("received")) { forwarded = packet.findChild("received").findChild("forwarded"); - status = Message.STATUS_RECIEVED; + status = Message.STATUS_RECEIVED; } else if (packet.hasChild("sent")) { forwarded = packet.findChild("sent").findChild("forwarded"); status = Message.STATUS_SEND; @@ -198,12 +198,12 @@ public class MessageParser extends AbstractParser implements } Element message = forwarded.findChild("message"); if ((message == null) || (!message.hasChild("body"))) { - if (status == Message.STATUS_RECIEVED && message.getAttribute("from")!=null) { + if (status == Message.STATUS_RECEIVED && message.getAttribute("from")!=null) { parseNormal(message, account); } return null; } - if (status == Message.STATUS_RECIEVED) { + if (status == Message.STATUS_RECEIVED) { fullJid = message.getAttribute("from"); if (fullJid == null) { return null; @@ -389,7 +389,7 @@ public class MessageParser extends AbstractParser implements } else if (packet.getType() == MessagePacket.TYPE_GROUPCHAT) { message = this.parseGroupchat(packet, account); if (message != null) { - if (message.getStatus() == Message.STATUS_RECIEVED) { + if (message.getStatus() == Message.STATUS_RECEIVED) { message.markUnread(); } else { message.getConversation().markRead(); |