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)
|
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)
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user