aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarin <m.dzhigarov@gmail.com>2014-01-20 11:49:39 +0200
committerMarin <m.dzhigarov@gmail.com>2014-01-20 11:50:00 +0200
commitf7e447a97c687c8727f87caa55306200595760a2 (patch)
tree750c0b4c10faaf6d285b8659b3e111a155ac9791
parentca912ad0b5c8606c6333b33edc4835d595a860f1 (diff)
downloadjitsi-f7e447a97c687c8727f87caa55306200595760a2.zip
jitsi-f7e447a97c687c8727f87caa55306200595760a2.tar.gz
jitsi-f7e447a97c687c8727f87caa55306200595760a2.tar.bz2
Improves the OTR information messages displayed to the user when the session status is FINISHED
-rw-r--r--lib/installer-exclude/otr4j.jarbin94426 -> 94429 bytes
-rw-r--r--resources/languages/resources.properties4
-rw-r--r--src/net/java/sip/communicator/plugin/otr/ScOtrEngineImpl.java9
3 files changed, 5 insertions, 8 deletions
diff --git a/lib/installer-exclude/otr4j.jar b/lib/installer-exclude/otr4j.jar
index 6e4a280..06dc4a7 100644
--- a/lib/installer-exclude/otr4j.jar
+++ b/lib/installer-exclude/otr4j.jar
Binary files differ
diff --git a/resources/languages/resources.properties b/resources/languages/resources.properties
index d23ab6e..aabd1e8 100644
--- a/resources/languages/resources.properties
+++ b/resources/languages/resources.properties
@@ -1607,12 +1607,12 @@ plugin.otr.activator.sessionfinished={0} has ended his/her private conversation
plugin.otr.activator.sessionlost=Private conversation with {0} lost.
plugin.otr.activator.historyon={0} is recording this conversation on your device. You can <A href=\"jitsi://{1}/{2}\">turn off chat history here</a>.
plugin.otr.activator.historyoff={0} is NOT recording this conversation. You can <A href=\"jitsi://{1}/{2}\">activate chat history here</a>.
-plugin.otr.activator.sessionfinishederror=Your message was not sent. Please end your private conversation with {0}.
+plugin.otr.activator.sessionfinishederror=Your message [{0}] was not sent. Please end your private conversation with {1}.
plugin.otr.activator.smpaborted={0} has aborted the authentication process.
plugin.otr.activator.smperror=An error occurred in the authentication process.
plugin.otr.activator.unencryptedmsgreceived=The message was received unencrypted.
plugin.otr.activator.unreadablemsgreceived={0} sent you an unreadable encrypted message.
-plugin.otr.activator.requireencryption=Your message was not sent. Private messaging is required.
+plugin.otr.activator.requireencryption=Your message [{0}] was not sent. Private messaging is required.
plugin.otr.activator.unreadablemsgreply=You sent {0} an unreadable encrypted message. Please end your private conversation with {1} or refresh it.
plugin.otr.activator.fallbackmessage=<span style="font-weight: bold;">{0} is trying to initiate an encrypted \
<a href="http://en.wikipedia.org/wiki/Off-the-Record_Messaging">Off-The-Record conversation</a> with you. However, your software does not support \
diff --git a/src/net/java/sip/communicator/plugin/otr/ScOtrEngineImpl.java b/src/net/java/sip/communicator/plugin/otr/ScOtrEngineImpl.java
index 578c2d8..c3d8ae5 100644
--- a/src/net/java/sip/communicator/plugin/otr/ScOtrEngineImpl.java
+++ b/src/net/java/sip/communicator/plugin/otr/ScOtrEngineImpl.java
@@ -232,7 +232,7 @@ public class ScOtrEngineImpl
}
@Override
- public void finishedSessionMessage(SessionID sessionID)
+ public void finishedSessionMessage(SessionID sessionID, String msgText)
throws OtrException
{
OtrContact otrContact = getOtrContact(sessionID);
@@ -246,7 +246,7 @@ public class ScOtrEngineImpl
OtrActivator.resourceService.getI18NString(
"plugin.otr.activator.sessionfinishederror",
new String[]
- {contact.getDisplayName() + resourceName});
+ {msgText, contact.getDisplayName() + resourceName});
OtrActivator.uiService.getChat(contact).addMessage(
contact.getDisplayName(), new Date(),
Chat.ERROR_MESSAGE, error,
@@ -261,15 +261,12 @@ public class ScOtrEngineImpl
if (otrContact == null)
return;
- String resourceName = otrContact.resource != null ?
- "/" + otrContact.resource.getResourceName() : "";
-
Contact contact = otrContact.contact;
String error =
OtrActivator.resourceService.getI18NString(
"plugin.otr.activator.requireencryption",
new String[]
- {contact.getDisplayName() + resourceName});
+ {msgText});
OtrActivator.uiService.getChat(contact).addMessage(
contact.getDisplayName(), new Date(),
Chat.ERROR_MESSAGE, error,