Skip to content
Permalink
Browse files

Spixi-0.3.0

  • Loading branch information...
IxiAngel committed Sep 17, 2019
1 parent 28912d0 commit 63204783f9c864f953ab06dc0964594fe3836bc5
Showing with 11 additions and 1 deletion.
  1. +6 −0 SPIXI/SPIXI/Friends/FriendList.cs
  2. +1 −1 SPIXI/SPIXI/Meta/Config.cs
  3. +4 −0 SPIXI/SPIXI/Network/StreamProcessor.cs
@@ -63,6 +63,11 @@ public static void setNickname(byte[] wallet_address, string nick, byte[] real_s
{
continue;
}
if(friend.messages[i].senderAddress == null || real_sender_address == null)
{
Logging.warn("Sender address is null");
continue;
}
if(friend.messages[i].senderAddress.SequenceEqual(real_sender_address))
{
friend.messages[i].senderNick = nick;
@@ -71,6 +76,7 @@ public static void setNickname(byte[] wallet_address, string nick, byte[] real_s
// update UI with the new nick
if (friend.chat_page != null)
{
Logging.info("Updating group chat nicks");
friend.chat_page.updateGroupChatNicks(real_sender_address, nick);
}
}
@@ -24,7 +24,7 @@ public class Config
public static readonly int packetDataSize = 102400; // 100 Kb per packet for file transfers
public static readonly long packetRequestTimeout = 30; // Time in seconds to re-request packets

public static readonly string version = "spixi-0.3.0-dev"; // Spixi version
public static readonly string version = "spixi-0.3.0"; // Spixi version

// Default SPIXI settings
public static bool defaultXamarinAnimations = false;
@@ -503,6 +503,10 @@ public static void receiveData(byte[] bytes, RemoteEndpoint endpoint)
{
case SpixiMessageCode.chat:
{
if(sender_address == null)
{
Logging.info("Sender address is null");
}
// Add the message to the friend list
FriendList.addMessage(spixi_message.id, message.sender, Encoding.UTF8.GetString(spixi_message.data), sender_address);
}

0 comments on commit 6320478

Please sign in to comment.
You can’t perform that action at this time.