Commit Graph

29 Commits

Author SHA1 Message Date
Kegan Dougal
974206ebe1 Use mUserDisplayName filter in more places. Store power_level[norm] for each RoomMember. 2014-11-14 11:13:03 +00:00
Kegan Dougal
633137d501 Remove getUserDisplayName and move that logic the filter mUserDisplayName. Update references. Skip tests for now as there are some unresolved DI issues for filters. 2014-11-13 17:59:08 +00:00
Kegan Dougal
3916e23bbd Remove rootScope.presence and replaced with modelService.getUser/setUser. 2014-11-13 16:43:53 +00:00
Kegan Dougal
d085807070 Migrate random bits of desktop notification logic out of roomController and into eventHandlerService where everything else is. 2014-11-13 15:21:50 +00:00
David Baker
cdb8d746ef Merge with Matthew's killing of ng-animate
Conflicts:
	syweb/webclient/app-controller.js
	syweb/webclient/index.html
2014-11-13 14:37:43 +00:00
David Baker
f842bca471 Kill ng-animate with fire because it's terrible (was causing the page to be very sluggish). Do the call icons in pure CSS3 and use one less image to boot (in some browsers the phone icon will be the wrong browser but they can deal). 2014-11-13 14:34:03 +00:00
Kegan Dougal
8ce69e802d SYWEB-152: Migrate IRC command logic to commands-service. 2014-11-13 11:55:49 +00:00
David Baker
9950ce2334 Detect OpenWebRTC and add workarounds, but comment out the turn server removal for now so we have a live demo of it not working. 2014-11-12 17:34:00 +00:00
Kegan Dougal
3d3f692fd8 Add test coverage to the webclient. Update .gitignore 2014-11-12 16:22:22 +00:00
David Baker
9412110c82 comment typo 2014-11-12 15:36:05 +00:00
Kegan Dougal
960b28c90a SYWEB-57: Highlight rooms which have had their bingers go off in blue.
Priority is the same as xchat so selected > blue > red.
2014-11-12 15:31:06 +00:00
Kegan Dougal
99c445a6d6 Migrate unread messages logic to recentsService. 2014-11-12 15:11:34 +00:00
Kegan Dougal
96cd467cfa Add recents-service to store shared state between recents-controllers.
Remove the selectedRoomId from rootScope and instead store it in
recents-service. Add a broadcast to notify listeners (recents-controller)
to updates of this.
2014-11-12 14:57:36 +00:00
Kegan Dougal
78ff63a9c7 Remove getRoomAliasAndDisplayName: room name logic is in mRoomName filter, and this method was only used for /publicRooms requests. 2014-11-12 11:49:27 +00:00
Kegan Dougal
2c400363e8 SYWEB-146: Fix room ID leaking on recents page when the name of the room is just an alias. 2014-11-12 11:24:05 +00:00
Kegan Dougal
9d0efedaee Move room alias/id mapping logic from matrixService to modelService. 2014-11-12 11:14:19 +00:00
Matthew Hodgson
bf944d9219 fix stupid truncation bug 2014-11-11 05:50:55 +00:00
Matthew Hodgson
588dcf492b wrap fully qualified user IDs more intelligently 2014-11-11 05:16:03 +00:00
David Baker
7d15452c30 Various fixes to try & make openwebrtc safari extension work (still doesn't work). 2014-11-07 17:56:28 +00:00
David Baker
1a62f1299d Detect call type by examining the SDP always rather than just in Firefox as it seems Chrome's behaviour is the odd one out here. 2014-11-06 16:55:15 +00:00
David Baker
4b256cab31 Don't cache isWebRTCSupported because whether webRTC is supported might change part-way through the page's lifecycle if your webrtc support comes from some kind of injected content script (hello OpenWebRTC Sarafi extension) 2014-11-06 16:49:33 +00:00
Kegan Dougal
e3c3f5a6d0 Swap from using raw m.room.member events for room members to using actual RoomMember objects, so User objects can be tacked on. Update tests. 2014-11-06 14:52:22 +00:00
Kegan Dougal
8bcd36377a Factor out room name logic: mRoomName is the canonical source. 2014-11-06 13:37:05 +00:00
Kegan Dougal
a92092340b Fix broken tests which were previously skipped. 2014-11-06 11:14:31 +00:00
Kegan Dougal
988a8526b5 Finish matrixService unit tests. Add missing encodeURIComponent to path args. 2014-11-05 14:35:41 +00:00
Kegan Dougal
42081b1937 Don't urlencode event types just yet so older HSes don't 500.
Skip the tests which test for urlencoding, and add a TODO
in matrixService.
2014-11-05 11:28:22 +00:00
Kegan Dougal
9f6d1b10ad Be sure to urlencode/decode event types correctly in both the web client and HS. 2014-11-05 11:21:55 +00:00
Kegan Dougal
4facbe02fb URL encoding bugfix and add more tests. 2014-11-04 17:48:47 +00:00
Mark Haines
89ba802b23 Move webclient to a python module so that it can be installed 2014-11-04 15:57:23 +00:00