Skip to content

Commit

Permalink
Direct messages and group messages support
Browse files Browse the repository at this point in the history
  • Loading branch information
slatinsky committed Oct 20, 2022
1 parent 9adcf9e commit e107013
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion preprocess/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def group_messages_and_channels(self, messages, channels):
threads = {}
normal_channels = {} # non thread channels
for channel in channels.values():
if channel['type'] == "GuildTextChat":
if channel['type'] == "GuildTextChat" or channel['type'] == "DirectTextChat" or channel['type'] == "DirectGroupTextChat":
normal_channels[channel['id']] = channel
elif channel['type'] == "GuildPublicThread":
threads[channel['id']] = channel
Expand Down
2 changes: 1 addition & 1 deletion src/routes/channels/[guildId]/SearchResults.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{#if $searched}
<div class="search-found-count">
<div>{$found_messages.length} Results</div>
<button on:click={()=>searched=false}>×</button>
<button on:click={()=>$searched=false}>×</button>
</div>
{/if}
<div class="search-results">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/channels/[guildId]/[channelId]/Message.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
<div bind:this={root}>
{#if loaded}
{#if search&& message.searchPrevMessageChannelId && message.searchPrevMessageChannelId !== message.channelId}
<div class="channel-name"># {guild.channels[message.channelId]?.name}</div>
<div class="channel-name"><a href="/channels/{guild.id}/{message.channelId}/"># {guild.channels[message.channelId]?.name}</a></div>
{/if}
<div class="chatlog__message-group" transition:fade={{ duration: 125 }}>
<!-- <button on:click={()=>copyTextToClipboard(message.id)}>Copy ID</button> -->
Expand Down

0 comments on commit e107013

Please sign in to comment.