Merge branch 'master' of https://github.com/revoltchat/revite into pr-6

This commit is contained in:
janderedev 2021-08-12 22:29:41 +02:00
commit 60947b71ed
No known key found for this signature in database
GPG key ID: 5D5E18ACB990F57A
5 changed files with 60 additions and 62 deletions

View file

@ -192,9 +192,6 @@ export const MessageReply = observer(({ index, channel, id }: Props) => {
if ( if (
channel.channel_type === "TextChannel" channel.channel_type === "TextChannel"
) { ) {
console.log(
`/server/${channel.server_id}/channel/${channel._id}/${message._id}`,
);
history.push( history.push(
`/server/${channel.server_id}/channel/${channel._id}/${message._id}`, `/server/${channel.server_id}/channel/${channel._id}/${message._id}`,
); );

View file

@ -77,9 +77,6 @@ export interface ThemeOptions {
custom?: Partial<Theme>; custom?: Partial<Theme>;
} }
// import aaa from "@fontsource/open-sans/300.css?raw";
// console.info(aaa);
export const FONTS: Record<Fonts, { name: string; load: () => void }> = { export const FONTS: Record<Fonts, { name: string; load: () => void }> = {
"Open Sans": { "Open Sans": {
name: "Open Sans", name: "Open Sans",

View file

@ -195,8 +195,11 @@ export const UserProfile = observer(
<Edit size={28} /> <Edit size={28} />
</IconButton> </IconButton>
)} )}
{(user.relationship === RelationshipStatus.Incoming || {!user.bot &&
user.relationship === RelationshipStatus.None) && ( (user.relationship ===
RelationshipStatus.Incoming ||
user.relationship ===
RelationshipStatus.None) && (
<IconButton onClick={() => user.addFriend()}> <IconButton onClick={() => user.addFriend()}>
<UserPlus size={28} /> <UserPlus size={28} />
</IconButton> </IconButton>

View file

@ -585,6 +585,7 @@ function ContextMenus(props: Props) {
} }
if (user) { if (user) {
if (!user.bot) {
let actions: Action["action"][]; let actions: Action["action"][];
switch (user.relationship) { switch (user.relationship) {
case RelationshipStatus.User: case RelationshipStatus.User:
@ -639,6 +640,7 @@ function ContextMenus(props: Props) {
} as unknown as Action); } as unknown as Action);
} }
} }
}
if (contextualChannel) { if (contextualChannel) {
if (contextualChannel.channel_type === "Group" && uid) { if (contextualChannel.channel_type === "Group" && uid) {

View file

@ -174,7 +174,6 @@ export const MessageArea = observer(({ channel }: Props) => {
if (renderer.state === "RENDER") { if (renderer.state === "RENDER") {
runInAction(() => (renderer.fetching = true)); runInAction(() => (renderer.fetching = true));
console.log(renderer.scrollAnchored);
if (renderer.scrollAnchored) { if (renderer.scrollAnchored) {
setScrollState({ type: "ScrollToBottom" }); setScrollState({ type: "ScrollToBottom" });
} else { } else {