Skip to content

Commit

Permalink
2020-01-26
Browse files Browse the repository at this point in the history
  • Loading branch information
Hermand PESSEK committed Jan 26, 2020
1 parent 26c5c87 commit e3a9964
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion classes/Pessek/PessekChat/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function init() {
//Menus
$hooks = $this->elgg()->hooks;
$this->elgg()->events->registerHandler('login:after', 'user', '\Pessek\PessekChat\PessekChatConfig::handle_after_login');
$this->elgg()->events->registerHandler('login:before', 'user', '\Pessek\PessekChat\PessekChatConfig::handle_before_login');
//$this->elgg()->events->registerHandler('login:before', 'user', '\Pessek\PessekChat\PessekChatConfig::handle_before_login');
$this->elgg()->events->registerHandler('create', 'user', '\Pessek\PessekChat\PessekChatConfig::xmpp_user_when_elgg_user_create_by_admin');
$this->elgg()->events->registerHandler('delete', 'user', '\Pessek\PessekChat\PessekChatConfig::xmpp_user_delete_by_admin');

Expand Down
2 changes: 1 addition & 1 deletion classes/Pessek/PessekChat/PessekPrcXmlrpcElgg.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function send_accept_invitation(PessekPrcConnector $User1, PessekPrcConne

}

$this->invitation($User1, $User2, $NickName, $subs); //$this->invitation($User2, $User1, $NickName);
$this->invitation($User1, $User2, "", $subs); //$this->invitation($User2, $User1, $NickName);
$this->chat_user_vcard($User1, $User2, "FN", $fullname);
$this->chat_user_vcard($User1, $User2, "NICKNAME", $NickName);

Expand Down
4 changes: 2 additions & 2 deletions views/default/resources/pessek_chat/migrate.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
$pessekRPC = new \Pessek\PessekChat\PessekPrcXmlrpcElgg();
$UserSender = new \Pessek\PessekChat\PessekPrcConnector($elggUsername, $userGroup, $password);
$UserReceiver = new \Pessek\PessekChat\PessekPrcConnector($userFriend->username, $userGroup, $password);
$pessekRPC->migrateInvitation($UserSender, $UserReceiver, $NickName, "both");
$pessekRPC->migrateInvitation($UserReceiver, $UserSender, $NickName, "both");
$pessekRPC->migrateInvitation($UserSender, $UserReceiver, "", "both");
$pessekRPC->migrateInvitation($UserReceiver, $UserSender, "", "both");
}

// --- send notification to user
Expand Down

0 comments on commit e3a9964

Please sign in to comment.