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) if (time.Date == DateTime.Now.ToLocalTime().Date)
{ {
Console.WriteLine(time);
time_str = $"Today at {time:h:mm tt}"; time_str = $"Today at {time:h:mm tt}";
} }
else if (time.Date == DateTime.Now.ToLocalTime().AddDays(-1).Date) 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) if (arg.Key == Keys.Enter && !arg.Shift)
{ {
var file = await Channel!.Server.UploadFile("/home/jacob/Pictures/Points.png"); //SocketFile file = await Channel!.Server.UploadFile("/home/jacob/Pictures/Points.png");
Console.WriteLine(file.ID); await Channel!.SendMessage(tb.Text, Profile: Globals.ServerProfile, files: Array.Empty<SocketFile>());
await Channel!.SendMessage(tb.Text, Profile: Globals.ServerProfile, files: file);
tb.Text = string.Empty; tb.Text = string.Empty;
tb.CursorLocation = 0; tb.CursorLocation = 0;
} }