From 09dfb3dea96aa5d9a7ca51b359e248f965035137 Mon Sep 17 00:00:00 2001 From: Friedrich von Never Date: Mon, 5 Feb 2024 23:58:16 +0100 Subject: [PATCH] (#190) Minor fixes before merge --- Emulsion.Telegram/Emulsion.Telegram.fsproj | 4 ++-- Emulsion.Telegram/Funogram.fs | 1 - Emulsion.Tests/Telegram/LinkGeneratorTests.fs | 4 +++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Emulsion.Telegram/Emulsion.Telegram.fsproj b/Emulsion.Telegram/Emulsion.Telegram.fsproj index 0854a367..d5d4d9a3 100644 --- a/Emulsion.Telegram/Emulsion.Telegram.fsproj +++ b/Emulsion.Telegram/Emulsion.Telegram.fsproj @@ -11,8 +11,8 @@ - - + + diff --git a/Emulsion.Telegram/Funogram.fs b/Emulsion.Telegram/Funogram.fs index 9381b716..9513998f 100644 --- a/Emulsion.Telegram/Funogram.fs +++ b/Emulsion.Telegram/Funogram.fs @@ -172,7 +172,6 @@ module MessageConverter = match message.ForwardOrigin with | Some(User { SenderUser = user }) -> Some (getUserDisplayName user) | Some(HiddenUser { SenderUserName = name }) -> Some name - // TODO: For the last two, there's AuthorSignature field. Probably we should try using it? | Some(MessageOrigin.Chat { SenderChat = chat }) -> Some (getChatDisplayName chat) | Some(MessageOrigin.Channel { Chat = chat }) -> Some (getChatDisplayName chat) | _ -> None diff --git a/Emulsion.Tests/Telegram/LinkGeneratorTests.fs b/Emulsion.Tests/Telegram/LinkGeneratorTests.fs index be240908..d728047e 100644 --- a/Emulsion.Tests/Telegram/LinkGeneratorTests.fs +++ b/Emulsion.Tests/Telegram/LinkGeneratorTests.fs @@ -2,12 +2,14 @@ open System -open Emulsion.ContentProxy open Funogram.Telegram.Types +open Serilog.Core open Xunit +open Emulsion.ContentProxy open Emulsion.Database open Emulsion.Settings +open Emulsion.Telegram open Emulsion.TestFramework let private hostingSettings = {