implement_matrix
adb 4 years ago
parent 553caab7f9
commit 2ba39db752

@ -1,5 +1,5 @@
{ {
"name": "basic_messaging", "name": "matrix-chat",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {

@ -2,7 +2,7 @@
<div> <div>
<div ref="msgContainer" id="messagesContainer" class="messagesContainer"> <div ref="msgContainer" id="messagesContainer" class="messagesContainer">
<div id="messages" class="messages"> <div id="messages" class="messages">
<p v-if="session.currentRoom.messages.length === 0" class="emptyRoom">this room im empty</p> <p v-if="session.currentRoom.messages.length === 0" class="emptyRoom">this room is empty</p>
<div v-for="(message, i) in session.currentRoom.messages" :key="message.origin_server_ts"> <div v-for="(message, i) in session.currentRoom.messages" :key="message.origin_server_ts">
<div v-if="message.sender !== session.user && function(){ <div v-if="message.sender !== session.user && function(){
return i===0 || session.currentRoom.messages[i-1].sender!==message.sender;}()" return i===0 || session.currentRoom.messages[i-1].sender!==message.sender;}()"

Loading…
Cancel
Save