From e237a02fa5005e5ce23c0bef799e735eb7182abc Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 13 Jul 2018 14:23:24 +0200 Subject: [PATCH] use more consistent naming --- src/components/structures/RoomView.js | 2 +- src/utils/DMRoomMap.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index a545eaab54..8d4a15642f 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -754,7 +754,7 @@ module.exports = React.createClass({ return; } const roomId = this.state.room.roomId; - const dmInviter = me.getDirectChatInviter(); + const dmInviter = me.getDMInviter(); if (dmInviter) { Rooms.setDMRoom(roomId, dmInviter); diff --git a/src/utils/DMRoomMap.js b/src/utils/DMRoomMap.js index 186dc31c3a..d47282f370 100644 --- a/src/utils/DMRoomMap.js +++ b/src/utils/DMRoomMap.js @@ -98,7 +98,7 @@ export default class DMRoomMap { const room = this.matrixClient.getRoom(roomId); if (room) { const me = room.getMember(this.matrixClient.getUserId()); - return me.getDirectChatInviter(); + return me.getDMInviter(); } } return this.roomToUser[roomId];