{"action":"created","comment":{"url":"https://api.github.com/repos/igniterealtime/Smack/pulls/comments/59082628","id":59082628,"diff_hunk":"@@ -0,0 +1,120 @@\n+/**\n+ *\n+ * Copyright the original author or authors\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *     http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+package org.jivesoftware.smackx.message.correct;\n+\n+import java.io.IOException;\n+\n+import org.jivesoftware.smack.SmackException;\n+import org.jivesoftware.smack.packet.ExtensionElement;\n+import org.jivesoftware.smack.provider.ExtensionElementProvider;\n+import org.xmlpull.v1.XmlPullParser;\n+import org.xmlpull.v1.XmlPullParserException;\n+\n+/**\n+ * An Extension that implements XEP-0308: Last Message Correction\n+ * \n+ * This extension is expected to be added to message stanzas. Please refer to\n+ * the XEP for more implementation guidelines.\n+ * \n+ * @author Fernando Ramirez, f.e.ramirez94@gmail.com\n+ */\n+public class MessageCorrectExtension implements ExtensionElement {\n+\n+    /**\n+     * The XML element name of a 'message correct' extension.\n+     */\n+    public static final String ELEMENT_NAME = \"replace\";","path":"smack-extensions/src/main/java/org/jivesoftware/smackx/message/correct/MessageCorrectExtension.java","position":40,"original_position":40,"commit_id":"4614991d7b0a38978070573fe0231509fe6e369a","original_commit_id":"4614991d7b0a38978070573fe0231509fe6e369a","user":{"login":"Flowdalic","id":432385,"avatar_url":"https://avatars.githubusercontent.com/u/432385?v=3","gravatar_id":"","url":"https://api.github.com/users/Flowdalic","html_url":"https://github.com/Flowdalic","followers_url":"https://api.github.com/users/Flowdalic/followers","following_url":"https://api.github.com/users/Flowdalic/following{/other_user}","gists_url":"https://api.github.com/users/Flowdalic/gists{/gist_id}","starred_url":"https://api.github.com/users/Flowdalic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flowdalic/subscriptions","organizations_url":"https://api.github.com/users/Flowdalic/orgs","repos_url":"https://api.github.com/users/Flowdalic/repos","events_url":"https://api.github.com/users/Flowdalic/events{/privacy}","received_events_url":"https://api.github.com/users/Flowdalic/received_events","type":"User","site_admin":false},"body":"Should be just 'ELEMENT'","created_at":"2016-04-08T20:13:14Z","updated_at":"2016-04-08T20:13:14Z","html_url":"https://github.com/igniterealtime/Smack/pull/73#discussion_r59082628","pull_request_url":"https://api.github.com/repos/igniterealtime/Smack/pulls/73","_links":{"self":{"href":"https://api.github.com/repos/igniterealtime/Smack/pulls/comments/59082628"},"html":{"href":"https://github.com/igniterealtime/Smack/pull/73#discussion_r59082628"},"pull_request":{"href":"https://api.github.com/repos/igniterealtime/Smack/pulls/73"}}},"pull_request":{"url":"https://api.github.com/repos/igniterealtime/Smack/pulls/73","id":65635727,"html_url":"https://github.com/igniterealtime/Smack/pull/73","diff_url":"https://github.com/igniterealtime/Smack/pull/73.diff","patch_url":"https://github.com/igniterealtime/Smack/pull/73.patch","issue_url":"https://api.github.com/repos/igniterealtime/Smack/issues/73","number":73,"state":"open","locked":false,"title":"Implementation of XEP-0308: Last Message Correction","user":{"login":"ramabit","id":5194886,"avatar_url":"https://avatars.githubusercontent.com/u/5194886?v=3","gravatar_id":"","url":"https://api.github.com/users/ramabit","html_url":"https://github.com/ramabit","followers_url":"https://api.github.com/users/ramabit/followers","following_url":"https://api.github.com/users/ramabit/following{/other_user}","gists_url":"https://api.github.com/users/ramabit/gists{/gist_id}","starred_url":"https://api.github.com/users/ramabit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramabit/subscriptions","organizations_url":"https://api.github.com/users/ramabit/orgs","repos_url":"https://api.github.com/users/ramabit/repos","events_url":"https://api.github.com/users/ramabit/events{/privacy}","received_events_url":"https://api.github.com/users/ramabit/received_events","type":"User","site_admin":false},"body":"Documentation: https://xmpp.org/extensions/xep-0308.html\r\n\r\n**How to use it**\r\n\r\nSend: \r\n`message.addExtension(new MessageCorrectExtension(jidInitialMessage));`\r\n\r\nReceive:\r\n`ProviderManager.addExtensionProvider(MessageCorrectExtension.ELEMENT_NAME, MessageCorrectExtension.NAMESPACE, new MessageCorrectExtension.Provider());`\r\n\r\n`MessageCorrectExtension messageCorrectExtension = message.getExtension(MessageCorrectExtension.ELEMENT_NAME, MessageCorrectExtension.NAMESPACE);`","created_at":"2016-04-07T14:06:26Z","updated_at":"2016-04-08T20:13:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"414340ef2022e3a0253b0dc19814bafb6bcf3a14","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/igniterealtime/Smack/pulls/73/commits","review_comments_url":"https://api.github.com/repos/igniterealtime/Smack/pulls/73/comments","review_comment_url":"https://api.github.com/repos/igniterealtime/Smack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/igniterealtime/Smack/issues/73/comments","statuses_url":"https://api.github.com/repos/igniterealtime/Smack/statuses/4614991d7b0a38978070573fe0231509fe6e369a","head":{"label":"esl:master","ref":"master","sha":"4614991d7b0a38978070573fe0231509fe6e369a","user":{"login":"esl","id":283412,"avatar_url":"https://avatars.githubusercontent.com/u/283412?v=3","gravatar_id":"","url":"https://api.github.com/users/esl","html_url":"https://github.com/esl","followers_url":"https://api.github.com/users/esl/followers","following_url":"https://api.github.com/users/esl/following{/other_user}","gists_url":"https://api.github.com/users/esl/gists{/gist_id}","starred_url":"https://api.github.com/users/esl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esl/subscriptions","organizations_url":"https://api.github.com/users/esl/orgs","repos_url":"https://api.github.com/users/esl/repos","events_url":"https://api.github.com/users/esl/events{/privacy}","received_events_url":"https://api.github.com/users/esl/received_events","type":"Organization","site_admin":false},"repo":{"id":55431704,"name":"Smack","full_name":"esl/Smack","owner":{"login":"esl","id":283412,"avatar_url":"https://avatars.githubusercontent.com/u/283412?v=3","gravatar_id":"","url":"https://api.github.com/users/esl","html_url":"https://github.com/esl","followers_url":"https://api.github.com/users/esl/followers","following_url":"https://api.github.com/users/esl/following{/other_user}","gists_url":"https://api.github.com/users/esl/gists{/gist_id}","starred_url":"https://api.github.com/users/esl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esl/subscriptions","organizations_url":"https://api.github.com/users/esl/orgs","repos_url":"https://api.github.com/users/esl/repos","events_url":"https://api.github.com/users/esl/events{/privacy}","received_events_url":"https://api.github.com/users/esl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/esl/Smack","description":"A highly modular and portable open source XMPP client library written in Java for JVMs and Android","fork":true,"url":"https://api.github.com/repos/esl/Smack","forks_url":"https://api.github.com/repos/esl/Smack/forks","keys_url":"https://api.github.com/repos/esl/Smack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esl/Smack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esl/Smack/teams","hooks_url":"https://api.github.com/repos/esl/Smack/hooks","issue_events_url":"https://api.github.com/repos/esl/Smack/issues/events{/number}","events_url":"https://api.github.com/repos/esl/Smack/events","assignees_url":"https://api.github.com/repos/esl/Smack/assignees{/user}","branches_url":"https://api.github.com/repos/esl/Smack/branches{/branch}","tags_url":"https://api.github.com/repos/esl/Smack/tags","blobs_url":"https://api.github.com/repos/esl/Smack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esl/Smack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esl/Smack/git/refs{/sha}","trees_url":"https://api.github.com/repos/esl/Smack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esl/Smack/statuses/{sha}","languages_url":"https://api.github.com/repos/esl/Smack/languages","stargazers_url":"https://api.github.com/repos/esl/Smack/stargazers","contributors_url":"https://api.github.com/repos/esl/Smack/contributors","subscribers_url":"https://api.github.com/repos/esl/Smack/subscribers","subscription_url":"https://api.github.com/repos/esl/Smack/subscription","commits_url":"https://api.github.com/repos/esl/Smack/commits{/sha}","git_commits_url":"https://api.github.com/repos/esl/Smack/git/commits{/sha}","comments_url":"https://api.github.com/repos/esl/Smack/comments{/number}","issue_comment_url":"https://api.github.com/repos/esl/Smack/issues/comments{/number}","contents_url":"https://api.github.com/repos/esl/Smack/contents/{+path}","compare_url":"https://api.github.com/repos/esl/Smack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esl/Smack/merges","archive_url":"https://api.github.com/repos/esl/Smack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esl/Smack/downloads","issues_url":"https://api.github.com/repos/esl/Smack/issues{/number}","pulls_url":"https://api.github.com/repos/esl/Smack/pulls{/number}","milestones_url":"https://api.github.com/repos/esl/Smack/milestones{/number}","notifications_url":"https://api.github.com/repos/esl/Smack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esl/Smack/labels{/name}","releases_url":"https://api.github.com/repos/esl/Smack/releases{/id}","deployments_url":"https://api.github.com/repos/esl/Smack/deployments","created_at":"2016-04-04T17:39:49Z","updated_at":"2016-04-04T17:39:55Z","pushed_at":"2016-04-07T18:44:29Z","git_url":"git://github.com/esl/Smack.git","ssh_url":"git@github.com:esl/Smack.git","clone_url":"https://github.com/esl/Smack.git","svn_url":"https://github.com/esl/Smack","homepage":"http://www.igniterealtime.org/projects/smack/","size":23014,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"igniterealtime:master","ref":"master","sha":"5c00172f6a8d6c5f7e39f47badf1ac30fd25bccd","user":{"login":"igniterealtime","id":5991032,"avatar_url":"https://avatars.githubusercontent.com/u/5991032?v=3","gravatar_id":"","url":"https://api.github.com/users/igniterealtime","html_url":"https://github.com/igniterealtime","followers_url":"https://api.github.com/users/igniterealtime/followers","following_url":"https://api.github.com/users/igniterealtime/following{/other_user}","gists_url":"https://api.github.com/users/igniterealtime/gists{/gist_id}","starred_url":"https://api.github.com/users/igniterealtime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igniterealtime/subscriptions","organizations_url":"https://api.github.com/users/igniterealtime/orgs","repos_url":"https://api.github.com/users/igniterealtime/repos","events_url":"https://api.github.com/users/igniterealtime/events{/privacy}","received_events_url":"https://api.github.com/users/igniterealtime/received_events","type":"Organization","site_admin":false},"repo":{"id":16477702,"name":"Smack","full_name":"igniterealtime/Smack","owner":{"login":"igniterealtime","id":5991032,"avatar_url":"https://avatars.githubusercontent.com/u/5991032?v=3","gravatar_id":"","url":"https://api.github.com/users/igniterealtime","html_url":"https://github.com/igniterealtime","followers_url":"https://api.github.com/users/igniterealtime/followers","following_url":"https://api.github.com/users/igniterealtime/following{/other_user}","gists_url":"https://api.github.com/users/igniterealtime/gists{/gist_id}","starred_url":"https://api.github.com/users/igniterealtime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igniterealtime/subscriptions","organizations_url":"https://api.github.com/users/igniterealtime/orgs","repos_url":"https://api.github.com/users/igniterealtime/repos","events_url":"https://api.github.com/users/igniterealtime/events{/privacy}","received_events_url":"https://api.github.com/users/igniterealtime/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/igniterealtime/Smack","description":"A highly modular and portable open source XMPP client library written in Java for JVMs and Android","fork":false,"url":"https://api.github.com/repos/igniterealtime/Smack","forks_url":"https://api.github.com/repos/igniterealtime/Smack/forks","keys_url":"https://api.github.com/repos/igniterealtime/Smack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/igniterealtime/Smack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/igniterealtime/Smack/teams","hooks_url":"https://api.github.com/repos/igniterealtime/Smack/hooks","issue_events_url":"https://api.github.com/repos/igniterealtime/Smack/issues/events{/number}","events_url":"https://api.github.com/repos/igniterealtime/Smack/events","assignees_url":"https://api.github.com/repos/igniterealtime/Smack/assignees{/user}","branches_url":"https://api.github.com/repos/igniterealtime/Smack/branches{/branch}","tags_url":"https://api.github.com/repos/igniterealtime/Smack/tags","blobs_url":"https://api.github.com/repos/igniterealtime/Smack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/igniterealtime/Smack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/igniterealtime/Smack/git/refs{/sha}","trees_url":"https://api.github.com/repos/igniterealtime/Smack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/igniterealtime/Smack/statuses/{sha}","languages_url":"https://api.github.com/repos/igniterealtime/Smack/languages","stargazers_url":"https://api.github.com/repos/igniterealtime/Smack/stargazers","contributors_url":"https://api.github.com/repos/igniterealtime/Smack/contributors","subscribers_url":"https://api.github.com/repos/igniterealtime/Smack/subscribers","subscription_url":"https://api.github.com/repos/igniterealtime/Smack/subscription","commits_url":"https://api.github.com/repos/igniterealtime/Smack/commits{/sha}","git_commits_url":"https://api.github.com/repos/igniterealtime/Smack/git/commits{/sha}","comments_url":"https://api.github.com/repos/igniterealtime/Smack/comments{/number}","issue_comment_url":"https://api.github.com/repos/igniterealtime/Smack/issues/comments{/number}","contents_url":"https://api.github.com/repos/igniterealtime/Smack/contents/{+path}","compare_url":"https://api.github.com/repos/igniterealtime/Smack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/igniterealtime/Smack/merges","archive_url":"https://api.github.com/repos/igniterealtime/Smack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/igniterealtime/Smack/downloads","issues_url":"https://api.github.com/repos/igniterealtime/Smack/issues{/number}","pulls_url":"https://api.github.com/repos/igniterealtime/Smack/pulls{/number}","milestones_url":"https://api.github.com/repos/igniterealtime/Smack/milestones{/number}","notifications_url":"https://api.github.com/repos/igniterealtime/Smack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/igniterealtime/Smack/labels{/name}","releases_url":"https://api.github.com/repos/igniterealtime/Smack/releases{/id}","deployments_url":"https://api.github.com/repos/igniterealtime/Smack/deployments","created_at":"2014-02-03T11:36:51Z","updated_at":"2016-04-08T07:44:50Z","pushed_at":"2016-04-07T18:44:29Z","git_url":"git://github.com/igniterealtime/Smack.git","ssh_url":"git@github.com:igniterealtime/Smack.git","clone_url":"https://github.com/igniterealtime/Smack.git","svn_url":"https://github.com/igniterealtime/Smack","homepage":"http://www.igniterealtime.org/projects/smack/","size":25107,"stargazers_count":841,"watchers_count":841,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":443,"mirror_url":null,"open_issues_count":6,"forks":443,"open_issues":6,"watchers":841,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/igniterealtime/Smack/pulls/73"},"html":{"href":"https://github.com/igniterealtime/Smack/pull/73"},"issue":{"href":"https://api.github.com/repos/igniterealtime/Smack/issues/73"},"comments":{"href":"https://api.github.com/repos/igniterealtime/Smack/issues/73/comments"},"review_comments":{"href":"https://api.github.com/repos/igniterealtime/Smack/pulls/73/comments"},"review_comment":{"href":"https://api.github.com/repos/igniterealtime/Smack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/igniterealtime/Smack/pulls/73/commits"},"statuses":{"href":"https://api.github.com/repos/igniterealtime/Smack/statuses/4614991d7b0a38978070573fe0231509fe6e369a"}}}}