This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { utils: Cu } = Components; | |
Cu.import("resource:///modules/imServices.jsm"); | |
function rot13(aString) | |
aString.replace(/[a-zA-Z]/g, function(c) | |
String.fromCharCode(c.charCodeAt(0) + (c.toLowerCase() < "n" ? 1 : -1) * 13)); | |
function rotOn(tMsg, aConv, aCb) { | |
tMsg.toSend = rot13(tMsg.toSend); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Timestamp: 2014-05-13, 1:50:39 PM | |
Error: [Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: file:///Users/arlolra/Work/Tor/comm-central/obj-x86_64-apple-darwin13.1.0/mozilla/dist/Instantbird.app/Contents/MacOS/components/ibConvStatsService.js :: ConvStatsService.prototype._sortComparator :: line 362" data: no] | |
Source File: file:///Users/arlolra/Work/Tor/comm-central/obj-x86_64-apple-darwin13.1.0/mozilla/dist/Instantbird.app/Contents/MacOS/components/ibConvStatsService.js | |
Line: 362 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Timestamp: 2014-05-13, 2:03:55 PM | |
Error: NS_ERROR_FAILURE: Failure | |
Source File: file:///Users/arlolra/Work/Tor/comm-central/obj-x86_64-apple-darwin13.1.0/mozilla/dist/Instantbird.app/Contents/MacOS/components/imContacts.js | |
Line: 159 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/chat/components/public/prplIConversation.idl b/chat/components/public/prplIConversation.idl | |
--- a/chat/components/public/prplIConversation.idl | |
+++ b/chat/components/public/prplIConversation.idl | |
@@ -6,16 +6,17 @@ | |
#include "nsISupports.idl" | |
#include "nsISimpleEnumerator.idl" | |
#include "nsIObserver.idl" | |
interface imIAccountBuddy; | |
interface imIAccount; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { interfaces: Ci, utils: Cu, classes: Cc } = Components; | |
Cu.import("resource:///modules/imServices.jsm"); | |
let consoleService = Cc["@mozilla.org/consoleservice;1"] | |
.getService(Ci.nsIConsoleService); | |
function log(msg) { | |
consoleService.logStringMessage(msg); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/core/js/etc/fileTransfer.js b/src/core/js/etc/fileTransfer.js | |
index 8526d5d..1836d6e 100644 | |
--- a/src/core/js/etc/fileTransfer.js | |
+++ b/src/core/js/etc/fileTransfer.js | |
@@ -59,7 +59,7 @@ Cryptocat.otr.beginSendFile = function(data) { | |
if (err) { | |
return console.log(err) | |
} | |
- Cryptocat.addToConversation(sid, Cryptocat.me.nickname, data.to, 'file') | |
+ Cryptocat.addToConversation(sid, Cryptocat.me.nickname, Cryptocat.buddies[data.to].id, 'file') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/chat/components/public/prplIConversation.idl b/chat/components/public/prplIConversation.idl | |
--- a/chat/components/public/prplIConversation.idl | |
+++ b/chat/components/public/prplIConversation.idl | |
@@ -6,16 +6,17 @@ | |
#include "nsISupports.idl" | |
#include "nsISimpleEnumerator.idl" | |
#include "nsIObserver.idl" | |
interface imIAccountBuddy; | |
interface imIAccount; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/chat/components/public/imIConversationsService.idl b/chat/components/public/imIConversationsService.idl | |
--- a/chat/components/public/imIConversationsService.idl | |
+++ b/chat/components/public/imIConversationsService.idl | |
@@ -39,16 +39,21 @@ interface imIConversation: prplIConversa | |
// conversation without unread message, the implementation will call | |
// close(). | |
// The returned value indicates if the conversation was closed. | |
boolean checkClose(); | |
// Get an array of all messages of the conversation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/chat/components/public/imIConversationsService.idl b/chat/components/public/imIConversationsService.idl | |
--- a/chat/components/public/imIConversationsService.idl | |
+++ b/chat/components/public/imIConversationsService.idl | |
@@ -39,16 +39,21 @@ interface imIConversation: prplIConversa | |
// conversation without unread message, the implementation will call | |
// close(). | |
// The returned value indicates if the conversation was closed. | |
boolean checkClose(); | |
// Get an array of all messages of the conversation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/chat/components/public/imIConversationsService.idl b/chat/components/public/imIConversationsService.idl | |
--- a/chat/components/public/imIConversationsService.idl | |
+++ b/chat/components/public/imIConversationsService.idl | |
@@ -62,8 +62,26 @@ interface imIConversationsService: nsISu | |
imIConversation getUIConversationByContactId(in long aId); | |
nsISimpleEnumerator getConversations(); | |
prplIConversation getConversationById(in unsigned long aId); | |
prplIConversation getConversationByNameAndAccount(in AUTF8String aName, | |
in imIAccount aAccount, |
OlderNewer