Skip to content

Commit

Permalink
Add profile photo support.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewJDR committed Mar 6, 2017
1 parent 8387e8a commit 9b74aa5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions hangups_client.py
Expand Up @@ -166,6 +166,7 @@ def on_event(conv_event):
'content':conv_event.text,
'conversation_id': conv.id_,
'conversation_name':get_conv_name(conv),
'photo_url':user.photo_url,
'user':user.full_name,
'self_user_id':user_list._self_user.id_.chat_id,
'user_id':{'chat_id':conv_event.user_id.chat_id, 'gaia_id':conv_event.user_id.gaia_id}
Expand Down
1 change: 1 addition & 0 deletions index.js
Expand Up @@ -51,6 +51,7 @@ class App extends MatrixPuppetBridgeBase {
senderName: data.user,
senderId: isMe ? undefined : data.user_id.chat_id,
text: data.content,
avatarUrl: data.photo_url,
};
return this.handleThirdPartyRoomMessage(payload).catch(err => {
console.log("handleThirdPartyRoomMessage error", err);
Expand Down
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "matrix-puppet-hangouts",
"version": "0.0.1",
"version": "0.0.2",
"description": "",
"main": "index.js",
"scripts": {
Expand All @@ -18,7 +18,7 @@
"license": "ISC",
"dependencies": {
"bluebird": "^3.4.7",
"matrix-puppet-bridge": "^1.7.4"
"matrix-puppet-bridge": "^1.9.1"
},
"devDependencies": {
"eslint": "^3.12.2"
Expand Down

1 comment on commit 9b74aa5

@kfatehi
Copy link
Member

@kfatehi kfatehi commented on 9b74aa5 Mar 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit is a hilariously simple XD

Please sign in to comment.