Skip to content

Commit 63c485e

Browse files
Merge pull request #1539 from nextcloud/bugfix/1537/ensure-all-properties-of-rooms-are-set
Ensure all properties of rooms are set
2 parents ffb42eb + 97671af commit 63c485e

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

js/models/room.js

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,30 @@
4040
*/
4141
var Room = Backbone.Model.extend({
4242
defaults: {
43-
name: '',
43+
id: '',
4444
token: '',
45+
name: '',
46+
type: 0,
47+
displayName: '',
48+
objectType: '',
49+
objectId: '',
50+
participantType: 0,
51+
participantFlags: 0,
4552
count: 0,
46-
active: false,
47-
lastPing: 0
53+
hasPassword: false,
54+
hasCall: false,
55+
lastActivity: 0,
56+
unreadMessages: 0,
57+
unreadMention: false,
58+
isFavorite: false,
59+
notificationLevel: 0,
60+
lastPing: 0,
61+
sessionId: '0',
62+
participants: [],
63+
numGuests: 0,
64+
guestList: '',
65+
lastMessage: [],
66+
active: false
4867
},
4968
url: function() {
5069
return OC.linkToOCS('apps/spreed/api/v1/room', 2) + this.get('token');

0 commit comments

Comments
 (0)