Rename to use source (and fix typo)
This commit is contained in:
parent
93ebbc65e1
commit
e0c8583b2d
@ -99,8 +99,8 @@ accepts a `message` argument.
|
||||
Attributes:
|
||||
|
||||
- **body**: the body of the message
|
||||
- **sender**: the sender of the message
|
||||
- **receive**: the receive of the message
|
||||
- **source**: where the message came from (can be a user or a room)
|
||||
- **receiver**: the receiver of the message
|
||||
- **nickname**: the nickname of the sender
|
||||
- **type**: the type of message (`chat` or `groupchat`)
|
||||
|
||||
|
@ -21,7 +21,7 @@ class SimpleMessage:
|
||||
return self.message["body"]
|
||||
|
||||
@property
|
||||
def sender(self):
|
||||
def source(self):
|
||||
return self.message["from"].bare
|
||||
|
||||
@property
|
||||
|
Reference in New Issue
Block a user