Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions wechaty/src/main/kotlin/io/github/wechaty/Wechaty.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class Wechaty private constructor(private var wechatyOptions: WechatyOptions) :
val contactManager = ContactManager(this)
val messageManager = MessageManager(this)
val roomManager = RoomManager(this)
val roomInvitationMessager = RoomInvitationManager(this)
val imageMessager = ImageManager(this)
val roomInvitationManager = RoomInvitationManager(this)
val imageManager = ImageManager(this)

init {
// this.memory = wechatyOptions.memory
Expand Down Expand Up @@ -278,7 +278,7 @@ class Wechaty private constructor(private var wechatyOptions: WechatyOptions) :
EventEnum.ROOM_INVITE -> {
puppet.on(it, object : PuppetRoomInviteListener {
override fun handler(payload: EventRoomInvitePayload) {
val roomInvitation = roomInvitationMessager.load(payload.roomInvitationId)
val roomInvitation = roomInvitationManager.load(payload.roomInvitationId)
emit(EventEnum.ROOM_INVITE, roomInvitation)
}
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ open class Message(wechaty: Wechaty,val id: String) : Sayable, Accessory(wechaty
if(this.type() != MessageType.Image){
throw Exception("not a image type, type is "+ this.type())
}
return wechaty.imageMessager.create(this.id);
return wechaty.imageManager.create(this.id);
}

fun toContact():Contact{
Expand Down