Michael Telatynski
f8d2124aa3
MemberAvatar should not have its own letter fallback, it should use BaseAvatar's
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-26 13:33:47 +01:00
Bruno Windels
4978f8a2a9
validate hex color
2020-04-28 10:59:10 +02:00
Bruno Windels
19fc6a93ec
fix tests
2020-04-28 10:41:35 +02:00
Bruno Windels
1969310003
support overriding avatar background color from custom theme
2020-04-27 19:38:27 +02:00
Bruno Windels
e8e99c2646
Use color values for default avatar backgrounds
...
We still need to convert them to URLs for the notification icon,
so use a canvas (with a cache in front of it) to do that.
2020-04-27 19:35:38 +02:00
Michael Telatynski
e799691573
Apply null-guard to room pills for when we can't fetch the room
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-02-21 14:14:24 +00:00
Travis Ralston
bf6798e109
Appease the linter
2020-01-13 13:28:33 -07:00
Travis Ralston
5fd27a10bb
Merge branch 'develop' into travis/sourcemaps
2020-01-13 11:19:41 -07:00
J. Ryan Stinnett
77b479d50c
Guard against missing members in avatars
...
Part of https://github.com/vector-im/riot-web/issues/11744
2020-01-13 12:29:10 +00:00
Travis Ralston
36b7be920b
Merge branch 'travis/sourcemaps' into travis/babel7-wp-es6-fixes
2020-01-08 14:42:01 -07:00
Travis Ralston
59f608ffd6
Merge pull request #3761 from matrix-org/travis/babel7-wp-es6-export
...
Convert CommonJS exports to ES6 exports
2020-01-08 09:09:11 -07:00
Travis Ralston
206d4c78d2
Fix references to 'this' in Avatar and Unread
2020-01-03 12:32:29 -07:00
Travis Ralston
9edc361afc
Use new imports for js-sdk's ContentRepo
...
Per f4d1c5c006
2020-01-03 12:29:22 -07:00
Travis Ralston
d002c2ccde
Merge branch 'travis/babel7-wp-es6-export' into travis/sourcemaps-es6
2019-12-22 21:20:13 -07:00
Travis Ralston
042bd35d79
Fix MatrixClientPeg imports
2019-12-22 21:15:54 -07:00
Travis Ralston
344dac4fb9
Convert CommonJS exports to ES6-compatible exports
...
We use `export default` begrudgingly here. Ideally we'd use just `export`, though this entire SDK expects things to be exported as a default. Instead of breaking everything, we'll sacrifice our export pattern for a smaller diff - a later commit can always do the default export -> regular export conversion.
2019-12-22 21:01:02 -07:00
J. Ryan Stinnett
762e0111fb
Add trace as well
2019-09-30 16:00:58 +01:00
J. Ryan Stinnett
e7fdc5002e
Guard against falsy names in getInitialLetter
...
This ensures we check for a falsy name in `getInitialLetter` instead of throwing
errors. We should perhaps also fix whatever other issues have led to the input
being undefined in the first place, but for now we leave this for another day.
Hopefully helps with https://github.com/vector-im/riot-web/issues/10983
2019-09-30 15:40:39 +01:00
Bruno Windels
230e53fe2f
move most of room avatar handling to Avatar, to reuse in editor pills
2019-05-20 15:33:26 +02:00
Bruno Windels
e58d844e5b
move getInitialLetter to Avatar so we can reuse it for editor pills
2019-05-20 14:20:36 +02:00
J. Ryan Stinnett
69af0b82c8
Update avatar colors
2019-02-08 17:34:01 +00:00
J. Ryan Stinnett
20e296b20e
Convert image URLs in React to `require` calls
...
This allows Webpack to insert the proper image URL after builds steps like
adding a hash and so on. The path you supply to `require` is relative to the JS
source file, just like any other would be.
2019-01-17 22:06:49 -06:00
Michael Telatynski
e56203f2a1
de-lint RoomHeader, Avatar, SdkConfig, SlashCommands
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2017-07-01 14:13:32 +01:00
Robert Swain
39de37b547
*Avatar: Calculate thumbnail dimensions based on devicePixelRatio
...
Multiply the dimension by the device pixel ratio and then round it to
get the width/height of the thumbnail to use in the request.
2017-04-27 12:38:03 +02:00
Robert Swain
3d507e9840
(Room)?Avatar: Request 96x96 avatars on high DPI screens
2017-04-21 00:05:52 +02:00
David Baker
18d4d3392a
Fix a bunch of linting errors
...
eslint --fix and a few manual ones
2017-01-20 14:22:27 +00:00
Kegan Dougal
d6c7631dcc
Show User avatar URLs
2016-01-15 17:31:32 +00:00
Matthew Hodgson
0772f50fab
update copyright for 2016
2016-01-07 04:06:52 +00:00
Matthew Hodgson
960cc2d6b4
simplify avatar logic slightly
2015-11-30 14:39:42 +00:00
Kegan Dougal
1dc4e14606
Import things at the right levels
2015-11-26 13:49:39 +00:00
Kegan Dougal
7846d49403
Add missing deps; Move stuff in 'views' to have functional descriptors
2015-11-26 13:45:04 +00:00