From 343670c5c499cc50c9f8a2b6c343f94b846f9855 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Thu, 26 Nov 2015 14:38:48 +0000 Subject: [PATCH] Move MessageTimestamp --- .../atoms => components/views/messages}/MessageTimestamp.js | 2 +- src/skins/vector/skindex.js | 3 ++- src/skins/vector/views/molecules/EventTile.js | 2 +- src/skins/vector/views/molecules/MRoomMemberTile.js | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) rename src/{skins/vector/views/atoms => components/views/messages}/MessageTimestamp.js (94%) diff --git a/src/skins/vector/views/atoms/MessageTimestamp.js b/src/components/views/messages/MessageTimestamp.js similarity index 94% rename from src/skins/vector/views/atoms/MessageTimestamp.js rename to src/components/views/messages/MessageTimestamp.js index 5795e556..a7289ca5 100644 --- a/src/skins/vector/views/atoms/MessageTimestamp.js +++ b/src/components/views/messages/MessageTimestamp.js @@ -17,7 +17,7 @@ limitations under the License. 'use strict'; var React = require('react'); -var DateUtils = require('../../../../DateUtils'); +var DateUtils = require('../../../DateUtils'); module.exports = React.createClass({ displayName: 'MessageTimestamp', diff --git a/src/skins/vector/skindex.js b/src/skins/vector/skindex.js index 49655587..459ed81a 100644 --- a/src/skins/vector/skindex.js +++ b/src/skins/vector/skindex.js @@ -25,6 +25,7 @@ var skin = {}; // Vector-specific stuff skin['elements.Spinner'] = require('../../components/views/elements/Spinner'); +skin['messages.MessageTimestamp'] = require('../../components/views/messages/MessageTimestamp'); // TODO: Fix this so matrix-react-sdk stuff is in react SDK skindex skin['avatars.RoomAvatar'] = require('matrix-react-sdk/lib/components/views/avatars/RoomAvatar'); @@ -35,7 +36,7 @@ skin['atoms.EditableText'] = require('./views/atoms/EditableText'); skin['atoms.EnableNotificationsButton'] = require('./views/atoms/EnableNotificationsButton'); skin['atoms.ImageView'] = require('./views/atoms/ImageView'); skin['atoms.LogoutButton'] = require('./views/atoms/LogoutButton'); -skin['atoms.MessageTimestamp'] = require('./views/atoms/MessageTimestamp'); + skin['atoms.create_room.CreateRoomButton'] = require('./views/atoms/create_room/CreateRoomButton'); skin['atoms.create_room.Presets'] = require('./views/atoms/create_room/Presets'); skin['atoms.create_room.RoomAlias'] = require('./views/atoms/create_room/RoomAlias'); diff --git a/src/skins/vector/views/molecules/EventTile.js b/src/skins/vector/views/molecules/EventTile.js index f3f8ae70..db636788 100644 --- a/src/skins/vector/views/molecules/EventTile.js +++ b/src/skins/vector/views/molecules/EventTile.js @@ -209,7 +209,7 @@ module.exports = React.createClass({ }, render: function() { - var MessageTimestamp = sdk.getComponent('atoms.MessageTimestamp'); + var MessageTimestamp = sdk.getComponent('messages.MessageTimestamp'); var SenderProfile = sdk.getComponent('molecules.SenderProfile'); var MemberAvatar = sdk.getComponent('avatars.MemberAvatar'); diff --git a/src/skins/vector/views/molecules/MRoomMemberTile.js b/src/skins/vector/views/molecules/MRoomMemberTile.js index 9dd51a55..025fb6f0 100644 --- a/src/skins/vector/views/molecules/MRoomMemberTile.js +++ b/src/skins/vector/views/molecules/MRoomMemberTile.js @@ -33,7 +33,7 @@ module.exports = React.createClass({ var timestamp = this.props.last ? : null; var text = this.getMemberEventText(); if (!text) return
; - var MessageTimestamp = sdk.getComponent('atoms.MessageTimestamp'); + var MessageTimestamp = sdk.getComponent('messages.MessageTimestamp'); var MemberAvatar = sdk.getComponent('avatars.MemberAvatar'); return (