Created
June 8, 2014 00:55
-
-
Save arlolra/7c0cf914e73ab001f2ec to your computer and use it in GitHub Desktop.
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') | |
Cryptocat.otr.sendFileData({ | |
start: true, | |
to: data.to, | |
@@ -142,7 +142,7 @@ Cryptocat.otr.ibbHandler = function(type, from, sid, data, seq) { | |
var file = rcvFile[from][sid].filename | |
rcvFile[from][sid].key = Cryptocat.buddies[nick].fileKey[file] | |
if (sid.match(/^\w{1,64}$/) && rcvFile[from][sid].mime.match(fileMIME)) { | |
- Cryptocat.addToConversation(sid, nick, nick, 'file') | |
+ Cryptocat.addToConversation(sid, nick, Cryptocat.buddies[nick].id, 'file') | |
} | |
delete Cryptocat.buddies[nick].fileKey[file] | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment