{"action":"created","issue":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/3940","repository_url":"https://api.github.com/repos/RocketChat/Rocket.Chat","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/3940/labels{/name}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/3940/comments","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/3940/events","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/3940","id":169850269,"node_id":"MDU6SXNzdWUxNjk4NTAyNjk=","number":3940,"title":"Issue while changing profile username","user":{"login":"royalaid","id":2439803,"node_id":"MDQ6VXNlcjI0Mzk4MDM=","avatar_url":"https://avatars1.githubusercontent.com/u/2439803?v=4","gravatar_id":"","url":"https://api.github.com/users/royalaid","html_url":"https://github.com/royalaid","followers_url":"https://api.github.com/users/royalaid/followers","following_url":"https://api.github.com/users/royalaid/following{/other_user}","gists_url":"https://api.github.com/users/royalaid/gists{/gist_id}","starred_url":"https://api.github.com/users/royalaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/royalaid/subscriptions","organizations_url":"https://api.github.com/users/royalaid/orgs","repos_url":"https://api.github.com/users/royalaid/repos","events_url":"https://api.github.com/users/royalaid/events{/privacy}","received_events_url":"https://api.github.com/users/royalaid/received_events","type":"User","site_admin":false},"labels":[{"id":261705954,"node_id":"MDU6TGFiZWwyNjE3MDU5NTQ=","url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels/feat:%20user%20settings","name":"feat: user settings","color":"1d76db","default":false},{"id":213300653,"node_id":"MDU6TGFiZWwyMTMzMDA2NTM=","url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels/type:%20bug","name":"type: bug","color":"d93f0b","default":false}],"state":"closed","locked":false,"assignee":{"login":"rodrigok","id":234261,"node_id":"MDQ6VXNlcjIzNDI2MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/234261?v=4","gravatar_id":"","url":"https://api.github.com/users/rodrigok","html_url":"https://github.com/rodrigok","followers_url":"https://api.github.com/users/rodrigok/followers","following_url":"https://api.github.com/users/rodrigok/following{/other_user}","gists_url":"https://api.github.com/users/rodrigok/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigok/subscriptions","organizations_url":"https://api.github.com/users/rodrigok/orgs","repos_url":"https://api.github.com/users/rodrigok/repos","events_url":"https://api.github.com/users/rodrigok/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigok/received_events","type":"User","site_admin":false},"assignees":[{"login":"rodrigok","id":234261,"node_id":"MDQ6VXNlcjIzNDI2MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/234261?v=4","gravatar_id":"","url":"https://api.github.com/users/rodrigok","html_url":"https://github.com/rodrigok","followers_url":"https://api.github.com/users/rodrigok/followers","following_url":"https://api.github.com/users/rodrigok/following{/other_user}","gists_url":"https://api.github.com/users/rodrigok/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigok/subscriptions","organizations_url":"https://api.github.com/users/rodrigok/orgs","repos_url":"https://api.github.com/users/rodrigok/repos","events_url":"https://api.github.com/users/rodrigok/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigok/received_events","type":"User","site_admin":false},{"login":"marceloschmidt","id":1986378,"node_id":"MDQ6VXNlcjE5ODYzNzg=","avatar_url":"https://avatars2.githubusercontent.com/u/1986378?v=4","gravatar_id":"","url":"https://api.github.com/users/marceloschmidt","html_url":"https://github.com/marceloschmidt","followers_url":"https://api.github.com/users/marceloschmidt/followers","following_url":"https://api.github.com/users/marceloschmidt/following{/other_user}","gists_url":"https://api.github.com/users/marceloschmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/marceloschmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marceloschmidt/subscriptions","organizations_url":"https://api.github.com/users/marceloschmidt/orgs","repos_url":"https://api.github.com/users/marceloschmidt/repos","events_url":"https://api.github.com/users/marceloschmidt/events{/privacy}","received_events_url":"https://api.github.com/users/marceloschmidt/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/milestones/40","html_url":"https://github.com/RocketChat/Rocket.Chat/milestone/40","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/milestones/40/labels","id":1980715,"node_id":"MDk6TWlsZXN0b25lMTk4MDcxNQ==","number":40,"title":"0.39.0","description":"","creator":{"login":"engelgabriel","id":1000217,"node_id":"MDQ6VXNlcjEwMDAyMTc=","avatar_url":"https://avatars3.githubusercontent.com/u/1000217?v=4","gravatar_id":"","url":"https://api.github.com/users/engelgabriel","html_url":"https://github.com/engelgabriel","followers_url":"https://api.github.com/users/engelgabriel/followers","following_url":"https://api.github.com/users/engelgabriel/following{/other_user}","gists_url":"https://api.github.com/users/engelgabriel/gists{/gist_id}","starred_url":"https://api.github.com/users/engelgabriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/engelgabriel/subscriptions","organizations_url":"https://api.github.com/users/engelgabriel/orgs","repos_url":"https://api.github.com/users/engelgabriel/repos","events_url":"https://api.github.com/users/engelgabriel/events{/privacy}","received_events_url":"https://api.github.com/users/engelgabriel/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":8,"state":"closed","created_at":"2016-09-02T18:18:01Z","updated_at":"2016-09-06T22:34:49Z","due_on":"2016-09-05T07:00:00Z","closed_at":"2016-09-06T22:34:49Z"},"comments":11,"created_at":"2016-08-08T06:13:24Z","updated_at":"2018-07-01T09:36:20Z","closed_at":"2016-09-03T19:09:39Z","author_association":"NONE","body":"Your Rocket.Chat version: (make sure you are running the latest)\n0.36\nWhenever I got to change my username in RC I get the following error but the old messages change names.\n\n```\nException while invoking method 'saveUserProfile' MongoError: The positional operator did not find the match needed from the query. Unexpanded update: mentions.$.username     at Object.Future.wait (/app/bundle/programs/server/node_modules/fibers/future.js:398:15)     at [object Object].<anonymous> (packages/meteor/helpers.js:119:1)     at [object Object].MongoConnection.(anonymous function) [as update] (packages/mongo/mongo_driver.js:736:1)     at Object.CollectionHooks.defineAdvice.self (packages/matb33_collection-hooks/update.js:80:1)     at Object.collection.(anonymous function) [as update] (packages/matb33_collection-hooks/collection-hooks.js:117:1)     at [object Object].Mongo.Collection.(anonymous function) (packages/mongo/collection.js:590:1)     at [object Object].Mongo.Collection.(anonymous function) [as update] (packages/dispatch_run-as-user/packages/dispatch_run-as-user.js:300:1)     at _Class.update (server/models/_Base.js:78:29)     at _Class.RocketChat.models.Messages._Class.updateUsernameAndMessageOfMentionByIdAndOldUsername (packages/rocketchat_lib/server/models/Messages.coffee:231:11)     at packages/rocketchat_lib/server/functions/setUsername.coffee:40:31     - - - - -     at Object.toError (/app/bundle/programs/server/npm/npm-mongo/node_modules/mongodb/lib/mongodb/utils.js:114:11)     at /app/bundle/programs/server/npm/npm-mongo/node_modules/mongodb/lib/mongodb/collection/core.js:577:27     at /app/bundle/programs/server/npm/npm-mongo/node_modules/mongodb/lib/mongodb/db.js:1197:7     at /app/bundle/programs/server/npm/npm-mongo/node_modules/mongodb/lib/mongodb/db.js:1905:9     at Server.Base._callHandler (/app/bundle/programs/server/npm/npm-mongo/node_modules/mongodb/lib/mongodb/connection/base.js:453:41)     at /app/bundle/programs/server/npm/npm-mongo/node_modules/mongodb/lib/mongodb/connection/server.js:488:18     at [object Object].MongoReply.parseBody (/app/bundle/programs/server/npm/npm-mongo/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:68:5)     at [object Object].<anonymous> (/app/bundle/programs/server/npm/npm-mongo/node_modules/mongodb/lib/mongodb/connection/server.js:446:20)     at [object Object].emit (events.js:95:17)     at [object Object].<anonymous> (/app/bundle/programs/server/npm/npm-mongo/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:207:13) \n```\n"},"comment":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/comments/401595519","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/3940#issuecomment-401595519","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/3940","id":401595519,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTU5NTUxOQ==","user":{"login":"indikatordesign","id":6696178,"node_id":"MDQ6VXNlcjY2OTYxNzg=","avatar_url":"https://avatars2.githubusercontent.com/u/6696178?v=4","gravatar_id":"","url":"https://api.github.com/users/indikatordesign","html_url":"https://github.com/indikatordesign","followers_url":"https://api.github.com/users/indikatordesign/followers","following_url":"https://api.github.com/users/indikatordesign/following{/other_user}","gists_url":"https://api.github.com/users/indikatordesign/gists{/gist_id}","starred_url":"https://api.github.com/users/indikatordesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indikatordesign/subscriptions","organizations_url":"https://api.github.com/users/indikatordesign/orgs","repos_url":"https://api.github.com/users/indikatordesign/repos","events_url":"https://api.github.com/users/indikatordesign/events{/privacy}","received_events_url":"https://api.github.com/users/indikatordesign/received_events","type":"User","site_admin":false},"created_at":"2018-07-01T09:36:20Z","updated_at":"2018-07-01T09:36:20Z","author_association":"NONE","body":"Here too. Latest version."}}
{"actor":{"display_login":"indikatordesign"}}