mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-06 04:42:26 +00:00
remove gravatars
GitOrigin-RevId: e90bddcc560160cdf7397acc311f7f31f9861f81
This commit is contained in:
parent
d536ea8a24
commit
b5814f0a3a
3 changed files with 2 additions and 28 deletions
|
@ -28,8 +28,6 @@ aside.chat(
|
|||
ng-class="{'self': message.user.id == user.id }"
|
||||
)
|
||||
div.date(ng-if="$index == 0 || (message.timestamp - chat.messages[$index - 1].timestamp) > 5 * 60 * 1000") {{ message.timestamp | formatDate:'h:mm a' }} {{ message.timestamp | relativeDate }}
|
||||
span.avatar
|
||||
img(ng-src="{{message.user.gravatar_url}}?d=mm&s=50")
|
||||
div.message-wrapper
|
||||
.name(ng-if="message.user.id != user.id")
|
||||
span(ng-if="message.user.first_name") {{ message.user.first_name }}
|
||||
|
@ -53,5 +51,3 @@ aside.chat(
|
|||
ng-model="newMessageContent",
|
||||
ng-click="resetUnreadMessages()"
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['../../../base', 'crypto-js/md5'], (App, CryptoJS) =>
|
||||
define(['../../../base'], (App) =>
|
||||
App.factory('chatMessages', function($http, ide) {
|
||||
const MESSAGES_URL = `/project/${ide.project_id}/messages`
|
||||
const MESSAGE_LIMIT = 50
|
||||
|
@ -119,7 +119,7 @@ define(['../../../base', 'crypto-js/md5'], (App, CryptoJS) =>
|
|||
return firstMessage.contents.unshift(message.content)
|
||||
} else {
|
||||
return chat.state.messages.unshift({
|
||||
user: formatUser(message.user),
|
||||
user: message.user,
|
||||
timestamp: message.timestamp,
|
||||
contents: [message.content]
|
||||
})
|
||||
|
@ -152,12 +152,6 @@ define(['../../../base', 'crypto-js/md5'], (App, CryptoJS) =>
|
|||
}
|
||||
}
|
||||
|
||||
var formatUser = function(user) {
|
||||
const hash = CryptoJS(user.email.toLowerCase())
|
||||
user.gravatar_url = `//www.gravatar.com/avatar/${hash}`
|
||||
return user
|
||||
}
|
||||
|
||||
return chat
|
||||
}))
|
||||
function __guard__(value, transform) {
|
||||
|
|
|
@ -45,20 +45,7 @@
|
|||
border-bottom: 1px solid @gray-lightest;
|
||||
text-align: center;
|
||||
}
|
||||
.avatar {
|
||||
margin-top: 14px;
|
||||
float: left;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.message-wrapper {
|
||||
margin-left: 50px + @line-height-computed / 2;
|
||||
|
||||
.name {
|
||||
font-size: 12px;
|
||||
color: @chat-message-name-color;
|
||||
|
@ -111,9 +98,6 @@
|
|||
|
||||
&.self {
|
||||
margin-top: @line-height-computed;
|
||||
.avatar {
|
||||
display: none;
|
||||
}
|
||||
.message-wrapper .message {
|
||||
border-left: none;
|
||||
border-right: 3px solid transparent;
|
||||
|
|
Loading…
Add table
Reference in a new issue