Skip to content

Commit 3612eec

Browse files
authored
fix #466 (#467)
1 parent 420b770 commit 3612eec

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,7 @@ Example:
787787
| `custom-action-icon` | Add a custom icon inside the footer |
788788
| `rooms-header` | Add a template on top of rooms list (above the search bar) |
789789
| `room-list-item_{{ROOM_ID}}` | Replace the template of the room list items |
790+
| `room-list-info_{{ROOM_ID}}` | Replace the info of room list items |
790791
| `room-list-avatar_{{ROOM_ID}}` | Replace the avatar of room list items |
791792
| `room-list-options_{{ROOM_ID}}` | Replace the template of the list room options |
792793
| `room-list-options-icon_{{ROOM_ID}}` | Replace the room list options dropdown icon |

src/lib/RoomsList/RoomContent/RoomContent.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
class="vac-state-circle"
1616
:class="{ 'vac-state-online': userStatus === 'online' }"
1717
/>
18-
<div class="vac-room-name vac-text-ellipsis">
19-
{{ room.roomName }}
20-
</div>
18+
<slot :name="'room-list-info_' + room.roomId"></slot>
19+
<div class="vac-room-name vac-text-ellipsis">
20+
{{ room.roomName }}
21+
</div>
22+
</slot>
2123
<div v-if="room.lastMessage" class="vac-text-date">
2224
{{ room.lastMessage.timestamp }}
2325
</div>

0 commit comments

Comments
 (0)