Clean up a little more DM detritus.
This commit is contained in:
parent
525a62033a
commit
a3fbb9671c
3 changed files with 1 additions and 10 deletions
1
chat/global.d.ts
vendored
1
chat/global.d.ts
vendored
|
@ -11,5 +11,4 @@ declare interface IChatMessage {
|
||||||
text_html: string;
|
text_html: string;
|
||||||
time: number;
|
time: number;
|
||||||
quotes: null | string;
|
quotes: null | string;
|
||||||
dm: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,7 +46,6 @@ export function ChatMessage({
|
||||||
text_html,
|
text_html,
|
||||||
time,
|
time,
|
||||||
quotes,
|
quotes,
|
||||||
dm,
|
|
||||||
} = message;
|
} = message;
|
||||||
const {
|
const {
|
||||||
id: userId,
|
id: userId,
|
||||||
|
@ -98,12 +97,11 @@ export function ChatMessage({
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={cx("ChatMessage", {
|
className={cx("ChatMessage", {
|
||||||
ChatMessage__isDm: dm,
|
|
||||||
ChatMessage__isOptimistic: isOptimistic,
|
ChatMessage__isOptimistic: isOptimistic,
|
||||||
})}
|
})}
|
||||||
id={id}
|
id={id}
|
||||||
style={
|
style={
|
||||||
isMention && !dm
|
isMention
|
||||||
? {
|
? {
|
||||||
background: `#${themeColor}25`,
|
background: `#${themeColor}25`,
|
||||||
borderLeft: `1px solid #${themeColor}`,
|
borderLeft: `1px solid #${themeColor}`,
|
||||||
|
@ -171,11 +169,6 @@ export function ChatMessage({
|
||||||
<QuotedMessageLink message={quotedMessage} />
|
<QuotedMessageLink message={quotedMessage} />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{!isDirect && dm && (
|
|
||||||
<small className="ChatMessage-quoted-link text-primary">
|
|
||||||
<em>(Sent only to you)</em>
|
|
||||||
</small>
|
|
||||||
)}
|
|
||||||
<div className="ChatMessage-bottom">
|
<div className="ChatMessage-bottom">
|
||||||
<div>
|
<div>
|
||||||
<span
|
<span
|
||||||
|
|
|
@ -74,7 +74,6 @@ def send_system_reply(text):
|
||||||
"quotes": [],
|
"quotes": [],
|
||||||
"avatar": g.db.query(User).filter(User.id == NOTIFICATIONS_ID).one().profile_url,
|
"avatar": g.db.query(User).filter(User.id == NOTIFICATIONS_ID).one().profile_url,
|
||||||
"user_id": NOTIFICATIONS_ID,
|
"user_id": NOTIFICATIONS_ID,
|
||||||
"dm": False,
|
|
||||||
"username": "System",
|
"username": "System",
|
||||||
"text": text,
|
"text": text,
|
||||||
"text_html": sanitize(text),
|
"text_html": sanitize(text),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue