mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
allows players to send gems to each other; other minor related changes - fixes https://github.com/HabitRPG/habitrpg/issues/7227
This commit is contained in:
@@ -39,7 +39,7 @@ habitrpg
|
||||
};
|
||||
|
||||
$scope.sendGift = function (uuid, gift) {
|
||||
Members.transferGems(message, uuid, $scope.gift.gems.amount)
|
||||
Members.transferGems($scope.gift.message, uuid, $scope.gift.gems.amount)
|
||||
.then(function (response) {
|
||||
Notification.text('Gift sent!')
|
||||
$rootScope.User.sync();
|
||||
|
||||
@@ -63,7 +63,7 @@ angular.module('habitrpg')
|
||||
function transferGems (message, toUserId, gemAmount) {
|
||||
return $http({
|
||||
method: 'POST',
|
||||
url: apiV3Prefix + '/members/send-private-message',
|
||||
url: apiV3Prefix + '/members/transfer-gems',
|
||||
data: {
|
||||
message: message,
|
||||
toUserId: toUserId,
|
||||
|
||||
Reference in New Issue
Block a user