Skip to content
Permalink
Browse files

Removed this qualifier if not needed

  • Loading branch information...
COM8 committed Aug 15, 2019
1 parent c1d8806 commit b779efcd9009d857f5b9c60653f824dc196115d6
Showing with 617 additions and 617 deletions.
  1. +2 −2 BackgroundSocket/Classes/BackgroundSocketHandler.cs
  2. +3 −3 Component_Tests/UnitTestApp.xaml.cs
  3. +4 −4 Data_Manager2/Classes/ConnectionHandler.cs
  4. +1 −1 Data_Manager2/Classes/DBManager/DiscoDBManager.cs
  5. +15 −15 Data_Manager2/Classes/DBTables/AccountTable.cs
  6. +19 −19 Data_Manager2/Classes/DBTables/ChatMessageTable.cs
  7. +12 −12 Data_Manager2/Classes/DBTables/ChatTable.cs
  8. +3 −3 Data_Manager2/Classes/DBTables/ConnectionOptionsTable.cs
  9. +4 −4 Data_Manager2/Classes/DBTables/MUCDirectInvitationTable.cs
  10. +1 −1 Data_Manager2/Classes/DBTables/Omemo/OmemoDeviceListSubscriptionTable.cs
  11. +3 −3 Data_Manager2/Classes/DBTables/Omemo/OmemoDeviceTable.cs
  12. +2 −2 Data_Manager2/Classes/Events/AccountChangedEventArgs.cs
  13. +2 −2 Data_Manager2/Classes/Events/ChatChangedEventArgs.cs
  14. +2 −2 Data_Manager2/Classes/Events/ChatMessageChangedEventArgs.cs
  15. +1 −1 Data_Manager2/Classes/Events/ClientConnectedEventArgs.cs
  16. +2 −2 Data_Manager2/Classes/Events/MUCInfoChangedEventArgs.cs
  17. +2 −2 Data_Manager2/Classes/Events/MUCOccupantChangedEventArgs.cs
  18. +1 −1 Data_Manager2/Classes/Events/NewChatMessageEventArgs.cs
  19. +2 −2 Data_Manager2/Classes/ImageDownloadHandler.cs
  20. +7 −7 Data_Manager2/Classes/MUCJoinHelper.cs
  21. +1 −1 Data_Manager2/Classes/Omemo/OmemoStore.cs
  22. +6 −6 Data_Manager2/Classes/Toast/ChatToastActivation.cs
  23. +4 −4 Data_Manager2/Classes/Toast/MarkChatAsReadToastActivation.cs
  24. +4 −4 Data_Manager2/Classes/Toast/MarkMessageAsReadToastActivation.cs
  25. +2 −2 Data_Manager2/Classes/Toast/OnChatMessageToastEventArgs.cs
  26. +6 −6 Data_Manager2/Classes/Toast/SendReplyToastActivation.cs
  27. +1 −1 Push_App_Server/Classes/DataWriter.cs
  28. +2 −2 Push_App_Server/Classes/PushConnection.cs
  29. +2 −2 UWP XMPP Client/Classes/Collections/ObservableChatDictionaryList.cs
  30. +1 −1 UWP XMPP Client/Classes/Events/AccountSelectionChangedEventArgs.cs
  31. +3 −3 UWP XMPP Client/Classes/Events/NavigatedToMUCInfoEventArgs.cs
  32. +2 −2 UWP XMPP Client/Classes/Events/NavigatedToUserProfileEventArgs.cs
  33. +1 −1 UWP XMPP Client/Classes/Events/SelectionChangedMultiEventArgs.cs
  34. +1 −1 UWP XMPP Client/Classes/ShowAddMUCNavigationParameter.cs
  35. +1 −1 UWP XMPP Client/Controls/AccountImageWithPresenceControl.xaml.cs
  36. +4 −4 UWP XMPP Client/Controls/AccountSelectionControl.xaml.cs
  37. +1 −1 UWP XMPP Client/Controls/BackgroundImageSelectionControl.xaml.cs
  38. +3 −3 UWP XMPP Client/Controls/BrowseMUCRoomsDetailsControl.xaml.cs
  39. +1 −1 UWP XMPP Client/Controls/BrowseMUCRoomsMasterControl.xaml.cs
  40. +1 −1 UWP XMPP Client/Controls/DonateControl.xaml.cs
  41. +1 −1 UWP XMPP Client/Controls/IconButtonControl.xaml.cs
  42. +1 −1 UWP XMPP Client/Controls/IconTextBlockControl.xaml.cs
  43. +1 −1 UWP XMPP Client/Controls/LoadingContentControl.xaml.cs
  44. +1 −1 UWP XMPP Client/Controls/ManageBookmarksDetailsControl.xaml.cs
  45. +1 −1 UWP XMPP Client/Controls/ManageBookmarksMasterControl.xaml.cs
  46. +4 −4 UWP XMPP Client/Controls/Muc/MUCManageControl.xaml.cs
  47. +4 −4 UWP XMPP Client/Controls/Muc/MUCOccupantsControl.xaml.cs
  48. +3 −3 UWP XMPP Client/Controls/Muc/MucBanListControl.xaml.cs
  49. +2 −2 UWP XMPP Client/Controls/Muc/MucFieldControl.xaml.cs
  50. +2 −2 UWP XMPP Client/Controls/Muc/MucInfoControl.xaml.cs
  51. +4 −4 UWP XMPP Client/Controls/Muc/MucKickBanOccupantControl.xaml.cs
  52. +4 −4 UWP XMPP Client/Controls/Muc/SaveablePasswordBox.xaml.cs
  53. +3 −3 UWP XMPP Client/Controls/Muc/SaveableTextBox.xaml.cs
  54. +3 −3 UWP XMPP Client/Controls/MultiSelectControl.xaml.cs
  55. +6 −6 UWP XMPP Client/Controls/Omemo/QRCodeReaderControl.xaml.cs
  56. +1 −1 UWP XMPP Client/Controls/PasswordCredentialControl.xaml.cs
  57. +1 −1 UWP XMPP Client/Controls/SeperatorControl.xaml.cs
  58. +4 −4 UWP XMPP Client/Controls/ServerFeaturesControl.xaml.cs
  59. +5 −5 UWP XMPP Client/DataTemplates/ChatTemplate.cs
  60. +4 −4 UWP XMPP Client/Dialogs/AddBookmarkDialog.xaml.cs
  61. +8 −8 UWP XMPP Client/Dialogs/AddMUCDialog.xaml.cs
  62. +1 −1 UWP XMPP Client/Dialogs/ChangeAccountPresenceDialog.xaml.cs
  63. +2 −2 UWP XMPP Client/Dialogs/ConfirmDialog.xaml.cs
  64. +2 −2 UWP XMPP Client/Dialogs/InitialStartDialog.xaml.cs
  65. +6 −6 UWP XMPP Client/Dialogs/InviteUserMUCDialog.xaml.cs
  66. +6 −6 UWP XMPP Client/Dialogs/MUCKickBanOccupantDialog.xaml.cs
  67. +1 −1 UWP XMPP Client/Dialogs/ReadQRCodeDialog.xaml.cs
  68. +3 −3 UWP XMPP Client/Dialogs/TextDialog.xaml.cs
  69. +3 −3 UWP XMPP Client/Pages/BrowseMUCRoomsPage.xaml.cs
  70. +1 −1 UWP XMPP Client/Pages/MUCInfoPage.xaml.cs
  71. +3 −3 UWP XMPP Client/Pages/ManageBookmarksPage.xaml.cs
  72. +3 −3 UWP XMPP Client/Pages/SettingsPages/PersonalizeSettingsPage.xaml.cs
  73. +2 −2 UWP XMPP Client/Pages/SettingsPages/SecuritySettingsPage.xaml.cs
  74. +4 −4 UWP XMPP Client/Pages/UserProfilePage.xaml.cs
  75. +4 −4 XMPP_API/Classes/Crypto/Aes128GcmCpp.cs
  76. +3 −3 XMPP_API/Classes/DateTimeParserHelper.cs
  77. +1 −1 XMPP_API/Classes/Events/NewPresenceMessageEventArgs.cs
  78. +3 −3 XMPP_API/Classes/Events/OmemoSessionBuildErrorEventArgs.cs
  79. +1 −1 XMPP_API/Classes/GeneralCommandHelper.cs
  80. +1 −1 XMPP_API/Classes/MUCCommandHelper.cs
  81. +2 −2 XMPP_API/Classes/Network/AbstractConnection2.cs
  82. +2 −2 XMPP_API/Classes/Network/AbstractConnectionHandler.cs
  83. +6 −6 XMPP_API/Classes/Network/ConnectionConfiguration.cs
  84. +8 −8 XMPP_API/Classes/Network/ConnectionError.cs
  85. +4 −4 XMPP_API/Classes/Network/ConnectionInformation.cs
  86. +3 −3 XMPP_API/Classes/Network/DiscoFeatureHelper.cs
  87. +3 −3 XMPP_API/Classes/Network/Events/MessageSendEventArgs.cs
  88. +1 −1 XMPP_API/Classes/Network/Events/NewBookmarksResultMessageEventArgs.cs
  89. +1 −1 XMPP_API/Classes/Network/Events/NewChatMessageEventArgs.cs
  90. +3 −3 XMPP_API/Classes/Network/Events/NewChatStateEventArgs.cs
  91. +1 −1 XMPP_API/Classes/Network/Events/NewDeliveryReceiptEventArgs.cs
  92. +1 −1 XMPP_API/Classes/Network/Events/NewDiscoResponseMessageEventArgs.cs
  93. +1 −1 XMPP_API/Classes/Network/Events/NewValidMessageEventArgs.cs
  94. +4 −4 XMPP_API/Classes/Network/OmemoHelper.cs
  95. +8 −8 XMPP_API/Classes/Network/TCP/TCPConnection2.cs
  96. +2 −2 XMPP_API/Classes/Network/TCP/TCPReadResult.cs
  97. +2 −2 XMPP_API/Classes/Network/XML/MessageParser2.cs
  98. +3 −3 XMPP_API/Classes/Network/XML/Messages/AbstractMessage.cs
  99. +2 −2 XMPP_API/Classes/Network/XML/Messages/AddToRosterMessage.cs
  100. +1 −1 XMPP_API/Classes/Network/XML/Messages/BindResourceMessage.cs
  101. +3 −3 XMPP_API/Classes/Network/XML/Messages/CloseStreamMessage.cs
  102. +6 −6 XMPP_API/Classes/Network/XML/Messages/Error.cs
  103. +1 −1 XMPP_API/Classes/Network/XML/Messages/ErrorMessage.cs
  104. +3 −3 XMPP_API/Classes/Network/XML/Messages/Features/SASL/AbstractSASLMechanism.cs
  105. +14 −14 XMPP_API/Classes/Network/XML/Messages/Features/SASL/SASLFailureMessage.cs
  106. +1 −1 XMPP_API/Classes/Network/XML/Messages/Features/SASL/SASLStreamFeature.cs
  107. +6 −6 XMPP_API/Classes/Network/XML/Messages/Features/SASL/SHA1/ScramSHA1SASLMechanism.cs
  108. +1 −1 XMPP_API/Classes/Network/XML/Messages/Features/SASL/SHA1/ScramSha1ChallengeSolutionMessage.cs
  109. +3 −3 XMPP_API/Classes/Network/XML/Messages/Features/StreamFeature.cs
  110. +2 −2 XMPP_API/Classes/Network/XML/Messages/Features/StreamFeaturesAnswerMessage.cs
  111. +2 −2 XMPP_API/Classes/Network/XML/Messages/Helper/AsyncMessageResponseHelper.cs
  112. +2 −2 XMPP_API/Classes/Network/XML/Messages/Helper/MessageResponseHelperResult.cs
  113. +2 −2 XMPP_API/Classes/Network/XML/Messages/IQErrorMessage.cs
  114. +3 −3 XMPP_API/Classes/Network/XML/Messages/IQMessage.cs
  115. +11 −11 XMPP_API/Classes/Network/XML/Messages/MessageMessage.cs
  116. +9 −9 XMPP_API/Classes/Network/XML/Messages/MessageResponseHelper.cs
  117. +4 −4 XMPP_API/Classes/Network/XML/Messages/OpenStreamAnswerMessage.cs
  118. +1 −1 XMPP_API/Classes/Network/XML/Messages/PresenceErrorMessage.cs
  119. +9 −9 XMPP_API/Classes/Network/XML/Messages/PresenceMessage.cs
  120. +2 −2 XMPP_API/Classes/Network/XML/Messages/Processor/AbstractMessageProcessor.cs
  121. +3 −3 XMPP_API/Classes/Network/XML/Messages/RemoveFromRosterMessage.cs
  122. +3 −3 XMPP_API/Classes/Network/XML/Messages/RosterResultMessage.cs
  123. +2 −2 XMPP_API/Classes/Network/XML/Messages/SelectSASLMechanismMessage.cs
  124. +4 −4 XMPP_API/Classes/Network/XML/Messages/StreamErrorMessage.cs
  125. +3 −3 XMPP_API/Classes/Network/XML/Messages/XEP-0004/DataForm.cs
  126. +26 −26 XMPP_API/Classes/Network/XML/Messages/XEP-0004/Field.cs
  127. +4 −4 XMPP_API/Classes/Network/XML/Messages/XEP-0004/FieldOption.cs
  128. +1 −1 XMPP_API/Classes/Network/XML/Messages/XEP-0030/DiscoRequestMessage.cs
  129. +2 −2 XMPP_API/Classes/Network/XML/Messages/XEP-0045/BanListMessage.cs
  130. +2 −2 XMPP_API/Classes/Network/XML/Messages/XEP-0045/BanOccupantMessage.cs
  131. +1 −1 XMPP_API/Classes/Network/XML/Messages/XEP-0045/Configuration/RequestRoomConfigurationMessage.cs
  132. +6 −6 XMPP_API/Classes/Network/XML/Messages/XEP-0045/Configuration/RoomInfoMessage.cs
  133. +3 −3 XMPP_API/Classes/Network/XML/Messages/XEP-0045/ExtendedDiscoResponseMessage.cs
  134. +1 −1 XMPP_API/Classes/Network/XML/Messages/XEP-0045/JoinRoomRequestMessage.cs
  135. +2 −2 XMPP_API/Classes/Network/XML/Messages/XEP-0045/KickOccupantMessage.cs
  136. +9 −9 XMPP_API/Classes/Network/XML/Messages/XEP-0045/MUCMemberPresenceMessage.cs
  137. +2 −2 XMPP_API/Classes/Network/XML/Messages/XEP-0045/MUCRoomSubjectMessage.cs
  138. +1 −1 XMPP_API/Classes/Network/XML/Messages/XEP-0045/UpdateBanListMessage.cs
  139. +2 −2 XMPP_API/Classes/Network/XML/Messages/XEP-0048/StorageItem.cs
  140. +1 −1 XMPP_API/Classes/Network/XML/Messages/XEP-0060/AbstractPubSubPublishMessage.cs
  141. +1 −1 XMPP_API/Classes/Network/XML/Messages/XEP-0060/AbstractPubSubRetractMessage.cs
  142. +2 −2 XMPP_API/Classes/Network/XML/Messages/XEP-0060/PubSubCreateNodeMessage.cs
  143. +1 −1 XMPP_API/Classes/Network/XML/Messages/XEP-0060/PubSubDeleteNodeMessage.cs
  144. +1 −1 XMPP_API/Classes/Network/XML/Messages/XEP-0060/PubSubDiscoverNodeItemsMessage.cs
  145. +1 −1 XMPP_API/Classes/Network/XML/Messages/XEP-0060/PubSubDiscoverNodeMetadataMessage.cs
  146. +1 −1 XMPP_API/Classes/Network/XML/Messages/XEP-0060/PubSubItem.cs
  147. +1 −1 XMPP_API/Classes/Network/XML/Messages/XEP-0060/PubSubPublishOptions.cs
  148. +2 −2 XMPP_API/Classes/Network/XML/Messages/XEP-0060/PubSubRequestNodeMessage.cs
  149. +2 −2 XMPP_API/Classes/Network/XML/Messages/XEP-0060/PubSubSubscribeMessage.cs
  150. +5 −5 XMPP_API/Classes/Network/XML/Messages/XEP-0060/PubSubSubscriptionMessage.cs
  151. +1 −1 XMPP_API/Classes/Network/XML/Messages/XEP-0085/ChatStateMessage.cs
  152. +1 −1 XMPP_API/Classes/Network/XML/Messages/XEP-0184/DeliveryReceiptMessage.cs
  153. +3 −3 XMPP_API/Classes/Network/XML/Messages/XEP-0198/SMAnswerMessage.cs
  154. +9 −9 XMPP_API/Classes/Network/XML/Messages/XEP-0198/SMEnableMessage.cs
  155. +1 −1 XMPP_API/Classes/Network/XML/Messages/XEP-0198/SMFailedMessage.cs
  156. +3 −3 XMPP_API/Classes/Network/XML/Messages/XEP-0249/DirectMUCInvitationMessage.cs
  157. +1 −1 XMPP_API/Classes/Network/XML/Messages/XEP-0357/RequestEnableNotificationsMessage.cs
  158. +9 −9 XMPP_API/Classes/Network/XML/Messages/XEP-0363/HTTPUploadErrorMessage.cs
  159. +6 −6 XMPP_API/Classes/Network/XML/Messages/XEP-0363/HTTPUploadRequestSlotMessage.cs
  160. +2 −2 XMPP_API/Classes/Network/XML/Messages/XEP-0363/HTTPUploadResponseSlotMessage.cs
  161. +6 −6 XMPP_API/Classes/Network/XML/Messages/XEP-0384/OmemoBundleInformation.cs
  162. +1 −1 XMPP_API/Classes/Network/XML/Messages/XEP-0384/OmemoDeviceListEventMessage.cs
  163. +4 −4 XMPP_API/Classes/Network/XML/Messages/XEP-0384/OmemoDevices.cs
  164. +3 −3 XMPP_API/Classes/Network/XML/Messages/XEP-0384/OmemoKey.cs
  165. +9 −9 XMPP_API/Classes/Network/XML/Messages/XEP-0384/OmemoMessageMessage.cs
  166. +1 −1 XMPP_API/Classes/Network/XML/Messages/XEP-0384/OmemoRequestBundleInformationMessage.cs
  167. +2 −2 XMPP_API/Classes/Network/XML/Messages/XEP-0384/OmemoSetBundleInformationMessage.cs
  168. +1 −1 XMPP_API/Classes/Network/XML/Messages/XEP-0384/OmemoSetDeviceListMessage.cs
  169. +3 −3 XMPP_API/Classes/Network/XML/Messages/XEP-0384/Signal/Session/OmemoSession.cs
  170. +6 −6 XMPP_API/Classes/Network/XML/Messages/XEP-0384/Signal/Session/OmemoSessionBuildHelper.cs
  171. +4 −4 XMPP_API/Classes/Network/XML/Messages/XEP-0384/Signal/Session/OmemoSessionBuildResult.cs
  172. +1 −1 XMPP_API/Classes/Network/XML/Messages/XEP-0402/AddBookmarkMessage.cs
  173. +2 −2 XMPP_API/Classes/Network/XML/Messages/XEP-0402/ConferenceItem.cs
  174. +1 −1 XMPP_API/Classes/Network/XML/Messages/XEP-0402/RemoveBookmarkMessage.cs
  175. +4 −4 XMPP_API/Classes/Network/XML/RosterItem.cs
  176. +14 −14 XMPP_API/Classes/Network/XMPPAccount.cs
  177. +26 −26 XMPP_API/Classes/Network/XMPPConnection2.cs
  178. +1 −1 XMPP_API/Classes/OmemoCommandHelper.cs
  179. +1 −1 XMPP_API/Classes/PubSubCommandHelper.cs
  180. +5 −5 XMPP_API/Classes/XMPPUser.cs
@@ -28,8 +28,8 @@ public sealed class BackgroundSocketHandler : IBackgroundTask
/// </history>
public BackgroundSocketHandler()
{
this.count = 0;
this.deferral = null;
count = 0;
deferral = null;
}

#endregion
@@ -28,8 +28,8 @@ sealed partial class App : Application
/// </summary>
public App()
{
this.InitializeComponent();
this.Suspending += OnSuspending;
InitializeComponent();
Suspending += OnSuspending;
}

/// <summary>
@@ -43,7 +43,7 @@ protected override void OnLaunched(LaunchActivatedEventArgs e)
#if DEBUG
if (System.Diagnostics.Debugger.IsAttached)
{
this.DebugSettings.EnableFrameRateCounter = true;
DebugSettings.EnableFrameRateCounter = true;
}
#endif

@@ -53,10 +53,10 @@ public class ConnectionHandler
/// </history>
public ConnectionHandler()
{
this.IMAGE_DOWNLOAD_HANDLER = new ImageDownloadHandler(DOWNLOAD_HANDLER);
Task.Run(async () => await this.IMAGE_DOWNLOAD_HANDLER.ContinueDownloadsAsync());
this.CLIENTS = new CustomObservableCollection<XMPPClient>(false);
this.CLIENTS.CollectionChanged += CLIENTS_CollectionChanged;
IMAGE_DOWNLOAD_HANDLER = new ImageDownloadHandler(DOWNLOAD_HANDLER);
Task.Run(async () => await IMAGE_DOWNLOAD_HANDLER.ContinueDownloadsAsync());
CLIENTS = new CustomObservableCollection<XMPPClient>(false);
CLIENTS.CollectionChanged += CLIENTS_CollectionChanged;
loadClients();
AccountDBManager.INSTANCE.AccountChanged += INSTANCE_AccountChanged;
}
@@ -26,7 +26,7 @@ public class DiscoDBManager : AbstractDBManager
/// </history>
public DiscoDBManager()
{
this.RESPONSE_HELPERS = new List<MessageResponseHelper<IQMessage>>();
RESPONSE_HELPERS = new List<MessageResponseHelper<IQMessage>>();
ConnectionHandler.INSTANCE.ClientConnected += INSTANCE_ClientConnected;
}

@@ -62,21 +62,21 @@ public AccountTable()

public AccountTable(XMPPAccount account)
{
this.id = account.getBareJid();
this.userId = account.user.localPart;
this.domain = account.user.domainPart;
this.resource = account.user.resourcePart;
this.serverAddress = account.serverAddress;
this.port = account.port;
this.disabled = account.disabled;
this.color = account.color;
this.presence = account.presence;
this.status = account.status;
this.omemoKeysGenerated = account.omemoKeysGenerated;
this.omemoDeviceId = account.omemoDeviceId;
this.omemoIdentityKeyPair = account.omemoIdentityKeyPair?.serialize();
this.omemoBundleInfoAnnounced = account.omemoBundleInfoAnnounced;
this.omemoSignedPreKeyId = account.omemoSignedPreKeyId;
id = account.getBareJid();
userId = account.user.localPart;
domain = account.user.domainPart;
resource = account.user.resourcePart;
serverAddress = account.serverAddress;
port = account.port;
disabled = account.disabled;
color = account.color;
presence = account.presence;
status = account.status;
omemoKeysGenerated = account.omemoKeysGenerated;
omemoDeviceId = account.omemoDeviceId;
omemoIdentityKeyPair = account.omemoIdentityKeyPair?.serialize();
omemoBundleInfoAnnounced = account.omemoBundleInfoAnnounced;
omemoSignedPreKeyId = account.omemoSignedPreKeyId;
}

internal XMPPAccount toXMPPAccount()
@@ -62,41 +62,41 @@ public ChatMessageTable(MessageMessage msg, ChatTable chat)
switch (msg.TYPE)
{
case MessageMessage.TYPE_ERROR:
this.id = generateErrorMessageId(msg.ID, chat.id);
this.fromUser = msg.getFrom();
id = generateErrorMessageId(msg.ID, chat.id);
fromUser = msg.getFrom();
break;

case MessageMessage.TYPE_GROUPCHAT:
this.id = generateId(msg.ID, chat.id);
this.fromUser = msg.FROM_NICK;
id = generateId(msg.ID, chat.id);
fromUser = msg.FROM_NICK;
break;

default:
this.id = generateId(msg.ID, chat.id);
this.fromUser = Utils.getBareJidFromFullJid(msg.getFrom());
id = generateId(msg.ID, chat.id);
fromUser = Utils.getBareJidFromFullJid(msg.getFrom());
break;
}
this.chatId = chat.id;
this.type = msg.TYPE;
this.message = msg.MESSAGE;
this.date = msg.getDelay();
this.isDummyMessage = false;
if (this.date.Equals(DateTime.MinValue))
chatId = chat.id;
type = msg.TYPE;
message = msg.MESSAGE;
date = msg.getDelay();
isDummyMessage = false;
if (date.Equals(DateTime.MinValue))
{
this.date = DateTime.Now;
date = DateTime.Now;
}
if (msg.CC_TYPE == XMPP_API.Classes.Network.XML.CarbonCopyType.SENT)
{
this.state = MessageState.SEND;
state = MessageState.SEND;
}
else
{
this.state = MessageState.UNREAD;
state = MessageState.UNREAD;
}
this.isImage = isMessageAnImageUrl(msg.MESSAGE);
this.isCC = msg.CC_TYPE != XMPP_API.Classes.Network.XML.CarbonCopyType.NONE;
this.isEncrypted = msg is OmemoMessageMessage;
this.isFavorite = false;
isImage = isMessageAnImageUrl(msg.MESSAGE);
isCC = msg.CC_TYPE != XMPP_API.Classes.Network.XML.CarbonCopyType.NONE;
isEncrypted = msg is OmemoMessageMessage;
isFavorite = false;
}

#endregion
@@ -58,20 +58,20 @@ public ChatTable()

public ChatTable(string chatJabberId, string userAccountId)
{
this.id = generateId(chatJabberId, userAccountId);
id = generateId(chatJabberId, userAccountId);
this.chatJabberId = chatJabberId;
this.userAccountId = userAccountId;
this.chatState = null;
this.chatType = ChatType.CHAT;
this.inRoster = false;
this.muted = false;
this.omemoEnabled = Settings.getSettingBoolean(SettingsConsts.ENABLE_OMEMO_BY_DEFAULT_FOR_NEW_CHATS);
this.presence = Presence.Unavailable;
this.status = null;
this.subscription = null;
this.subscriptionRequested = false;
this.lastActive = DateTime.Now;
this.isChatActive = false;
chatState = null;
chatType = ChatType.CHAT;
inRoster = false;
muted = false;
omemoEnabled = Settings.getSettingBoolean(SettingsConsts.ENABLE_OMEMO_BY_DEFAULT_FOR_NEW_CHATS);
presence = Presence.Unavailable;
status = null;
subscription = null;
subscriptionRequested = false;
lastActive = DateTime.Now;
isChatActive = false;
}

#endregion
@@ -30,9 +30,9 @@ public ConnectionOptionsTable()

public ConnectionOptionsTable(ConnectionConfiguration configuration)
{
this.tlsMode = configuration.tlsMode;
this.disableStreamManagement = configuration.disableStreamManagement;
this.disableMessageCarbons = configuration.disableMessageCarbons;
tlsMode = configuration.tlsMode;
disableStreamManagement = configuration.disableStreamManagement;
disableMessageCarbons = configuration.disableMessageCarbons;
}

#endregion
@@ -38,10 +38,10 @@ public MUCDirectInvitationTable()
public MUCDirectInvitationTable(DirectMUCInvitationMessage invitationMessage, string chatMessageId)
{
this.chatMessageId = chatMessageId;
this.reason = invitationMessage.REASON;
this.roomJid = invitationMessage.ROOM_JID;
this.roomPassword = invitationMessage.ROOM_PASSWORD;
this.state = MUCDirectInvitationState.REQUESTED;
reason = invitationMessage.REASON;
roomJid = invitationMessage.ROOM_JID;
roomPassword = invitationMessage.ROOM_PASSWORD;
state = MUCDirectInvitationState.REQUESTED;
}

#endregion
@@ -33,7 +33,7 @@ public OmemoDeviceListSubscriptionTable()

public OmemoDeviceListSubscriptionTable(string accountId, string name, OmemoDeviceListSubscriptionState state, DateTime lastUpdateReceived)
{
this.id = generateId(accountId, name);
id = generateId(accountId, name);
this.accountId = accountId;
this.name = name;
this.state = state;
@@ -31,10 +31,10 @@ public OmemoDeviceTable()

public OmemoDeviceTable(SignalProtocolAddress device, string accountId)
{
this.id = generateId(accountId, device.getName(), device.getDeviceId());
id = generateId(accountId, device.getName(), device.getDeviceId());
this.accountId = accountId;
this.name = device.getName();
this.deviceId = device.getDeviceId();
name = device.getName();
deviceId = device.getDeviceId();
}

#endregion
@@ -21,8 +21,8 @@ public class AccountChangedEventArgs : CancelEventArgs
/// </history>
public AccountChangedEventArgs(XMPPAccount account, bool removed)
{
this.ACCOUNT = account;
this.REMOVED = removed;
ACCOUNT = account;
REMOVED = removed;
}

#endregion
@@ -21,8 +21,8 @@ public class ChatChangedEventArgs : CancelEventArgs
/// </history>
public ChatChangedEventArgs(ChatTable chat, bool removed)
{
this.CHAT = chat;
this.REMOVED = removed;
CHAT = chat;
REMOVED = removed;
}

#endregion
@@ -21,8 +21,8 @@ public class ChatMessageChangedEventArgs : EventArgs
/// </history>
public ChatMessageChangedEventArgs(ChatMessageTable message, bool removed)
{
this.MESSAGE = message;
this.REMOVED = removed;
MESSAGE = message;
REMOVED = removed;
}

#endregion
@@ -20,7 +20,7 @@ public class ClientConnectedEventArgs : EventArgs
/// </history>
public ClientConnectedEventArgs(XMPPClient client)
{
this.CLIENT = client;
CLIENT = client;
}

#endregion
@@ -21,8 +21,8 @@ public class MUCInfoChangedEventArgs : CancelEventArgs
/// </history>
public MUCInfoChangedEventArgs(MUCChatInfoTable muc, bool removed)
{
this.MUC_INFO = muc;
this.REMOVED = removed;
MUC_INFO = muc;
REMOVED = removed;
}

#endregion
@@ -21,8 +21,8 @@ public class MUCOccupantChangedEventArgs : EventArgs
/// </history>
public MUCOccupantChangedEventArgs(MUCOccupantTable member, bool removed)
{
this.MUC_OCCUPANT = member;
this.REMOVED = removed;
MUC_OCCUPANT = member;
REMOVED = removed;
}

#endregion
@@ -20,7 +20,7 @@ public class NewChatMessageEventArgs : EventArgs
/// </history>
public NewChatMessageEventArgs(ChatMessageTable message)
{
this.MESSAGE = message;
MESSAGE = message;
}

#endregion
@@ -20,8 +20,8 @@ public class ImageDownloadHandler
#region --Constructors--
public ImageDownloadHandler(DownloadHandler downloadHandler)
{
this.DOWNLOAD_HANDLER = downloadHandler;
this.DOWNLOAD_HANDLER.DownloadStateChanged += DOWNLOAD_HANDLER_DownloadStateChanged;
DOWNLOAD_HANDLER = downloadHandler;
DOWNLOAD_HANDLER.DownloadStateChanged += DOWNLOAD_HANDLER_DownloadStateChanged;
}

#endregion
@@ -1,16 +1,16 @@
using Data_Manager2.Classes.DBManager;
using System;
using System.Threading.Tasks;
using Data_Manager2.Classes.DBManager;
using Data_Manager2.Classes.DBTables;
using Logging;
using Shared.Classes.Collections;
using System;
using System.Threading.Tasks;
using XMPP_API.Classes;
using XMPP_API.Classes.Network.XML.Messages.XEP_0045;

// https://xmpp.org/extensions/xep-0045.html
namespace Data_Manager2.Classes
{
public class MUCJoinHelper : ITimedEntry, IDisposable
public class MUCJoinHelper: ITimedEntry, IDisposable
{
//--------------------------------------------------------Attributes:-----------------------------------------------------------------\\
#region --Attributes--
@@ -32,9 +32,9 @@ public class MUCJoinHelper : ITimedEntry, IDisposable
/// </history>
public MUCJoinHelper(XMPPClient client, ChatTable muc, MUCChatInfoTable info)
{
this.CLIENT = client;
this.MUC = muc;
this.INFO = info;
CLIENT = client;
MUC = muc;
INFO = info;
}

#endregion
@@ -27,7 +27,7 @@ public class OmemoStore : IOmemoStore
/// </history>
public OmemoStore(XMPPAccount account)
{
this.ACCOUNT = account;
ACCOUNT = account;
}

#endregion
@@ -21,18 +21,18 @@ public class ChatToastActivation : AbstractToastActivation
#region --Constructors--
public ChatToastActivation(string chatId, string msgId)
{
this.CHAT_ID = chatId;
this.CHAT_MESSAGE_ID = msgId;
this.IS_VALID = !string.IsNullOrEmpty(this.CHAT_ID) && !string.IsNullOrEmpty(this.CHAT_MESSAGE_ID);
CHAT_ID = chatId;
CHAT_MESSAGE_ID = msgId;
IS_VALID = !string.IsNullOrEmpty(CHAT_ID) && !string.IsNullOrEmpty(CHAT_MESSAGE_ID);
}

public ChatToastActivation(Uri uri)
{
WwwFormUrlDecoder query = UriUtils.parseUriQuery(uri);

this.CHAT_ID = query.Where(x => string.Equals(x.Name, CHAT_QUERY)).Select(x => x.Value).FirstOrDefault();
this.CHAT_MESSAGE_ID = query.Where(x => string.Equals(x.Name, CHAT_MESSAGE_QUERY)).Select(x => x.Value).FirstOrDefault();
this.IS_VALID = !string.IsNullOrEmpty(this.CHAT_ID) && !string.IsNullOrEmpty(this.CHAT_MESSAGE_ID);
CHAT_ID = query.Where(x => string.Equals(x.Name, CHAT_QUERY)).Select(x => x.Value).FirstOrDefault();
CHAT_MESSAGE_ID = query.Where(x => string.Equals(x.Name, CHAT_MESSAGE_QUERY)).Select(x => x.Value).FirstOrDefault();
IS_VALID = !string.IsNullOrEmpty(CHAT_ID) && !string.IsNullOrEmpty(CHAT_MESSAGE_ID);
}

#endregion

0 comments on commit b779efc

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