mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-08-03 15:34:11 -04:00
Only show voice call button if there are exactly 2 members in the room. Also hide the somewhat user unfriendly call state.
This commit is contained in:
parent
073bec4830
commit
4b7f6dd7fc
2 changed files with 7 additions and 3 deletions
|
@ -51,7 +51,7 @@ angular.module('RoomController', ['ngSanitize', 'mFileInput'])
|
|||
objDiv.scrollTop = objDiv.scrollHeight;
|
||||
}, 0);
|
||||
};
|
||||
|
||||
|
||||
$scope.$on(eventHandlerService.MSG_EVENT, function(ngEvent, event, isLive) {
|
||||
if (isLive && event.room_id === $scope.room_id) {
|
||||
scrollToBottom();
|
||||
|
@ -88,6 +88,10 @@ angular.module('RoomController', ['ngSanitize', 'mFileInput'])
|
|||
call.onHangup = $scope.onCallHangup;
|
||||
$scope.currentCall = call;
|
||||
});
|
||||
|
||||
$scope.memberCount = function() {
|
||||
return Object.keys($scope.members).length;
|
||||
};
|
||||
|
||||
$scope.paginateMore = function() {
|
||||
if ($scope.state.can_paginate) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue