Send m.sticker messages
							parent
							
								
									d20aebfbd7
								
							
						
					
					
						commit
						54671ab67e
					
				|  | @ -275,8 +275,8 @@ class ContentMessages { | |||
|         this.nextId = 0; | ||||
|     } | ||||
| 
 | ||||
|     sendURLContentToRoom(url, roomId, info, text, matrixClient) { | ||||
|       return MatrixClientPeg.get().sendImageMessage(roomId, url, info, text).catch((e) => { | ||||
|     sendStickerContentToRoom(url, roomId, info, text, matrixClient) { | ||||
|       return MatrixClientPeg.get().sendStickerMessage(roomId, url, info, text).catch((e) => { | ||||
|         console.warn(`Failed to send content with URL ${url} to room ${roomId}`, e); | ||||
|       }); | ||||
|     } | ||||
|  |  | |||
|  | @ -916,7 +916,7 @@ module.exports = React.createClass({ | |||
|             return; | ||||
|         } | ||||
| 
 | ||||
|         ContentMessages.sendURLContentToRoom(url, this.state.room.roomId, info, text, MatrixClientPeg.get()) | ||||
|         ContentMessages.sendStickerContentToRoom(url, this.state.room.roomId, info, text, MatrixClientPeg.get()) | ||||
|           .done(undefined, (error) => { | ||||
|               if (error.name === "UnknownDeviceError") { | ||||
|                   // Let the staus bar handle this
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Richard Lewis
						Richard Lewis