Kegan Dougal
4b3f743885
Reference the room_member key on messages which adjusts for current vs old_room_state. This displays names for historical users correctly, but is off by one (referencing content not prev_content).
2014-11-03 17:44:14 +00:00
Kegan Dougal
f3dbcdc7b3
Variable renaming, general cleanup. Don't feed state events from /initialSync twice.
2014-11-03 15:17:32 +00:00
Kegan Dougal
92e2ff4985
Fix bug which prevented room name invites appearing correctly.
2014-11-03 13:48:08 +00:00
Kegan Dougal
9b1ca64a75
Fix bug which prevented the number of users being visible on the recents view.
2014-11-03 13:26:50 +00:00
Kegan Dougal
fd535183ee
Remove events.rooms[room_id] entirely from event-handler-service.
...
Everything now uses modelService, but there are still one or two
minor teething problems to fix.
2014-11-03 12:18:22 +00:00
Kegan Dougal
6bc1dc4020
Make recents[controller/filter/html] use modelService.
...
This breaks functionality whilst both events.rooms and modelService
are in use.
2014-11-03 11:44:39 +00:00
Kegan Dougal
395bb64b26
Keep matrixService stateless and make matrixFilter use modelService.
2014-11-03 10:23:14 +00:00
Kegan Dougal
5ab9929cbb
Prevent EventStreamService from knowing too much about the EventHandlerService by changing the contract to just be a single initialSync response callback. Leave it up the handler to deal with splitting out information from /initialSync.
2014-11-03 09:44:20 +00:00
Kegan Dougal
f21960ec9d
Replace lots of .events.rooms[room_id] with .room
2014-10-31 17:13:27 +00:00
Kegan Dougal
b0f0b7b75e
room.html now displays messages from model-service. Add debugging fields. Hook up the room member *at the time* to the message so it can display the right historical member info.
2014-10-31 16:22:15 +00:00
Kegan Dougal
ea80b9208d
Hook into more of event-handler-service and mimic its functions for now.
2014-10-31 15:16:43 +00:00
Kegan Dougal
394f77c3ff
Parse /initialSync data and populate the new data structures.
2014-10-31 14:50:31 +00:00
Kegan Dougal
2aa79f4fbe
Added model-service.js to store model data.
2014-10-31 14:26:51 +00:00
Kegan Dougal
20cf0b7aeb
Factor out notification logic.
2014-10-31 11:54:04 +00:00
Kegan Dougal
ac2a177070
Add notification-service.js to handle binging/notifications. Shift logic to this service.
2014-10-31 11:20:07 +00:00
Kegan Dougal
baf472f83f
SYWEB-63: Fix desktop notification message when notifying for an image.
2014-10-31 10:02:56 +00:00
Kegan Dougal
8e8bbb00f5
SYWEB-12: Store unknown state events so they are displayed in the Room Info dialog.
2014-10-30 11:22:47 +00:00
Kegan Dougal
0f192579ac
SYWEB-48: Better regex for binging on usernames.
...
This uses /\blocalpart\b|\bdisplayname\b/i which is overall a lot
better than before. This specifically gets @localpart references
which the bug was originally for.
2014-10-29 17:44:57 +00:00
Kegan Dougal
c2f2e26ec5
SYWEB-98: Handle incoming m.room.redaction events.
...
UI for redactions is now complete.
2014-10-29 15:48:41 +00:00
Kegan Dougal
ed241ba032
Implement SYWEB-58: Clicking a notification now takes you to that room.
2014-10-29 11:29:26 +00:00
Kegan Dougal
4f6acf114c
Fix SYWEB-110 : Prevent room ID leaking by looking for an m.room.name
2014-10-27 17:05:13 +00:00
giomfo
cf1feee21d
HandleRoomMember: handle correctly prev_content
2014-10-27 14:17:16 +01:00
Matthew Hodgson
1342bcedaf
switch from the deprecated msg.content.prev to msg.prev_content.membership, and fix the bug where kicks of unjoined users aren't displayed sensibly in the history
2014-10-24 16:14:47 +01:00
Matthew Hodgson
e9abbe89f3
more timestamp fixes
2014-10-17 23:53:24 +01:00
Kegan Dougal
07890b43ca
Remove org.matrix.custom.text.html event type and replace it with 'format' and 'formatted_body' keys on m.text messages
2014-10-15 13:57:19 +01:00
Kegan Dougal
f4667f86af
Add support for org.matrix.custom.text.html
...
This format will remain undocumented as it is not yet suitable for
introduction into the specification.
2014-10-15 09:32:02 +01:00
Emmanuel ROHEE
ef99a5d972
getUserDisplayName: Disambiguate users who have the same displayname in the room.
...
Displayname are then disambiguate where it is necessary
2014-09-25 11:45:01 +02:00
Emmanuel ROHEE
2b4736afcd
Fixed getUserDisplayname when the user has a null displayname
2014-09-24 17:42:40 +02:00
Emmanuel ROHEE
432e8ef2bc
Fixed SYWEB-74: Emote desktop notifications sometimes lack a name: "undefined waves"
2014-09-24 16:52:48 +02:00
Emmanuel ROHEE
6f5970a2e1
Added hasOwnProperty tests when required to be robust to random properties added to he Object prototype
2014-09-24 12:22:40 +02:00
Emmanuel ROHEE
ef5b39c410
State data now provides up-to-date users displaynames. So use it first.
...
Continue to use presence data as fallback solution which is required when users do not join the room yet.
Created eventHandlerService.getUserDisplayName() as a single point to compute display name.
2014-09-24 11:04:27 +02:00
Matthew Hodgson
cbea225d97
manu: what's going on here?
2014-09-23 20:01:32 +01:00
Matthew Hodgson
997a016122
fix NPE
2014-09-23 13:01:12 +01:00
Kegan Dougal
b5c9d99424
Show display name changes in the message list.
2014-09-22 17:46:53 +01:00
Matthew Hodgson
a0c3da17b4
go back to the original behaviour of only notifying if we think the app is backgrounded or idle...
2014-09-20 01:40:29 +01:00
Emmanuel ROHEE
faec6f7f31
Oops. Removed dev logs
2014-09-18 17:48:20 +02:00
Emmanuel ROHEE
26dda48e50
SYWEB-14: BF: rooms invitations were not visible in recents after launching/refreshing the web page
2014-09-18 17:34:26 +02:00
Kegan Dougal
3dea0d2806
undefined is empty. Fixed bug where empty bingWords with old accounts which hadn't logged in didn't send notifications.
2014-09-18 16:17:29 +01:00
Emmanuel ROHEE
b7d42c1e93
SYWEB-40: Only local rooms are shown in the recents list.
...
Removed an old patch that deduplicated join events. This patch is now useless. Plus it is buggy since it compared event.content and event.prev_content only on the membership field whereas these objects contain more data now like displayname...
2014-09-18 15:28:52 +02:00
Emmanuel ROHEE
0db0528e8e
Reverted patches done for SYWEB-40
2014-09-18 15:19:35 +02:00
Kegan Dougal
ac8d73b258
Patch for SYWEB-40 : isStateEvent is not being set correctly, and really shouldn't be a configurable arg in the first place. As a result of being undefined, the events.rooms[rid].members object was not being updated in some cases, which combined with the recents-filter bug ( 32808e4
), caused federated rooms to not appear in the recents list.
2014-09-18 12:02:52 +01:00
Kegan Dougal
aeaeceb92c
Create room entries for public rooms too so their public state is transferred over correctly when you join it.
2014-09-17 16:38:40 +01:00
Kegan Dougal
16f55d4275
webclient SYWEB-3 : Public rooms are bold. Can't think of a nicer way which doesn't clutter the recents list.
2014-09-17 16:38:40 +01:00
Emmanuel ROHEE
65c37cc852
SYWEB-22: Format emote('/me') messages correctly in desktop notification
2014-09-17 16:13:09 +02:00
Kegan Dougal
d6c0cff3bd
Bugfix when content isn't a string.
2014-09-16 16:31:16 +01:00
Kegan Dougal
95e171e19a
Don't bing for sent messages. Handle cases where the member is unknown rather than erroring out.
2014-09-16 16:23:20 +01:00
Kegan Dougal
d7b206cc93
Added basic RegExp support.
2014-09-16 16:10:48 +01:00
Kegan Dougal
3395a3305f
Bing on all the things if there are 0 bing words.
2014-09-16 15:47:29 +01:00
Kegan Dougal
5aaa3c09c1
hidden/minimise/focus disaster disclaimer with the TODO
2014-09-16 15:35:23 +01:00
Kegan Dougal
b36a0c71d1
Added utility function containsBingWord and hook up some css to it.
2014-09-16 15:35:23 +01:00