Skip to content

Commit

Permalink
Added author info to an appended message
Browse files Browse the repository at this point in the history
  • Loading branch information
anze3db committed Sep 27, 2011
1 parent c6c6971 commit ed3fa93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,14 +308,14 @@ Source.prototype = {
},

_onDisplayedChatMessage: function(emitter, account, author, text, conversation, flag) {

if (text && (this._conversation == conversation) && (flag & 3) == 2) {
// accept messages from people who sent us something with our nick in it
if ((flag & 32) == 32) {
this._authors[author] = true;
}
if (author in this._authors) {
let message = wrappedText(text, author, null, TelepathyClient.NotificationDirection.RECEIVED);
let message = wrappedText(author + ": " + text, author, null, TelepathyClient.NotificationDirection.RECEIVED);
this._notification.appendMessage(message, false);
this.notify();
}
Expand Down

0 comments on commit ed3fa93

Please sign in to comment.