mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 10:44:55 -04:00
Highlight the current room in the recents list
This commit is contained in:
parent
7ee5288849
commit
d9155b6a25
4 changed files with 16 additions and 2 deletions
|
@ -20,7 +20,11 @@ angular.module('RecentsController', ['matrixService', 'eventHandlerService'])
|
|||
.controller('RecentsController', ['$scope', 'matrixService', 'eventHandlerService', 'eventStreamService',
|
||||
function($scope, matrixService, eventHandlerService, eventStreamService) {
|
||||
$scope.rooms = {};
|
||||
|
||||
|
||||
// $scope of the parent where the recents component is included can override this value
|
||||
// in order to highlight a specific room in the list
|
||||
$scope.recentsSelectedRoomID;
|
||||
|
||||
$scope.$on(eventHandlerService.MEMBER_EVENT, function(ngEvent, event, isLive) {
|
||||
var config = matrixService.config();
|
||||
if (event.state_key === config.user_id && event.content.membership === "invite") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue