Compare commits

..

2 commits

Author SHA1 Message Date
hippoz
f67909c8e7
frontend: fix message view not scrolling to bottom when re-selecting channel 2022-04-27 17:08:32 +03:00
hippoz
25b1ba653c
frontend: fix gateway reconnect 2022-04-27 17:08:19 +03:00
3 changed files with 3 additions and 7 deletions

View file

@ -16,13 +16,9 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.hidden {
display: none;
}
</style> </style>
<div class="main-container" class:hidden={ !$showChannelView }> <div class="main-container">
<ChannelTopBar channel={ channel } /> <ChannelTopBar channel={ channel } />
<Messages channelId="{ channel.id }" /> <Messages channelId="{ channel.id }" />
<MessageInput channel={ channel } /> <MessageInput channel={ channel } />

View file

@ -29,7 +29,7 @@
{#if $showSidebar} {#if $showSidebar}
<Sidebar /> <Sidebar />
{/if} {/if}
{#if !($smallViewport && $showSidebar)} {#if !($smallViewport && $showSidebar) && $showChannelView}
<ChannelView channel={$selectedChannel} /> <ChannelView channel={$selectedChannel} />
{/if} {/if}
</div> </div>

View file

@ -114,7 +114,7 @@ export default {
this.reconnectDelay *= 2; this.reconnectDelay *= 2;
} }
this.reconnectTimeout = setTimeout(() => { this.reconnectTimeout = setTimeout(() => {
this.init(); this.init(token);
}, this.reconnectDelay); }, this.reconnectDelay);
} }