mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'MDL-64043-master' of git://github.com/ryanwyllie/moodle
This commit is contained in:
commit
c2fc318d4e
File diff suppressed because one or more lines are too long
@ -322,11 +322,10 @@ function(
|
||||
* @return {Object} patch
|
||||
*/
|
||||
var buildHeaderPatchTypePublic = function(state, newState) {
|
||||
var totalMemberCount = newState.totalMemberCount;
|
||||
var oldMemberCount = state.totalMemberCount;
|
||||
var newMemberCount = newState.totalMemberCount;
|
||||
|
||||
if (totalMemberCount === null) {
|
||||
return null;
|
||||
} else {
|
||||
if (oldMemberCount != newMemberCount) {
|
||||
return {
|
||||
type: Constants.CONVERSATION_TYPES.PUBLIC,
|
||||
showControls: true,
|
||||
@ -334,13 +333,15 @@ function(
|
||||
id: newState.id,
|
||||
name: newState.name,
|
||||
subname: newState.subname,
|
||||
totalmembercount: totalMemberCount,
|
||||
totalmembercount: newState.totalMemberCount,
|
||||
imageurl: newState.imageUrl,
|
||||
isfavourite: newState.isFavourite,
|
||||
// Don't show favouriting if we don't have a conversation.
|
||||
showfavourite: newState.id !== null
|
||||
}
|
||||
};
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user