remove default file
This commit is contained in:
parent
ffdb5c7cc6
commit
7b8d0c8eb7
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user