Skip to content

Commit

Permalink
Message.correction.xep308 (#10)
Browse files Browse the repository at this point in the history
* start implementing message correction xep 308

fixing details and adding tests

adding license documentation

adding provider

fixing provider

fix indentation

fix indentation

adding javadoc and refactoring names

delete unnecessary try-catch

refactoring xep-308 implementation

fix usage of append function

fix usage of append function

add javadoc

small fixes

delete html tags

fixing documentation

starting to fix pr feedback

update last changes

refactoring xep-308 implementation

add documentation, refactors, add from method

small fixes

refactors from feedback

merge

merge

fix documentation

merge

merge

merge

merge

fix documentation

merge

* refactoring
  • Loading branch information
ramabit authored and griveroa-inaka committed Apr 11, 2016
1 parent ef8d922 commit d169632
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class MessageCorrectExtension implements ExtensionElement {
public static final String ID_TAG = "id";

/**
* The jid of the message to correct.
* The id of the message to correct.
*/
private String idInitialMessage;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

/**
* A ExtensionElementProvider for the MessageCorrectExtension. As
* MessageCorrection elements have only the JID of the message to replace.
* MessageCorrection elements have only the ID of the message to replace.
*
* @author Fernando Ramirez, f.e.ramirez94@gmail.com
*/
Expand All @@ -35,9 +35,8 @@ public class MessageCorrectProvider extends ExtensionElementProvider<MessageCorr
@Override
public MessageCorrectExtension parse(XmlPullParser parser, int initialDepth)
throws XmlPullParserException, IOException, SmackException {
String jidMessageToReplace;
jidMessageToReplace = parser.getAttributeValue("", MessageCorrectExtension.ID_TAG);
return new MessageCorrectExtension(jidMessageToReplace);
String idMessageToReplace = parser.getAttributeValue("", MessageCorrectExtension.ID_TAG);
return new MessageCorrectExtension(idMessageToReplace);
}

}

0 comments on commit d169632

Please sign in to comment.