remove default file

This commit is contained in:
JacobTech 2024-11-18 20:19:59 -05:00
parent ffdb5c7cc6
commit 7b8d0c8eb7
2 changed files with 2 additions and 4 deletions

View File

@ -71,7 +71,6 @@ public class ChatMessage : UserControl
{
if (time.Date == DateTime.Now.ToLocalTime().Date)
{
Console.WriteLine(time);
time_str = $"Today at {time:h:mm tt}";
}
else if (time.Date == DateTime.Now.ToLocalTime().AddDays(-1).Date)

View File

@ -185,9 +185,8 @@ public class PublicChat : UserControl
{
if (arg.Key == Keys.Enter && !arg.Shift)
{
var file = await Channel!.Server.UploadFile("/home/jacob/Pictures/Points.png");
Console.WriteLine(file.ID);
await Channel!.SendMessage(tb.Text, Profile: Globals.ServerProfile, files: file);
//SocketFile file = await Channel!.Server.UploadFile("/home/jacob/Pictures/Points.png");
await Channel!.SendMessage(tb.Text, Profile: Globals.ServerProfile, files: Array.Empty<SocketFile>());
tb.Text = string.Empty;
tb.CursorLocation = 0;
}