Skip to content
This repository was archived by the owner on Apr 30, 2024. It is now read-only.

Commit 1911211

Browse files
committed
Merge branch 'rewrite/main' of https://github.com/UWPCommunity/Quarrel into rewrite/main
2 parents 0ea356f + 8ff6a05 commit 1911211

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

src/API/Discord.API/Rest/IChannelService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ namespace Discord.API.Rest
99
internal interface IChannelService
1010
{
1111
[Get("/v9/channels/{channelId}/messages/{messageId}/ack")]
12-
Task MarkRead([AliasAs("channelId")] ulong channelId, [AliasAs("messageId")] ulong messageId);
12+
[Headers("Content-Type: application/json;")]
13+
Task MarkRead([AliasAs("channelId")] ulong channelId, [AliasAs("messageId")] ulong messageId, [Body] string body = "{token: null}");
1314

1415
[Get("/v9/channels/{channelId}/messages?limit={limit}")]
1516
Task<JsonMessage[]> GetChannelMessages([AliasAs("channelId")] ulong channelId, [AliasAs("limit")] int limit = 50);

src/Quarrel/DataTemplates/ChannelTemplates.xaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111

1212
<DataTemplate x:Key="TextChannelTemplate" x:DataType="bindablechannels:BindableTextChannel">
1313
<Grid Height="40">
14+
15+
<Grid.ContextFlyout>
16+
<MenuFlyout>
17+
<MenuFlyoutItem x:Uid="Channel/MarkAsRead" Text="Mark as Read"
18+
Icon="View" Command="{x:Bind MarkAsReadCommand}"/>
19+
</MenuFlyout>
20+
</Grid.ContextFlyout>
21+
1422
<Grid Visibility="{x:Bind IsSelected, Mode=OneWay}" Opacity=".2" Background="{ThemeResource SystemControlBackgroundAccentBrush}"/>
1523

1624
<Border x:Name="UnreadIndicator"

src/Quarrel/DataTemplates/MessageTemplates.xaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,7 @@
105105
<Grid.ContextFlyout>
106106
<MenuFlyout>
107107
<MenuFlyoutItem x:Uid="Message/CopyLink" Text="Copy Message Link"
108-
Command="{x:Bind CopyLinkCommand}">
109-
<MenuFlyoutItem.Icon>
110-
<SymbolIcon Symbol="Link"/>
111-
</MenuFlyoutItem.Icon>
112-
</MenuFlyoutItem>
108+
Icon="Link" Command="{x:Bind CopyLinkCommand}"/>
113109
<MenuFlyoutItem x:Uid="Message/CopyId" Text="Copy ID"
114110
Command="{x:Bind CopyIdCommand}">
115111
<MenuFlyoutItem.Icon>

0 commit comments

Comments
 (0)