@@ -91,17 +91,19 @@ module.exports = baseVw.extend({
9191 this . avatarURL = this . userModel . get ( 'serverUrl' ) + "get_image?hash=" + this . userProfile . get ( 'avatar_hash' ) ;
9292 }
9393
94+ this . avatar_hash = this . userProfile . get ( 'avatar_hash' ) ;
95+
9496 this . listenTo ( window . obEventBus , "socketMessageReceived" , this . handleSocketMessage ) ;
9597
9698 this . listenTo ( this . discussionCol , "add" , this . addDiscussionMessage ) ;
9799
98100 this . model = new orderModel ( {
99101 cCode : this . cCode ,
100102 btAve : this . btAve ,
103+ avatar_hash : this . avatar_hash ,
101104 //serverUrl: this.serverUrl,
102105 //transactionType: this.transactionType,
103106 //avatarURL: this.avatarURL,
104- //avatar_hash: this.userProfile.get('avatar_hash'),
105107 //orderID: this.orderID,
106108 //userGuid: this.userModel.get('guid')
107109 } ) ;
@@ -164,6 +166,8 @@ module.exports = baseVw.extend({
164166 transactionType : self . transactionType ,
165167 userGuid : self . userModel . get ( 'guid' ) ,
166168 status : self . status ,
169+ avatarURL : self . avatarURL ,
170+ avatar_hash : self . avatar_hash ,
167171 orderID : self . orderID
168172 } )
169173 ) ) ;
@@ -549,7 +553,7 @@ module.exports = baseVw.extend({
549553 messageText = messageInput . val ( ) ,
550554 self = this ,
551555 socketMessageId = Math . random ( ) . toString ( 36 ) . slice ( 2 ) ,
552- avatar_hash = this . model . get ( ' avatar_hash' ) ;
556+ avatar_hash = this . avatar_hash
553557
554558 __ . each ( messages , function ( msg ) {
555559 if ( messageText ) {
0 commit comments